Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How i access via script a single element from a textfield defined as Comb Of Characters?

Avatar

Avatar
Level 1
m_tavares
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
m_tavares
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
m_tavares
Level 1

11-01-2018

How i access via script a single element from a textfield defined as Comb Of Characters?

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,686 posts

Correct Reply

490 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,686 posts

Correct Reply

490 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

12-01-2018

You have to select JavaScript as language in the script editor!

Avatar

Avatar
Level 1
m_tavares
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
m_tavares
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
m_tavares
Level 1

12-01-2018

hi, thanks for answer, but didn't work! I got a errorCapturar.PNG

this the code:

var teste = Campotexto3.rawValue.charAt(2)

$host.messageBox(teste)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,686 posts

Correct Reply

490 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,686 posts

Correct Reply

490 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

11-01-2018

You can use the charAt() method which returns a characters at the defined index position (index is 0-based).

var singleChar = Textfield.rawValue.charAt(2); // returns the 3rd character