Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

How to handel one special Characters ?

(0) ShareShare
ReportReport
Posted on by 580

Hi All, can you please advice about special Characters in solomon. I have a textbox on screen and i want to prevent user to write "#" char. i have tried to remove the char on the "textbox_Chk" event and set it with the new value but it didnt put the new value.

Any idea.

Thank you

 

*This post is locked for comments

  • Barry Flynn Profile Picture
    Barry Flynn 3,090 on at
    Re: How to handel one special Characters ?

    Are you working in a customization? Or a VBTools (SDK) screen?

    If it is a customization, a quick test shows that setting chkstrg to the new value appears to have no effect.

    But this code worked. (in the cName control on the Customer Maintenance screen).

       If LCase(Trim(ChkStrg)) = "abc" Then

           serr1 = SetObjectValue("cname", "def")

       End If

    Obviously that code has the potential to cause an infinite loop, so you would need to be very careful to ensure your code prevents that.

    Barry

  • MDawood Profile Picture
    MDawood 580 on at
    Re: How to handel one special Characters ?

    I have tried

    textbox.Caption = "the new value"

    &

    Call setprop("textbox", PROP_CAPTION,  "the new value")

    &

     chkstrg = "the new value"

    in the chk event and all  are not working are you have any idea in how to put any value or even made the textbox empty?

  • Barry Flynn Profile Picture
    Barry Flynn 3,090 on at
    Re: How to handel one special Characters ?

    I'm pretty sure that I have altered the new contents of a textbox, by doing this in its Chk event

        chkstrg = "the new value"

    Is that the code that you used?

    Barry

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans