Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable Types
Message
De
24/08/1998 10:16:14
 
 
À
24/08/1998 10:02:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00129309
Message ID:
00129311
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform