Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error in vfp9 not in vfp8
Message
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:
01014659
Vues:
18
Thanks for the suggestions, but my original post only includes an example of how my code is working. The application is a campus housing program. A form contains a label for each room in a dorm and the caption of the label displays who is housed in that room. So, macro expansion is the most effecient way to populate the captions.

However, I have found a solution.

Brad Schulz, offered some help via foxite.com

The solution is to use brackets [ ] when populating m.cName

ex..
*********************************************
> *initialize variables
> local m.cName,m.cMacro
>
> *Store Name to var
> m.cName = ['bla bla ' + chr(13) + 'alb alb']
>
> *Store command to var
> m.cMacro = "thisform.lblRoom.caption = " + m.cName
>
> *Execute command
> &cMacro.
>
> *********************************************
Kendall Dixon
Data Integration Programmer
Tusculum College
Greeneville, TN 37743
423.329.5353
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform