realbasic-nug
[Top] [All Lists]

Re: CallByName function in VB + WithEvents

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: CallByName function in VB + WithEvents
From: Asher Dunn <asher at fireyesoftware dot com>
Date: Wed, 30 Jun 2004 12:40:34 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
List-help: <mailto:realbasic-nug-request@lists.realsoftware.com?subject=help>
List-id: REALbasic NUG <realbasic-nug.lists.realsoftware.com>
List-post: <mailto:realbasic-nug@lists.realsoftware.com>
References: <791C18B0-CA34-11D8-9C0E-003065D61478 at implements dot be> <AB7FA2BE-CA37-11D8-AADC-000A95DB6C90 at fireyesoftware dot com> <4173BF67-CA39-11D8-A8A8-000A95DB6C90 at fireyesoftware dot com> <F4AD04C8-CA72-11D8-9C0E-003065D61478 at implements dot be>

On Jun 30, 2004, at 4:53 AM, Yves Vindevogel wrote:

For Each Field in myRecord
  myObject.PropertyWithTheSameName = Field.Value
Next

You could put each "property" of myObject in a dictionary, and have a method, MyClass.Property(Name As String, Assigns Value As Variant) to set them.

Of course, that's just another work around.

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software <http://www.fireyesoftware.com/>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>