"Unable to update wf field"

zkx

New Member
I had created a temp-talbe wf. The information appeared when I "assign" some values into it. I didn't find the reason.
Thank.:confused:
 

Casper

ProgressTalk.com Moderator
Staff member
I suppose you mean that you get an error when you try to make an assign? If so, what error did you get? (errornumber and description)

Casper.
 

TomBascom

Curmudgeon
You will probably get much better answers if you post some sample code that illustrates the problem.

Don't just dump 500 lines of gibberish that results in an error into a posting -- try to trim down the sample code to something focused on the problem. And surround it with "
Code:
" tags so that it is nicely formatted.  (Use the "#" button in the posting editor...)
 

sphipp

Member
You often get that if you try to assign something to a field without creating the record first. This should replicate the error.

def temp-table t
field t1 as char
field t2 as char.
release t.
t.t1 = "1".

I would guess that you have a procedure or block of code where you are assigning fields and another where you are creating a record and for some reason you are not calling the create procedure before the assign procedure.
 

zkx

New Member
Thanks for sphipp, TomBascom and Casper' help.
I had solved this question.

e.g.

for each xx1 no-lock...:
find first xx2 no-lock where xx2_field1 = xx1_field1 ... no-error.
if avail xx2 then do:
/*wf is a temp-table*/
create wf.
assgin wf_field1 = xx1_field1.
.
.
.
end.
else
do:
create wf. /*added this sentence*/ :blush1:
assign .
.
.
end.
end.
 
Top