Werner_nagel
23rd October 2002, 12:27
I would like copy a text with TEXT.COPY in a session with main table (tdsls4102s). The field tdsls041.txta in the session is o.k., but there is no update in the table record.
Thanks
Werner
zacharyg
23rd October 2002, 13:01
Hello Werner,
The function returns the new text number in the first argument.
You need to assign the value to tdsls041.txta
__________________________________________________
string src.text( 13 )
string dst.text( 13 )
src.text = "ttmmm999.txta"
dst.text = "tdsls041.txta"
text.copy( dst.text,src.text .... )
tdsls041.txta = lval( dst.text )
__________________________________________________
Perhaps you should consider posting the source, if the problem still consists.
Werner_nagel
23rd October 2002, 14:02
The problem is not a problem from copy.text. Copy.text is working, the value from tdsls041.txta is o.k.. But there is not update from tdsls041.txta in the table record.
Here is the code:
text.lines = TEXT.COPY("tdsls041.txta","itm.txts",""....)
commit.transaction()
after this the new text is in the Session tttxt1100m000 o.k.
the value from tdsls041.txta is the new textnumber (in the debugger)
the next line is:
execute(update.db)
but there is no update in the table record
if I call
execute(text.manager)
the textmanger create a new text record.
thanks
Werner
zacharyg
23rd October 2002, 14:15
attr.textmode
insert the following instruction:
attr.textmode = 3 | read/write mode
Werner_nagel
24th October 2002, 09:56
Hi,
attr.textmode = 3 do not work. This is no solution. I think the problem comes from the record in the database. There ist the value of tdsls041.txta = 0. And I dont know, how I can update the record.
Thanks
Werner
zacharyg
24th October 2002, 10:35
Hello,
Has the record you are attemping to update been read for update? E.g. using select ... from ... for update
Perhaps, you should consider posting your source code or sending it per e-Mail. This way is possible more efficient.