Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Flags for ASCAN command
Message
 
 
À
17/01/2005 17:22:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00977777
Message ID:
00977906
Vues:
60
>>Yes, it offers the same design. But I was unable to make it work. I actually tried to use a constant from foxpro.h (AFIELDS_WIDTH) and the program complained, that there is no such variable. I had to put #include foxpro.h in the beginning of the program in order to make it work. I forgot, how can we have "GLOBAL" constants?
>
>I recommend *not* using foxpro.h as an include file. It's huge and has very poor and inconsistent naming conventions. It thus becomes very easy to have a #DEFINE wreak havoc with programs where you might have variables or fields with the same name. Rather, when you find specific constants that you need, migrate these to your own (short, carefully-constructed) include file.
>
>The only downside is you may have to verify the constants haven't changed when a 64-bit FoxPro comes out (as if...), but I doubt there's much potential for trouble there.
>
>-- Randy

Hi Randy,

I found it today by experimenting. After I included foxpro.h the search was very slow. I figured, that was the slowing factor, so I just defined two constants I needed in function's code.

Thanks.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform