Jump to content
Sign in to follow this  

Getting a character in string by index

Recommended Posts


I have a string "hello"

Is there a way to reference specific characters in the string by index?

In python I could just use subscripts.

In java I would just use charAt.

EDIT: I could use StringMid($myString, $index, 1), but that seems tedious whenever I want to get a character from a string.

Edited by Tsukihime

Share this post

Link to post
Share on other sites

And in AutoIt you could use StringInStr - it returns the character's position.

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

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.