on 02-07-2005 9:34 PM
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
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
at the moment, when recording the registration in the BD, I write
UPPERCASE(edit)
Jorge
Axis Group
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.