Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject in a loop not working
Message
From
13/07/1999 18:33:52
 
 
To
13/07/1999 18:32:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00241060
Message ID:
00241062
Views:
13
>I am trying to add combo boxes on the fly in my form, from data in a table. Here is my code. It works the first time through, but the second time gives a syntax error on AddObject.
>
>SELECT process_assoc
>SCAN
> lcLabel = 'lbl'+process_assoc.process_abbrev
> LOCAL &lcLabel
> THISFORM.AddObject(lcLabel,'gen_label')
>ENDSCAN
>
>What is going on?
>Jill

AddObject instanceiates invisible objects so you also shoud add
Thisform.&lcLabel..visible=.t.
Also, remove your LOCAL &... line.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform