cancel
Showing results for 
Search instead for 
Did you mean: 

to convert the characters from a cell to UPPERCASE?

Former Member
0 Kudos

I am trying to leave the characters of a matrix (CELL) with a uppercase

this it is the code that I use.

the problem is that stays an one loop and it leaves me an error "you cannot continue working with the Addon"

Beforeaction=FALSE

if (pval.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS) and (pVal.ItemUID = ' matrix1 ') and (pVal.colUID = ' col1 ') Then begin

EditText(FoMatrix.Columns.Item (' col1 ') .Cells.Item(TObject(pVal.Row)) .Specific) .Value := UPPERCASE((FoMatrix.Columns.Item (' col1 ') .Cells.Item(TObject(pVal.row)) .Specific ace EditText) .Value);

end;

I have attempted with et_VALIDATE YOU and anything, also enters in a loop

as he should attempt it.

what event is the correct one?

Thank you, Jorge

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

An idea... To short circuit the loop, do a check to make sure that the text needs changing first. You might be able to use char.IsUpper in .net - If the text is already upper, no need to change.

You could also maintain a flag that tells you if the field has been changed in the current edit session so that you only update the field once to avoid recursion.

Not sure if this will help but GL!

Former Member
0 Kudos

thanks..

I will attempt

intentare.

gracias

Jorge

GL for you.

Former Member
0 Kudos

at the moment, when recording the registration in the BD, I write

UPPERCASE(edit)

Jorge

Axis Group