Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Serious BUG: TYPE(
Message
From
04/01/2005 13:47:00
 
 
To
04/01/2005 12:41:04
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00974039
Message ID:
00974154
Views:
22
What's wrong with one these options:

1. Hardcoding
2. Put #DEFINE T_VARCHAR "V" in your own standard.h file invoked AFTER foxpro.h
3. Add #DEFINE T_VARCHARFABIO "V" in foxpro.h

2. is my favourite. BTW, I never #include foxpro.h, I have my own standard.h which include only the constants I really need, including constants for other programs I use frequently. (Did someone mention that include is not only a reserved word in VFP, it is also a very frequently used word) <s>

>>Hi Fabio,
>>
>>first of all, documented behavior is not a bug...! But, I also agree that it is not logical to let different field types give the same return value when it should be easy to give different values.
>>
>>My guess is that since TYPE() and VARTYPE() mostly is used to check memory variables and properties, and not fields, it was low priority. Personally I ALWAYS use AFIELDS() for fields, I even wrote a FIELDTYPE() function many years ago, as a part of my standard function library.
>>
>
>Well,
>then try to use the FoxPro.h T_VARCHAR definition with AFIELDS().
>
>Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform