Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
0 length string is not recognized ???
Message
From
06/01/2002 04:27:59
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00597801
Message ID:
00601258
Views:
20
>Can use TYPE or VARTYPE to check it is a string
>
>IF TYPE("m.MyChar") = "C" AND EMPTY(m.MyChar)

Yes, though I only use TYPE() when that's the best option. VARTYPE() is more straightforward in most cases. I also recomment using the #DEFINEs for VARTYPE() found in foxpro.h. I would probably write this statement as:
#INCLUDE "foxpro.h"

IF VARTYPE(m.lcMyChar) = T_CHARACTER .AND. EMPTY(m.lcMyChar)
    (some code)
ENDIF
David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Previous
Reply
Map
View

Click here to load this message in the networking platform