Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox setting rowsource to empty ...
Message
De
20/08/1999 07:44:42
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
20/08/1999 06:19:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00255751
Message ID:
00255768
Vues:
22
>Hi!
>I have a list box...
>It uses a cursor created via a SQL Statement.
>When I recreate the cursor I get the error.
>'Cannot Access selected table'
>
>I figure I need to set the rowsource to ""
>
>But when I do so:
>thisform.userslist.rowsource=""
>
>I get the message:
>1130 'field' phrase is not found.
>
>How do I set the rowsource to empty?
>
>I also tried " "
>
>This is driving me nuts.
>
>The form is modul!
Tim,
You could set RowSourceType to none. But take the easy way. Since your rowsource is a cursor, set rowsourcetype to SQL and directly put your SQL in Rowsource. Whenever you need to update it just issue a ..UsersList.requery() (ie: in gotfocus).
* Init of listbox
with this
 .Rowsourcetype = 3 or 6 ? SQL
 .RowSource = "select ... into cursor myListBox"
endwith
*Gotfocus
this.requery()
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform