web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Form Input : Convert small letters to Capital letters

(0) ShareShare
ReportReport
Posted on by

In My form the User will input the value of Mac Address

My Requirement  :  In case the user inputs any smaller letters like aabb etc I want these to be

converted into Capital Letter like AABB??

Please help me !!

aa77bb66  → AA77BB66

ccdd5566 →    CCDD5566

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Use strUpr()

    msdn.microsoft.com/.../aa880106.aspx

  • Suggested answer
    Martin Dráb Profile Picture
    237,807 Most Valuable Professional on at

    I didn't remember the exact function, so I simply put ax string uppercase into my favorite search engine and got it as the very first link. You may want to do it by yourself next time, because it's clearly much less work than creating a new forum thread.

    The answer is strUpr().

  • yasu Profile Picture
    on at

    thank but can you tell how to use?? like where to add it and how to add it??

  • Martin Dráb Profile Picture
    237,807 Most Valuable Professional on at

    You put a string there and it returns another string with all letters converted to uppercase, which you can take and assign somewhere. Like this:

    str upper = strUpr('aa77bb66');

    You mentioned you want to do it with a field, so just put the field to both sides:

    myTable.MyField = strUpr(myTable.MyField);

    Where you should call the code depends on when you want to execute the logic. For example, you may want to do it immediately when a user changes the field, or when you're saving changes to database.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans