Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Data Type From Arrary Element
Message
From
24/05/2005 11:52:23
 
 
To
24/05/2005 11:43:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01017102
Message ID:
01017110
Views:
20
>How can I change the data type of an array element which is undefine to a string (STR) data type.
>
>? TYPE(STR(galot[1,1] - undefine "U"
>
>
>Thank You In Advance For Your Assistance
>
>
>
>Winfred Majors

If it's type is "U", then you need to dimension it to include that element. For example:

DIMENSION aSomeArray[1,2]
?TYPE('aSomeArray[1,1]') = 'L'
?TYPE('aSomeArray[2,1]') = 'U'
DIMENSION aSomeArray[2,2]
?TYPE('aSomeArray[2,1]') = 'L'

Regards,
Jim
Previous
Reply
Map
View

Click here to load this message in the networking platform