Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Can we use the strAlpha function for any languages like Chinese etc...

(1) ShareShare
ReportReport
Posted on by 18

Hi Team,

As StrAlpha copies the alphanumeric character form string.

Can we use the strAlpha function for any languages like Chinese etc...

Please give me more shed on this.

thanks!

  • Suggested answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: Can we use the strAlpha function for any languages like Chinese etc...

    I don't know the background but my guess is there are non alphanumeric values set. StrAlpha eliminates these values. In this case, it will not do what you want.
    If it works the other way around (extracting values that aren't in the alphanumeric list), you'll get the result of your request, but I don't think so.
    After all, it's pretty easy to try.
    Open a table with two fields. Check for length when returning PurchName values. If the lengths are different, it means that strAlpha worked on these records. If you save it in the table and check the values in the two fields, you can see if it does what you want.

    while select nameTable
    where nameTable.PurchName
    {
        strAlhhaValue = strAlpha(nameTable.PurchName);
        
        if(strlen(strAlhhaValue) != strlen(nameTable.PurchName))
        {
            newTable.AlhhaValue = strAlhhaValue;
            newTable.NameValue  = nameTable.PurchName;
            newTable.insert();
        }
    
    }

  • @rp@n Profile Picture
    18 on at
    RE: Can we use the strAlpha function for any languages like Chinese etc...

    thanks all,

    My requirement is to ignore white space , invalid characters ( Chinese ) from a text.

    The issue was in Purchname ( text ), Vend name or Item name. So, we wants to fix those issue. If any invalid characters found any fields it should remove those and able to export the report in excel aswell...

    Is strAlpha() can do ?

    Please give me more shed on this.

    thanks!

  • Suggested answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: Can we use the strAlpha function for any languages like Chinese etc...

    It's about what you expect. The method's target is non-alphanumeric values. I don't know in detail, but I think these values are language independent. As you can see below, the result is as we expected, but if "=" has a different spelling or equivalent in Chinese, you may not get the result you want.

    pastedimage1631519440174v1.png

  • Laraib Profile Picture
    131 on at
    RE: Can we use the strAlpha function for any languages like Chinese etc...

    Kindly explain your scenario more so that I can understand more easily because strAlpha copies only the alphanumeric characters from a string.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,120 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans