Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Property Loss
Message
 
 
À
09/12/2008 11:27:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01366203
Message ID:
01366208
Vues:
11
Lots of people have run into this issue before and that's why SAFE SELECT is a recommended approach.

http://weblogs.foxite.com/andykramek/archive/2005/03/19/174.aspx

>To all,
>
>This is my problem.
>
>I have a form and on this form sits a grid with multiple columns. When the form initially opens the grid is empty of data, as they should be.
>
>When a search routine is invoked, a SQL statement hits a SQL Server table and populates the grid from the cursor. The user can then clear the screen which in turn empties the grid of the data as well as emptying the other screen objects.
>
>The problem is when the clear screen is issued I close the cursor that is responsible for populating the grid, and this causes the grid to lose its layout properties, methods and other related items. I can reformat the grid for the next SQL statement but it's a chore and I'm not sure how to reload event statements when they are lost.
>
>Anyone run into this issue before?
>
>Thanks for your help.
>
>Jerry
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform