Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALIAS in a Grid
Message
From
15/12/2001 11:54:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
15/12/2001 11:52:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00594799
Message ID:
00594806
Views:
35
>>Hi,
>>
>>I'm using a function to add and Grid object on my form called myGrid.
>>I'm using the ALIAS of SQL statment as the RecordSource of myGrid and RecordSourceType = 1.
>>
>>In my program I need to modify my SQL statment and re-display myGrid.
>>This should be quit simple, however as soon as I modify the SQL and re-assign the result to myGrid, it freezes.
>>
>>Any ideas
>>
>>antranik
>
>.Recordource=''
>*Build your SQL cursor
>.RecordSource = 'SQLCursorName'
>
>Cetin

BTW this assumes you would like to keep current format of grid. If that's not what you want :

.Recordsource = ''
.ColumnCount = -1
*Build your SQL cursor
.RecordSource = 'SQLCursorName'

If SQL is static except its parameters you could use SQL recordsource as well.
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