Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form refresh moving record pointer in view
Message
From
16/04/2003 04:56:00
 
 
To
16/04/2003 03:10:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00778189
Message ID:
00778232
Views:
21
Thanks Cetin and Zaheer,

I found the problem to be a combo that had its RowSource set to the Jobhed view when it should have been None.

Regards
Doug Johnston




>>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
>
>Doug,
>There might be a parent alias ?
>Cetin
Previous
Reply
Map
View

Click here to load this message in the networking platform