alaa777 Posted March 10, 2008 Share Posted March 10, 2008 i need to check if the result is infinty or undefind number Link to comment Share on other sites More sharing options...
LinuZ Posted March 10, 2008 Share Posted March 10, 2008 What the heck? Do you think anybody gets anything out of that post? I am sorry but I dont even see a question. I am willing to help if you specify a bit what you mean. Give a script snippet or something, so we have anything to start with Thank you! Link to comment Share on other sites More sharing options...
alaa777 Posted March 10, 2008 Author Share Posted March 10, 2008 ok what i need is chek the result of math operation if it infinty nomber or undefind nomber to do some thing insted of showing the result Link to comment Share on other sites More sharing options...
martin Posted March 10, 2008 Share Posted March 10, 2008 ok what i need is chek the result of math operation if it infinty nomber or undefind nomber to do some thing insted of showing the resultMaybeIf IsNumber($something) then/else Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
alaa777 Posted March 10, 2008 Author Share Posted March 10, 2008 (edited) If IsNumber($L) Then Else MsgBox(0,"Error","Check your Input Data"&@LF&"Click ok to show the result") EndIf not working Edited March 10, 2008 by alaa777 Link to comment Share on other sites More sharing options...
alaa777 Posted March 10, 2008 Author Share Posted March 10, 2008 in the result it shows "-1.#IND" or "1.#INF" i want to show that boxMsgBox(0,"Error","Check your Input Data"&@LF&"Click ok to show the result")befor showing such result Link to comment Share on other sites More sharing options...
martin Posted March 10, 2008 Share Posted March 10, 2008 (edited) in the result it shows "-1.#IND" or "1.#INF" i want to show that boxMsgBox(0,"Error","Check your Input Data"&@LF&"Click ok to show the result")befor showing such result Where is the result coming from? If the result is a string, or can be made into a string, then you can see if it's a valid number, integer, real etc like this $result = StringStripWS($result,3) if stringcompare($result,string(number($result)))=0 then msgbox(0,$result,'is a valid number') Else msgbox(0,$result,'is not a valid number') EndIf Edited March 10, 2008 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
alaa777 Posted March 10, 2008 Author Share Posted March 10, 2008 thx so much it`s working Link to comment Share on other sites More sharing options...
martin Posted March 10, 2008 Share Posted March 10, 2008 thx so much it`s working That's good, glad to help. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now