Dynamic Buffer, No-Error

UncleNel

New Member
This one has my juices flowing.

The left side of the equals is an assign and the find is on the right side, therefor I believe the no-error goes with the assign. (someone correct me if I'm wrong).

Try this instead:
Code:
    bh:find-first("....") no-error.
    
    if bh:available then do:
         ........
    end.
    else do:
        ........
    end.
 
That should do the trick.

It's also not clear what "v_traitement" is. A variable, parameter, field? I suspect the "v_" might mean variable?
 

bergerpeatmoss

New Member
Yes it's a variable that i've created because I use the same procedure twice one time for VERIFICATION and one is for ASSIGN so I use the parameter v_traitement to pass my traitement.

I found a solution for my problem... I've put my "find first" in a DO TRANSACTION sentence and I catch the error.

So I don't see the error for now !

Thx you for the help guy's !
 

UncleNel

New Member
I'm curious what you changed since post#10 where you added TRANSACTION to your code. Are you processing an ON-ERROR or the buffer not being AVAILABLE? Can you share a snippet of your code.
 
Top