Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error in vfp9 not in vfp8
Message
From
16/05/2005 15:50:23
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01014630
Message ID:
01014668
Views:
16
>I only included a portion of code that I am using in the program. The app actual uses macro expansion to determine which label gets the caption set. This is a housing program and each label represents a different room number and who is housed in the rooms.

Kendall, this can still be done without using macro expansion. Here is a code sample, which accomplishes absolutely nothing. :)
oLabel1 = createobject("label")
oLabel2 = createobject("label")

oLabel1.caption = "original caption"
cLabelName = "oLabel1"
oTempLabel = evaluate(cLabelName)
cNewCaption = "new caption"
oTempLabel.caption = cNewCaption
? oLabel1.caption && oLabel1 caption should be changed now
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform