Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error in vfp9 not in vfp8
Message
De
16/05/2005 15:50:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01014630
Message ID:
01014668
Vues:
17
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform