Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus does not work when appending a record.
Message
From
04/11/1997 09:30:10
 
 
To
03/11/1997 23:21:17
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00058084
Message ID:
00058137
Views:
25
>>I wrote a program in vfp50. When I add a record using table
>>buffering, I setfocus to the first field. That works great as long
>>as there are records in the table. If there are not any records
>>in the table, and I try to APPEND BLANK the first record, my setfocus does not work. I can not even click the mouse to get a cursor. It is like to FORM locks up. any ideas?
>
>It sounds more like no record has been appended.

Open a debugger session and set a watch on recno()( or you could put a textbox on the form and inthe click, put this.value = recno()). It sounds like either you are not really appending the record or you are appending the record and then moving the pointer up one to eof(). The behavior you described is by design behavior for controls whose controlsource is positioned at eof(). good luck
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform