Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form refresh moving record pointer in view
Message
From
16/04/2003 01:50:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Form refresh moving record pointer in view
Miscellaneous
Thread ID:
00778189
Message ID:
00778189
Views:
56
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
Next
Reply
Map
View

Click here to load this message in the networking platform