Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form refresh moving record pointer in view
Message
De
16/04/2003 01:50:03
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Form refresh moving record pointer in view
Divers
Thread ID:
00778189
Message ID:
00778189
Vues:
57
Hi,

I have a standard modeless form based on the Form class (absolutely no code in the base class).
In the dataEnvironment I have a local view with buffer mode set to the forms which is 2 (optomistic) and Private DataSession.

When I click the New button to add a record it uses this code...
WITH THISORM
	.LOCKSCREEN = .T.
        SELECT vJobhed
	=TABLEREVERT(.f.)
	APPEND BLANK
	REPLACE state WITH sysdata.state,country WITH 'AUSTRALIA',sstate WITH sysdata.state,scountry WITH 'AUSTRALIA'
	.REFRESH
	.LOCKSCREEN = .F.
ENDWITH
...the problem is that immediately before the REFRESH the vJobhed record pointer is on the newly appended record, however, after the REFRESH it has returned to the first record in the file and of course because of the record pointer move, the incomplete record is saved.

I have checked REFRESH and it contains NO code. I have similar forms and everything is OK in these.

Anyone have any idea at all.

Regards
Doug Johnston
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform