Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Used a define in form object property
Message
 
To
29/08/1996 17:38:50
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00006898
Message ID:
00006953
Views:
65
>It will not work. The #Define directive has been discussed here several times. #Define is a compile directive. It replaces all occurences of the string "_DefineCaption" with the string "1" before compilation. This meens that your compiled text will be:
>=MYCAPTION(1)
>So, MyCaption will always return "String1". You can't use here a constant. You must use a variable or a form's property.

Hi Paul
that is what i want because in real life the _DefineCaption represente a record number for a table and i passed a nother parameter (variable) for the fields of the table(fields1 or fields2) fields1 = French caption and fields2 = English caption

My Problem is that "_DefineCaption" was not replace by "1"
Do you have an idea why?

Thank's In Advance
Rock
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform