🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.ms-windows.programmer.tools
3 messages
3 total messages Started by Hans-Jochen Schmitt Mon, 11 Jan 1993 12:40
Scoping rules in VB 2.0 ?
#902
Author: Hans-Jochen Schmitt
Date: Mon, 11 Jan 1993 12:40
32 lines
1691 bytes
The new VB 2.0 MDI support is fantastic ! True Form inheritance, autosizing 
toolbars etc. etc....

But:

How do one manage to reference local varibales within a Form from outside ?

Problem:

  Assume a drawing form, that contains local variables (declared in the 
  Declaration section of the Form). These variables describes the picture 
  that is shown on the Form. When making instances from this Form, anything
  works fine: every Form contains its own set of variables.
  But: If you want to write a save-and-load logic for these Forms, you can 
  not reference these Form-local variables from outside the Form (eg. the 
  MDI-Desktop).
  Is there any  way to reference instance-variables of a Form ? Something 
  like ActiveForm.MyArray(1).MyName ?

  The only workaround so far I found is a very clumsy setup: 
  - define a Button within the MDI-child
  - make this Button invisible
  - attach the Load or Save function to this Button
  - "Click" this button (in the ActiveForm) from the MDI-menu option
  The problem still remaining is that I can't pass parameters to the Form-
  local procedure (execpt using the Tags from invisible controls).

  Any hints ?

  Hajo Schmitt
  Technical University Darmstadt
Using C, in OWL
#903
Author: Alexander Shinkar
Date: Mon, 11 Jan 1993 14:02
16 lines
1183 bytes
Hello All,
Im hoping that some one out there in net land, would be able to
help me.
I am tryying to use, some C librarys from KENSMEN (sp) corporation,
to develop some C++ Windows programs.
I am using Borland C++, and OWL.
Im wondering if any one has tried either this package, or something like it.

I seem to have problems creating the status window.
The manual says that I should use a call to CreateWindow, to accomplich
this, but I have no idea at what point I should be doing this...
If anyone has a clue, or a hint of what I should be doing, please email
me directly
Thanks very much.
Alex
axs9017@hertz.njit.edu
Re: Scoping rules in VB 2.0 ?
#919
Author: EE U780935
Date: Tue, 12 Jan 1993 16:33
10 lines
1020 bytes
Sorry! You can not use variables outside its form or module except you use
Global variable....

--
===============================================================================
 Yu-Fu Wu                                        National Tsing-Hua University
 e-mail: yfwu@uz.nthu.edu.tw                     Dept. of Electric Engineering
                                                 Hsin-Chu City, 300
 Like MS Visual Basic most!                      Taiwan, ROC
===============================================================================
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads