Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box Change Rowsource array to alias
Message
From
17/06/2010 21:41:24
 
 
To
17/06/2010 20:08:51
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01469526
Message ID:
01469534
Views:
32
I hit the following issue with the Alias. The cursor has an empty record (that I add to the cursor in code in order for a user to be able to undo the selection). But the problem is that this empty record is not showing in the pull-down list. Yet, when I was using an array it was not a problem. Please let me know if you know what I am missing with this.

>I am using "Alias" or "Fields" all the time and had no problem. I actually never use array as the record source for the combo box object and the only time I have used it for the list box when I needed to be able to re-arrange items on the list.
>I don't think you will have any issues.
>
>>Hi,
>>
>>I have a control that is based on a combobox class. For a long time I have been using an array as RowSourceType and setting RowSource to the array property of this control (e.g. RowSource = "this.aLookup"). Obviously I have to populate this array in the INIT method of the control. So, to speed up the process, I decided to change it and set the RowSourceType to 2-Alias and set the RowSource to the columns of the alias (e.g. MYCURSOR.COL1, COL2). My question is, why didn't I do it back years ago? Was there a problem with using the Alias as RowSourcetype? That is, I want to avoid possible problem if I go from array to alias.
>>
>>TIA.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform