Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird behavior running VFP6 stuff in VFP9
Message
De
24/03/2006 04:01:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Weird behavior running VFP6 stuff in VFP9
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01107291
Message ID:
01107291
Vues:
75
Hi All,

I have started using VFP9 during the last quarter of 2005. What I did was copy my trusty VCX files to a new development folder and further enhanced these with the new features I discovered along the way.

To my dismay, some of the tried and tested stuff I have in VFP6 results in unpredictably weird behaviors. I have list some of them below:

GRID
A grid on my one-to-many form shows records from the child table with relationships to a mastertable.
A few columns would then show data pointing to the master table, e.g., customer.cusname.
This works ok in vfp6 but sometimes when run in vfp9, it doesnt point to the right record!
This happens when one goes to another form then goes back to the said 1-M form. I used different ways like grid.SetFocus, grid.Refresh, and using GO to make sure the rec pointer is on the right record. All were for naught though.

FAILURE TO RETURN THE RIGHT GETFLDSTATE() VALUE
My code checks for newly appended records and then assigns a unique number to each new record when saving (Tableupdate). I use GETFLDSTATE(-1) to trap for 3 or 4 values. Sometimes it doesnt trap this correctly.
So, I end up with new records with no unique number values! I just did a work-around for now but it just is kinda unacceptable.

UNPREDICTABLE REFRESHING OF TEXTBOXES
There are times when skipping through records using a data entry form class I have used for ages just doesn't refresh the textboxes with properly filled up ControlSource! This is the weirdest one for I have no workaround for this.


I will surely appreciate any attention given this thread. Any links pointing to documentation regarding changes from VFP6 TO VFP9?

Thanks in Advance!
Dennis
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform