Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird Behaviour from Newly Requeried Cursor Behaviour
Message
From
17/03/2008 21:40:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Weird Behaviour from Newly Requeried Cursor Behaviour
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01302864
Message ID:
01302864
Views:
48
Hi All,

I am into constructing my data access classes for MySQL databases. I use the DE as sort of a datalayer class which houses my CursorAdapter subclasses.

Everything works fine. Except for this weird behaviour. So, here it is:

I have a parent-child form, the underlying tables are obtained from CAs "pointing" to MySQL tables.

So, record navigation (TOP, NEXT, PREV, BOTTOM) moves the parent table to the appropriate records, which causes the child CA to do a Requery. The child CA records are in a grid.

I put code in the DblClick to pop up a form which shows the selected child record data.

This is where the weird behaviour happens: the "FIRST" dblclick will always have the "TOP" record pop out in the child form! Succeeding double clicks will only then show the correct record!

I then put code in BeforeRowColChange and AfterRowColChange to track it... it really
GOES to top in the first doubleclick!

Help! Thanks too for any help given!

I am stumped at this for days.

Dennis
Next
Reply
Map
View

Click here to load this message in the networking platform