Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ALIAS in a Grid
Message
De
15/12/2001 11:54:50
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/12/2001 11:52:39
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00594799
Message ID:
00594806
Vues:
36
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform