Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a record
Message
 
To
31/10/1997 23:39:53
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00057478
Message ID:
00057769
Views:
29
> PROCEDURE cmdadd.Click
>
>
> thisform.txtname.visible=.t.
> thisform.combo1.visible=.f.
>
> thisform.cmdsave.visible = .t.
> thisform.cmdabort.visible = .t.
> *select rob
> scan for empty(name)
> blank
> dele
> endscan
> goto top
>
> set dele off
> loca for deleted()
> if found()
> m_add_mode = .f.
> blank
> recall
> else
>
> m_add_mode = .t.
>
> append blank
>
>
> endif
> set dele on
>
> thisform.refresh
> thisform.txtname.setfocus
> ENDPROC
Robert,

In the code above you never select a work area (because that line is commented out), how are you sure that the sacn and append commands are working in the work area that you want them to? You also call a form refresh which will execute the refresh of all of the controls in the form, is there any code in any of those control's refresh methods that might move the record pointer on you?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform