Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting into array
Message
De
07/07/2009 12:28:28
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01410599
Message ID:
01410603
Vues:
98
This message has been marked as the solution to the initial question of the thread.
>Hi everybody,
>
>I have a code like
>
>select field from sometable where ... into array thisform.myArray
>
>If there is no records satisfying the condition, the form's array doesn't change.
>
>The question is - how can I reset the array?
>
>Thanks in advance.


You want to set the array back to 1?

Something like

dimension thisform.myArray[1]
=ADEL(thisform.myArray, 1)
select field from sometable where ... into array thisform.myArray

Then you could check _Tally if the select statement return something.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform