Alek Posted March 11, 2007 Share Posted March 11, 2007 ok, im looking for a code to see if its a number (or contains a number) or word. there is proberly something easy that i have missed. :"> [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
Automan Empire Posted March 11, 2007 Share Posted March 11, 2007 ok, im looking for a code to see if its a number (or contains a number) or word. there is proberly something easy that i have missed. :"> You could use StringRegExp ( $yourstring, [[:digit:]] ,0) "I've seen your work in the past, and it's novice at best..." SmOke_N Link to comment Share on other sites More sharing options...
SadBunny Posted March 11, 2007 Share Posted March 11, 2007 In general, please check the help file under 'Function Reference' > 'Variables and conversions'. There are quite some premade ready-to-use isNumber, isArray, isString etc functions. These should serve you. Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
Alek Posted March 11, 2007 Author Share Posted March 11, 2007 In general, please check the help file under 'Function Reference' > 'Variables and conversions'. There are quite some premade ready-to-use isNumber, isArray, isString etc functions. These should serve you.i tryed those befor i asked here and i couldent get them to work in the way i want.and im a noob with StringRegExp [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
Developers Jos Posted March 11, 2007 Developers Share Posted March 11, 2007 i tryed those befor i asked here and i couldent get them to work in the way i want.and im a noob with StringRegExpMaybe its helpful when you show what isn't working so we could have a look ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Alek Posted March 11, 2007 Author Share Posted March 11, 2007 (edited) Maybe its helpful when you show what isn't working so we could have a look ? this is the closest i have goten to what i want for $r = 0 to 29 $text = _GUICtrlListViewGetItemText($listview, $r,1) if $text = 0 Then _GUICtrlListViewSetItemText($listview,$r , 0, $sername) _GUICtrlListViewSetItemText($listview,$r , 1, $serip) $r = 29 EndIf Next oÝ÷ Ú)®±è§+m¡§]±êïz¸©ßÛ(®v¦{l¶¥Ëb~&u©ìz»Þ¯åÊ,¶v¦z(¶Ø^±êïz¸§¶¥Ë[ºÛazx§]jÇ«½êðØmè©ÚÞ¦V{l¶ë®÷«Â+aë-¶¡¢Ë[ºØvØZ¦§¶¨¶«Á¬®§uø«²Öv*méá¢Ëgjg¢z0¶¶«z+,¢g)àº'«¢+Ù¥ÀÌØíÑáÐôÀQ¡¸oÝ÷ Ù»¬¶§)à¡öv)àjëh×6if $text = 0 Then if something() then Edited March 11, 2007 by Alek [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
Developers Jos Posted March 11, 2007 Developers Share Posted March 11, 2007 i know that there is something wrong with if $text = 0 Then What should this test ? Test if nothing is returned like : If $text = "" Then SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Alek Posted March 11, 2007 Author Share Posted March 11, 2007 (edited) What should this test ?Test if nothing is returned like : If $text = "" Thenthat worked thank you, i said it was proberly something easy :"> Edited March 11, 2007 by Alek [font="Impact"]Never fear, I is here.[/font] 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