Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form refresh moving record pointer in view
Message
De
16/04/2003 03:10:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
16/04/2003 01:50:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00778189
Message ID:
00778198
Vues:
19
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform