Should memory variables be declared?
I have scattered memvar but I am told that the first memory var is not available.
Keith
I have scattered memvar but I am told that the first memory var is not available.
Keith
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dan said:In dBase/FoxBase, we'd GO BOTTOM, SKIP, and then initialize empty vars from the ghost record at end of file.
DIMENSION PAGELIST(1)
SELECT DISTINCT PAGENAME FROM PAGES INTO ARRAY PAGELIST
THISFORM.PAGS.BUTTONCOUNT = ALEN(PAGELIST)
I wish you had told me that at the time. I used to copy the fields to variables one by one.
Release pagelist1, pagelist2
Create Cursor Pages (pagename C(10))
Set Multilocks On
CursorSetProp("Buffering",5,"Pages")
Insert into pages values ("Page 1")
Insert into pages values ("Page 2")
Select distinct pagename from pages with (BUFFERING = .t.) into array pagelist1
Select distinct pagename from pages with (BUFFERING = .f.) into array pagelist2
? Type("pagelist1",1)
? Type("pagelist2",1)
? Alen(pagelist1)
? Alen(pagelist2)
how do I blank the form fields using buffering. I can append a new record but I appear to be writing directly to the table and all data is saved anyway without the need to do a tableupdate().
P = ALLTRIM(THISFORM.PAGENAME.VALUE)
DELETE FROM PAGES WHERE PAGENAME = P
TABLEUPDATE()