Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox setting rowsource to empty ...
Message
From
20/08/1999 07:44:42
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
20/08/1999 06:19:44
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00255751
Message ID:
00255768
Views:
21
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform