Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help on creating a customized combobox
Message
De
17/07/2001 10:13:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
17/07/2001 09:48:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00531500
Message ID:
00531517
Vues:
9
>Dear ppl,
> I am working on a personnel database in VFox 6 and I want to create a combobox inside a form based on information stored in another tabled databased... is there a way to do that? if yes, can u give me some simple instructions?
>Thankx
>Tom

Tom,
Set your rowsourcetype to 3 (SQL) and put your SQL expression in RowSource. Adjust Columncount to your desire (1 to fcount() in SQL) and Columnwidths like '100,50,40' (3 columns).
If value selected would change a field value in a table then specify what field value would be stored to which one. ie:
* SQL
select departmentname, deptid from depts into cursor crsDepts

* Target
personnel.deptid

Then set BoundTo = .t., BoundColumn = 2 and controlsource = 'personnel.deptid'

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform