Skip to Content
author's profile photo Former Member
Former Member

to convert the characters from a cell to UPPERCASE?

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 15, 2005 at 07:10 PM

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

    UPPERCASE(edit)

    Jorge

    Axis Group

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 15, 2005 at 07:31 PM

    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!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.