Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setfocus does not work when appending a record.
Message
De
04/11/1997 13:12:15
 
 
À
04/11/1997 09:30:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00058084
Message ID:
00058184
Vues:
27
>>>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

it had something to do with setfocus on the combo and a requery()
it works now - thaks :)))
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform