Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Control - Append a new record in the last grid row
Message
From
11/11/1998 00:32:28
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00156026
Message ID:
00156494
Views:
62
True - and I'll try not to start any discussions on whether or not that is correct behaviour - the intent is to avoid moving the file pointer so that deletes and changes don't accidently get committed when they shouldn't. I believe that is what happens when the pointer is moved even in a buffered file. But I sit to be corrected (the shock ya know *g*).

>>Colin - I didn't mention that in my original post but what I do to avoid moving the pojnter at all is as follows
>>
>>
>>lcoldalias = ALIAS()
>>USE polines AGAIN IN 0 ALIAS countlines
>>SELECT countlines
>>
>>COUNT FOR countlines.idnumber = thisform.idnumber.value TO lnreccount
>>SELECT (lcoldalias)
>>USE IN countlines
>>
>>IF lnreccount = 0
>>     *** Insert stuff here
>>ENDIF
>>
>>*** Refreshes and so on
>>
>>
>>I am copying this to Erik. HTH
>
>Nice, but since the tables are buffered, allowing deletes on the child records throws a wrench into this. If my child table has 1 record that I delete and I haven't issued TABLEUPDATE then the COUNT on the USE AGAIN.... will return 1.
***************************
Bruce Gilmour

"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform