Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Data Type From Arrary Element
Message
De
24/05/2005 11:52:23
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
 
 
À
24/05/2005 11:43:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01017102
Message ID:
01017110
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform