AutoHotkey Community

It is currently May 27th, 2012, 4:04 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: June 9th, 2011, 10:18 pm 
Offline

Joined: January 21st, 2009, 5:49 pm
Posts: 176
I'm having a tough time trying to determine if the command line param passed to a compiled ahk exe is numeric.

It's next to impossible to get at "is" or "number" in the help since there's 80,000 hits on those workds.

Simple test case:

Code:
If 0 < 1
{
   MsgBox, 4160, , No Params, 2
}
Else
{
   delay = %1%
    If is number %delay%
    {
      MsgBox, 4160, , Param is number: %delay%, 2
    }
}


_________________
"I don't want to belong to any club that would have me as a member."
- Groucho Marx


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2011, 10:22 pm 
Offline

Joined: May 3rd, 2009, 7:16 pm
Posts: 345
Location: OH, USA
if var is type


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2011, 11:06 pm 
Offline

Joined: January 21st, 2009, 5:49 pm
Posts: 176
Solar wrote:


That did it. Thanks. :)

_________________
"I don't want to belong to any club that would have me as a member."
- Groucho Marx


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Leef_me, rbrtryn and 59 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group