|
-
May 28th, 2003, 08:07 PM
#1
Thread Starter
New Member
Using string variable to determine form and labels to be loaded
I have several forms.
Which form is used is determined by a selection that is made.
This I can do with a CASE statement, but I would like to know if there is a way to do this using a string value as indicated below.
EG.
sFrm = "Diary"
sLab = "Meeting"
sVal = "2PM"
how can I build the following code dynamically
frmDiary.lblMeeting.Caption = sVal
I have 15 forms and 50 labels per form which I wish to populate in this manner. Not all labels will be populated.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|