Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting into array
Message
 
 
To
07/07/2009 12:28:28
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01410599
Message ID:
01410605
Views:
55
>>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.

Thanks a lot, ADEL was critical.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform