Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select From Into???
Message
De
31/01/2005 15:20:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
00982225
Message ID:
00982427
Vues:
46
This message has been marked as a message which has helped to the initial question of the thread.
Hi Hugo,

to avoid reconstructing the grid with all the settings and so on, I prefer this approach:
select whatever from myTable ... into cursor tempCursor
lcCursor=myGrid.RecordSource
select (lcCorsor)
zap
append from tempCursor
>>Thanks Hillmar and Erick,
>>I did try the Into Cursor MyCursor but still had problem updating the grid. The query would run OK and fill the grid when I put it in the load of the form, but when I run the same select statement from a control, the grid inside disappeared.
>>
>>TIA
>
>Ron,
>
>I see you solved this, but, if you want to have the select from a control, when you re-run the select statement, you need to dis-engage the grid first:
>
>
>myGrid.RecordSource = ''
>select whatever from myTable ... into cursor myCursor
>myGrid.RecordSource = 'myCursor'
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform