General information
Category:
Forms & Form designer
>thisform.disabledata()
So, here, the rec pointer is not on eof yet, isn't it? Are you sure?
>thisform.refresh() && after this refresh, the record pointer moves past EOF()
If you're sure that the Refresh is moving the pointer, then put a SET STEP ON at the begging of the Refresh method. This will start the debugger and you can do a trace for all the Refresh (which probably calls many other Refresh methods). Put a eof("YourAlias") in the Watch window. This way it's almost impossible to not see which is the exact command that move the record pointer.
Vlad
>go cthisrec
>thisform.refresh() && after this refresh, the record pointer is at 'cthisrec'
>thisform.cboFirstName.refresh()
>
>I have no idea why the first thisform.refresh() causes the record pointer to go past the end of the table.
>
>AL
>
>
>>What is ThisForm.DisableData ?
>>
>>Vlad
>>
>>>I have a form with the following code for deleting a record:
>>>
>>>if messagebox("Are you sure you want to delete this user ?",4+32+256,"** Confirm User Deletion **")=6
>>> select sysusers
>>> zrecord = recno()
>>> delete
>>> zrecord1 = recno()
>>> skip
>>> zrecord2 = recno()
>>> if eof()
>>> go bottom
>>> endif
>>>endif
>>>
>>>thisform.disabledata()
>>>zrecord3 = recno()
>>>thisform.refresh()
>>>zrecord4 = recno()
>>>
>>>save to zzz all like z*
>>>
>>>When I delete record 3 (in a table of 22 records), the values of the memory variables I created to determine the current record are as follows:
>>>
>>>zrecord: 3 - this is correct
>>>zrecord1: 3 - this is correct
>>>zrecord2: 5 - this is correct
>>>zrecord3: 5 - this is correct
>>>zrecord4: 23 ??? (the last record is 22)
>>>
>>>There is no code the refresh method of the form.
>>>
>>>Why is the value of zrecord 23?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only