Modify

Opened 16 years ago

Closed 16 years ago

#943 closed Bug (No Bug)

not correct prcocedure

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: Cc:

Description

;Exemple 1 (Need return "ds")
$q='32432ds2345670z45'
$i =StringLen($q)
Do
$i -= 1
Until IsNumber(StringMid($q,$i,1)) = StringMid($q,$i,1) And isNumber(StringMid($q,$i+1,1)) = StringMid($q,$i+1,1)
MsgBox(0,"",StringMid($q,$i,1)& StringMid($q,$i+1,1))

;Exemple 2 
$q='02dfgds2345670z45'
MsgBox(0,'its String!',IsString(StringMid($q,2,1)));(Need return "0" )
MsgBox(0,'its Number!',IsNumber(StringMid($q,2,1)));(Need return "1")

Change History (1)

comment:1 Changed 16 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

You miss the point of what IsString() and IsNumber() do. Re-read the documentation closer. In addition things like this should be posted on the support forum.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.