Hi @all,
i have a mysteriös Problem with loading and saving text in a blob-field (oracle).
loc:blob CSTRING(28800)
Init Embed (at last):
IF SIZE(PRTB:Content) > 0
loc:Blob = PRTB:Content[0 : SIZE(PRTB:Content) - 1]
ELSE
loc:Blob = ''
END
Save (Ok Button):
PRTB:Content{PROP:Size} = 0
PRTB:Content{PROP:Size} = LEN(CLIP(loc:Blob))
PRTB:Content[0 : LEN(CLIP(loc:Blob)) - 1] = CLIP(loc:Blob)
I try to describe the Problem:
There are 2 records in Database. Text in first record is longer than text in second record.
On the Dialog there is a textfield use loc:blob.
I load from browse first record and see the normal text in field. It's all ok. I close the dialog and open the second record.
Then i see the text from second record + the text from first record. It's not ok.
Example:
Text in 1st record:
xxxxxxxxxxxxxxxxxxxxxxxxxxx
Text in 2nd record:
yyyyyyyyyyyyy
Open 1st record i see:
xxxxxxxxxxxxxxxxxxxxxxxxxxx
Open 2nd record i see:
yyyyyyyyyyyyyxxxxxxxxxxxxxx
What can be the problem? I tried so many, for example loc:blob as String or Fetch the record again...
regards, cagiv
i have a mysteriös Problem with loading and saving text in a blob-field (oracle).
loc:blob CSTRING(28800)
Init Embed (at last):
IF SIZE(PRTB:Content) > 0
loc:Blob = PRTB:Content[0 : SIZE(PRTB:Content) - 1]
ELSE
loc:Blob = ''
END
Save (Ok Button):
PRTB:Content{PROP:Size} = 0
PRTB:Content{PROP:Size} = LEN(CLIP(loc:Blob))
PRTB:Content[0 : LEN(CLIP(loc:Blob)) - 1] = CLIP(loc:Blob)
I try to describe the Problem:
There are 2 records in Database. Text in first record is longer than text in second record.
On the Dialog there is a textfield use loc:blob.
I load from browse first record and see the normal text in field. It's all ok. I close the dialog and open the second record.
Then i see the text from second record + the text from first record. It's not ok.
Example:
Text in 1st record:
xxxxxxxxxxxxxxxxxxxxxxxxxxx
Text in 2nd record:
yyyyyyyyyyyyy
Open 1st record i see:
xxxxxxxxxxxxxxxxxxxxxxxxxxx
Open 2nd record i see:
yyyyyyyyyyyyyxxxxxxxxxxxxxx
What can be the problem? I tried so many, for example loc:blob as String or Fetch the record again...
regards, cagiv