Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox show Elements but not .F. when nothing to be shown
Message
From
04/06/2018 01:37:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
ListBox show Elements but not .F. when nothing to be shown
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01660530
Message ID:
01660530
Views:
100
Hi,

I have a listbox, populated with an array: Thisform.aNames
The list is restricted to the first 10 elements only so NumberOfElements is set 10
The array is constructed in myForm with aNames[10,2]

and populated with a select:
Select naw.fullname, naw.ID from NAW where  substring(fullname,1) = ? m.lcLetter into array aNames[10.2]
this works fine, however, when there is not enough data to populate 10 fields the remaing are shown in the listbox as .F., how should I change to avoid this, prefer to show [ ] (nothing)
Next
Reply
Map
View

Click here to load this message in the networking platform