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

Announcements

No record found.

News and Announcements icon
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
    239,029 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
    239,029 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans