Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird Behaviour from Newly Requeried Cursor Behaviour
Message
De
17/03/2008 21:40:01
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Weird Behaviour from Newly Requeried Cursor Behaviour
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01302864
Message ID:
01302864
Vues:
49
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform