Sign in to follow this  
Followers 0
blizzedout

Not allow spaces in inputbox

5 posts in this topic

This possible? or how would I strip the spaces from the final value.

$value = InputBox("Value", "Function Name", "", "", -1, -1, 0, 0)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

If StringStripWS($string,8) = $string Then MsgBox(0,"Okay","$string does not contain any spaces")

Edited by Sokko

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

if you are checking for a value ( number )

IsNumber( $Value )

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

If StringStripWS($string,8) = $string Then MsgBox(0,"Okay","$string does not contain any spaces")

thanks man.

Share this post


Link to post
Share on other sites

ok that for getting me rollin.

Instead of that im gonna use this:

$answer = InputBox("Question", "Function Name", "", "", -1, -1, 0, 0)
$answer = StringReplace($answer , " ", "_")
MsgBox(4096, "Test", "Your Function name is: " & $answer, 10)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0