Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing RecordSource of grid on the fly breaks formatti
Message
De
18/05/2008 09:18:27
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
17/05/2008 11:23:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01317811
Message ID:
01317958
Vues:
9
>>>>>Jaime,
>>>>>
>>>>>Besides what Neil has suggested you can also use a "safe-Select" approach for your grid. To do this you establish a cursor with the CREATE CURSOR command to be the record source for your grid. Then when you need to refresh the data you can;
>>>>>
>>>>>
>>>>>SELECT ... FROM ... INTO CURSOR MyIntermediateCursor
>>>>>SELECT MyGridCursor
>>>>>ZAP
>>>>>APPEND FROM DBF("MyIntermedaiteCursor")
>>>>>
>>>>>
>>>>>This prevents the grid from losing its setting whenteh cursor is blown away by the SELECT SQL command.
>>>>
>>>>Thanks Jim. I don't think ZAP will do it though, it's multiuser...
>>>
>>>In Jim's suggestion, the myGridCursor would be a local one, so you could Zap it since there are no multi-user issues involved.
>>>Another alternative might be using parameterized Local Views.
>>
>>Even then you would still use ZAP to get an empty cursor.
>>
>>http://my.advisor.com/doc/SILVL14-01
>___
>
>You would not zap prior to a requery()

No. To empty the cursor, you would zap instead of doing a requery.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform