Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I find out what type of an element array
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01610839
Message ID:
01610919
Vues:
83
>Easiest way is to use Type("laArray[1]") and check for U (undefined) or maybe L for logical which is the default.
>
>Type evals() without throwing so it's an easy way to check for array content.
>
>+++ Rick ---
>
>>I have an array that I populate while using a select statement:
>>
>>
Select firstname, anumber from employees into array attest
>>
>>then I want to execute the following
>>
>>
append from array attest
>>
>>only if attest has valid values. I don't want to skip
append from array
if lets say all the elements in the array contain the value .F.
>>
>>how can check the an element for example attest(1,2) and see if it contain a numeric value or a logical value .F. (if no data was returned from select)
>>
>>thanks
>>Nick

thank you. appreciate it.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform