Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid behavior only works once ???
Message
De
03/01/2005 09:07:32
 
 
À
03/01/2005 08:25:26
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
MySQL
Divers
Thread ID:
00973249
Message ID:
00973791
Vues:
31
Hi Albert,

I also had the same 'a-ha' experience some months ago, and I also thought it would be a lot of work, but it really was very little work. In my code, I had something like this
SELECT * FROM myTable Where something INTO myCursor
All I had to do was change this one line into these four lines:
SELECT * FROM myTable Where something INTO myCursorTemp && Remember to give the cursor a new name!!
SELECT myCursor 
ZAP
APPEND FROM DBF('MyCursorTemp')
In reality I had everything from "Temp" to "APPEND FROM DBF('MyCursorTemp')" in my clipboard, and pasted the three+ lines wherever I had to dhange my code, and manually corrected the first part of the name of my coursor. That was all I had to do!

>Hello Marcia
>
>Yes !! This is the standard in all my forms since 3-4 years.
>at init: thisform.l_cursor = "orderrecords"
>
>all search buttons do:
>Thisform.grid1.recordsource = " "
>l_sql = "select ........ "
>sqlexec(connection,l_sql,(thisform.l_cursor))
>Thisform.grid1.recordsource = (thisform.l_cursor)
>
>Until now there were no problems!!!
>This is my first try with VFP 8.0
>I'll try your suggestion, but changing all my forms would be endless work.
>
>Thank you
>Albert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform