Jump to content
Sign in to follow this  
blizzedout

Not allow spaces in inputbox

Recommended Posts

blizzedout

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
Sokko

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
Valuater

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
blizzedout

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
blizzedout

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  

×