Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable Types
Message
From
24/08/1998 10:16:14
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00129309
Message ID:
00129311
Views:
19
Hi Carl ---

Hmmmm....

I suppose you could test with ALEN() and trap all error code 232 (var is not an array error message). Cheezy but it would work.


>I'm in the process of writing a function that should accept a variety of different types of variables. The problem I'm having is I don't have a way of knowing if the variable is a ARRAY or just a regular variable. For exampe if i use the TYPE() function on the following variables it C for both of them.
>
>lcString = "akdflkjaklf"
>
>Dimension laString(3)
>Store "asda" To laString(1)
>Store "aslkd" To laString(2)
>Store 5 To laString(3)
>
>TIA for any replies.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform