Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#DEFINE preprocessor directives
Message
De
10/03/2007 03:33:05
Reza Meamar
Homa Programming Group
Shiraz, Iran
 
 
À
10/03/2007 02:00:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01202495
Message ID:
01202499
Vues:
11
Thanks for your reply.

>Reza
>Why not create any defines in a text file and use #include to include that in any prgs that need to use them. That way you'd only have to change it in one place.
>
>Nick
>>Dear Nick
>>so i can do this only with PUBLIC variable?
>>
>>
>>>Reza
>>>
>>>check the help for #define. The constant is only available in the program that creates it.
>>>
>>>Nick
>>>
>>>>Hi all,
>>>>I want to use from #DEFINE. but i have problem with use of it
>>>>
>>>>*** Program1.prg
>>>>#DEFINE MAXITEMS 10
>>>>DO program2.prg
>>>>
>>>>*** Program2.prg
>>>>CLEAR
>>>>FOR gnCount = 1 TO MAXITEMS
>>>> ? gnCount
>>>>NEXT
>>>>
>>>>*** ERROR : Variable 'MAXITEMS' is not found.
>>>>
>>>>i think i am wrong in use of this command.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform