General information
Category:
Coding, syntax & commands
Title:
Weird behavior running VFP6 stuff in VFP9
Environment versions
Network:
Windows 2003 Server
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only