Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Mark Leighton Fisher (4252)

Mark Leighton Fisher
  (email not shown publicly)
http://mark-fisher.home.mindspring.com/

I am a Systems Engineer at Regenstrief Institute [regenstrief.org]. I also own Fisher's Creek Consulting [comcast.net].
Friday March 09, 2007
12:19 PM

A VB6 Property is Like a Perl Tied Variable, Sort Of

[ #32634 ]

When you tie a variable in Perl:

    tie %Config, 'Config', { "abc" => "def" };

In VB (VB6 or current VB.NET), you will want to wrap that variable as a Property. The Get Property corresponds to Perl's tie FETCH() operation, while Let/Set (Perl-only people: don't ask) correspond to Perl's tie STORE() operation. Making a variable tied/Property'ed gives you a chance to do some real work behind the scenes without forcing you to create a whole class.

(Noted here mostly so I remember it.)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.