Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox questions
Message
De
18/06/2002 07:27:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00669544
Message ID:
00669636
Vues:
10
>>I have a combobox that takes its value from a cursor, except that it is OK for the field to be empty. Other than adding a blank record to cursor, how can it be done?
>>
>>Also, the help for recordcount property indicates that -1 is the default value which means use all columns, I believe... but -1 is illegal! 0 is the default. Is this a typo in the help?
>>
>>Alex
>
>One way would be to use a UNION clause for either cursor or SELECT SQL for RecordSource, e.g.
>
>select space(4) as code, padr("<Blank>",20) as Description from myLookup;
>union ;
>     select code, Description from myLookup ;
>order by 2
>
>Another way would be to allow combo to create an empty entry by, say, right click. You would use blank field myfield in myTable.
>
>If I'm not mistaken, Dragan had a thread about it several months ago, you may want to search by his ID...

Thank you Nadya. In the end I decided to add the blank record in the form init, after all.

Alex
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform