Jump to content

Recommended Posts

Posted

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]

Posted

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
Posted

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.

Posted

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]

  • Developers
Posted

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

Maybe its helpful when you show what isn't working so we could have a look ?

:whistle:

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.
  :)

Posted (edited)

Maybe its helpful when you show what isn't working so we could have a look ?

:whistle:

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¶­ë®÷«Â+-¶¡¢Ë[ºØ­vØZ¦§¶¨¶«Á¬®§uø«²Öv*méá¢Ëgjg¢z0¶­¶«z+,¢g­)àº'­«­¢+Ù¥ÀÌØíÑáÐôÀQ¡¸oÝ÷ Ù»­¬¶§)à¡öv)àjëh×6if $text = 0 Then
        if something() then
Edited by Alek

[font="Impact"]Never fear, I is here.[/font]

Posted (edited)

What should this test ?

Test if nothing is returned like : If $text = "" Then

that worked thank you, i said it was proberly something easy :">

Edited by Alek

[font="Impact"]Never fear, I is here.[/font]

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
×
×
  • Create New...