Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Aerror(laError), type('laError')='N' ???
Message
From
31/01/2002 07:56:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00613268
Message ID:
00613273
Views:
9
>Hello,
>
>I was playing around with aError(laError) this a.m. and after laError was created I tested it's type and it came back as an 'N'. Why didn't it come back as an 'A'? (using vfp 6 sp3)

Unfortunately, this is the way VFP works. If you ask for laError, what you actually get is laError(1). This first element is probably of type numeric.

Do you want to check whether a supposed array is really an array?
dimension AnArray(3)
NotAnArray = 5
? type("AnArray(1)")   && not "U" - this is an array
? type("NotAnArray(1)")  && = "U" - this is not an array
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform