Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Box Cannot refresh
Message
De
31/08/1998 09:59:10
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
31/08/1998 07:11:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00131452
Message ID:
00131505
Vues:
12
>Hi,
>
>I've 3 forms, 1 is to show general details, the 2nd will popup to allow user to do a serach and the 3rd will show the search results.
>
>Searching is done using Select SQL statement into a cursor and a grid is used to display result.
>
>My problem is the search result will not be displayed even after i do a refresh on the grid. I've insert a browse command in the 3rd form just to see whats in the cursor, & that the search criteria is correct. Recently I've notice an error occured while running the sql statement - 'alias already in use'. what could it be??
>
>Any help will do.
>
>Thanks
>
>Regards
>Andrew Kong
If SQL is static (not changing on the fly) easiest is to put SQL directly to grid.recordsource and set recordsourcetype = SQL. It seems you set recordsourcetype = alias and the alias is the one you're selecting into. If you still wanna do that way then :
*Grid.reselect (custom method)
this.recordsource = ""
* Do your SQL
this.recordsource = SQLalias
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