Versions des environnements
Do you mean that the empty record doesn't show the first time you bring the screen up? Do you have an order set on your cursor? I created a form with a combobox and attached it to this message. The code for the cursor in the INIT of the combobox.
See if this is what you need or maybe I am missing the issue.
>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement