Home > Archive > Clarion > February 2005 > loop for update files
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
loop for update files
|
|
| ikonjevic 2005-02-23, 3:55 pm |
| hi, i am new in clarion, i need help to write code for made changes in my
database with loop and put command, i try with loop and add command and it
works but don't wotks with command put, here is my sample code
SET(Strogaev) ----> database
LOOP I#= 1 TO LOC:BrojPolica ----> local var
PUT(Strogaev) ----> change record
--> next four rows are my database fields with
changed values from my form
STR:Strogapri = STR:Strogapri
STR:Strogadok = STR:Strogadok
STR:Datumz = STR:Datumz
STR:Strogaozn = STR:Strogaozn
NEXT(Strogaev)
END
BUILD(Strogaev)
please correct my embed code,
thanks
| |
| Sid Nitram 2005-02-23, 3:55 pm |
| It's not clear what you are trying to do, however, you normally have
the PUT line after you make the data changes and not before. Also, you
need to test your NEXT statement to ensure you are not trying to read
beyond the EOF (If errorcode() then break. <if using legacy> ).
|
|
|
|
|