Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here




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]
       loc:Blob = ''

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.

Text in 1st record:

Text in 2nd record:

Open 1st record i see:

Open 2nd record i see:

What can be the problem? I tried so many, for example loc:blob as String or Fetch the record again...

regards, cagiv

RE: Blob-Problem


You seem to be using a mix of SIZE & PROP:Size. Use PROP:Size only.

Change the Init to ::


    S# = PRTB:Content{PROP:Size}
    IF S# > 1
       LOC:Blob = PRTB:Content[0 : S#-1]

and ideally the SAVE code to ::

    S# = LEN(CLIP(LOC:Blob))

    PRTB:Content{PROP:Size} = 0
    IF S# > 0
       PRTB:Content{PROP:Size} =
       PRTB:Content[0 : S#-1] = CLIP(LOC:Blob)


RE: Blob-Problem


thanks for your help, but it changed nothing.
Do you have still another idea?

Regards, cagiv

RE: Blob-Problem


Have you queried the database directly using any query tool to see what is actually stored in the database?

Is this a standard template generated Browse-Form? Why cannot you just link the Text Box to the BLOB column i.e. why is a local variable required?


RE: Blob-Problem


You could always try LOC:Blob = ALL('<0>',SIZE(LOC:Blob)) in the Init Code.


RE: Blob-Problem


the correct string is saved in database. I checked it.

It's a Standard-Updateform.

A textbox use db-field directly, shows nothing. That's the reason i use a local variable.

I do not understand so correctly, what the code
LOC:Blob = ALL('<0>',SIZE(LOC:Blob))
has todo with the problem. It only returns repeated characters.

Thanks again, cagiv

RE: Blob-Problem


i have the solution.
I use a RADSQL-Browse and there was flaggt pageloaded instead of fileloded. It seems to make a memory-error.
Now with fileloaded it's all ok smile

Regards, cagiv

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close