Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Put a comment solves the problem
Message
De
13/04/1997 04:56:51
 
 
À
13/04/1997 00:46:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00028102
Message ID:
00028110
Vues:
52
>It's true. I mean if the line is not there, the grid child will not refresh.
>
>Remember to show it to you at the next meeting. :)

I believe it! There is alot of strange things that happen associated with grids and VFP. I use the Codebook framework which uses lots of open views/tables in the default datasession. For setting up general purpose items such as security and loading prefrences I would like to be able to jump to the default data session do my operation and then go back to the form. For example to get a preference from a simple one record preference table:

The code looks like this:

PARAMETERS lcFieldPreference
LOCAL lndatasession

lndatasession = SET('DATASESSION')

SET DATASESSION TO 1
SELECT v_preferences
lcprefvalue = &lcFieldPreference
SET DATASESSION TO lndatasession
RETURN lcprefvalue


This code works fine, except when you have a grid on the form. Then the act of switching datasessions back and forth kicks the legs out from under the grid. I guess Microsoft wouldn't call this a bug but a "limitation".

When it comes to grids nothing suprises me.


Greg Moss
gmoss@midwest.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform