From: Losik, Vlad
Sent: Thursday, April 08, 2004 3:57 PM
To: 'SPANGENBERG,SASCHA (A-Scotland,ex1)'
Subject: RE: [vrf] Create multiple objects of same "Vee Class"
As I am sure you now VEE is not OOP language. As such there is no way to
make real classes with it. You will have to emulate classes using user
functions. How you do it depends on GUI . If you need to see two or more
panels from the same "class" simultaneously than you have no choice but put
your code for a class in user functions and then load this library under
different names as many times as number of objects you need. It is memory
inefficient but as far as I know the only way to display multiple panels of
the same class. If you do not need to display them simultaneously then
simply create private variable in your library to hold class data. Make it
an array. Now every time you instantiate an object from this class add
another element to array. All functions in the library need an array index
as one of parameters. In short you end up with single library of functions (
methods of the class) and multiple data items ( properties ) each
representing single object .
Hope this helps
From: SPANGENBERG,SASCHA (A-Scotland,ex1)
Sent: Thursday, April 08, 2004 12:30 PM
Subject: [vrf] Create multiple objects of same "Vee Class"
I would like to encapsulate some functionality in a "Vee Class" and
multiple objects in my vee program that are based on this class.
I want several "smart" panels that contain a display of some sorts which
is driven by the output of a formula that does some computation based on
an input value. E.g. lets say all displays should show A^2 instead of
smart panels input value A.
The key thing is that if I need to change e.g. the looks of the panels
I would like to only have to do it in one place and all panels within
should get updated automatically.
Now this problem is similar to one that was emailed a while back and to
Rob Marquardt replied with the "Alarmogram" in June last year (see
However, I am looking for a more efficient way to do this and hope for
Alarmogram does a neat trick with dynamically creating several replica
of a function
by means of library imports but maybe there is a better solution to
achieve the same since
this program seems a bit crude(?) (no offense Rob, it's still a neat
a) it takes time to create those imported functions (especially due
the harddisk access) and
b) I have to manually edit (understand;-) vee _code_ if I want to
change the template.
Ultimately I would like to create lots of different "classes" in my vee
so the Alarmogram solution is not really going to work very well of at
is very difficult to maintain.
Is it not possible to create the equivalent of a class object in vee?
Kind regards ,
You are currently subscribed to vrf as: firstname.lastname@example.org
To subscribe send a blank email to "email@example.com".
To unsubscribe send a blank email to "firstname.lastname@example.org".
To send messages to this mailing list, email "email@example.com".
If you need help with the mailing list send a message to "firstname.lastname@example.org".