Jump to content

Forbide spaces chars and remove spaces chars

Recommended Posts

  • MVP 2023

1) Use the Find String in String function block and search for ASCII 20h (space).  Then write logic to make them enter the string again if you find it.


2) The Find function will return a pointer of the space location.  You can use the Remove function to get rid of it.  You may have to let the functions loop a couple of times to find all instances of a space character.

Joe T.

  • Upvote 1
Link to comment
Share on other sites

Thank you all for yor replies !

I will use find string function to remove spaces at the begining and at the end.

Only one more question, is there any SB that goes to ON when the user has finished of input a variable in a control? or is better to detect that the user has touched the ENTER key (SB 53) ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...