Jump to content
Sign in to follow this  
Alek

Number or Word

Recommended Posts

Alek

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]

Share this post


Link to post
Share on other sites
Automan Empire

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

Share this post


Link to post
Share on other sites
SadBunny

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.

Share this post


Link to post
Share on other sites
Alek

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]

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Alek

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]

Share this post


Link to post
Share on other sites
Alek

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]

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  

×