Sign in to follow this  
Followers 0
Alek

Number or Word

8 posts in this topic

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



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

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

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

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:


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#6 ·  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]

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#8 ·  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]

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  
Followers 0