Jump to content

characters within a string?

Recommended Posts

allrighty, I'm a newb with autoit, so please be gentle. I'm working on something text-based, and I need a way to find what character is at a certain position within a string, and how to delete it. anything simple?


Link to comment
Share on other sites

StringMid - to find a character in a certain position

StringReplace - to replace that character

$string = "1234567890"
$charPos5 = StringMid($string, 5, 1)
MsgBox(0, "char in pos 5", $charPos5)
$strRepl5thChar = StringReplace($string, 5, "A")
MsgBox(0, "replaced 5th char with A", $strRepl5thChar)

Read about these functions!

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...