Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox show Elements but not .F. when nothing to be sho
Message
From
04/06/2018 04:50:22
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
04/06/2018 04:30:02
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01660530
Message ID:
01660538
Views:
54
>>>>The only exception to this is when select doesn't return any rows. Then the array's original size and values are preserved.
>>>
>>>Correct, that is my case.
>>>When one is working with the application for the first time, there are yet no records in the tables and this will result in 10 rows with .F. which I do not like.
>>>So I will now parse through the array and replace all the .f. values with '' easy enough
>>
>>Even easier
>>
>>laCheck=""
>
>
>Dragan,
>
>please elaborate. I am in for KIS stuff.

Can't find it in help, but this is at least 30 years old. When you assign a value to the whole array, ALL elements are assigned that value. Found an example in the help for DIMENSION Command:

The following example stores the string "initial" to all the elements in the array gaArray:

DIMENSION gaArray(10,3)

STORE 'initial' TO gaArray

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform