How can I use 1 special character only inside a text?

Get help using Construct 2

Post » Tue Feb 07, 2017 12:51 pm

Hey guys! Can you help me please with this issue?

I have a text, so i want "on text changed" to use 1 special character only. For example:
Code: Select all
$29.99

In this example i want to add only 1 "." character, I don't want to have this results:
Code: Select all
$29..99
or
$29...........99
etc etc

Can i? Thank you!!!
B
57
S
35
G
16
Posts: 232
Reputation: 13,768

Post » Tue Feb 07, 2017 6:17 pm

odiusfly wrote:Hey guys! Can you help me please with this issue?

I have a text, so i want "on text changed" to use 1 special character only. For example:
Code: Select all
$29.99

In this example i want to add only 1 "." character, I don't want to have this results:
Code: Select all
$29..99
or
$29...........99
etc etc

Can i? Thank you!!!


Not sure if this is what you are asking about, but you can combine text the way you want, that being numbers/text.

Nr1 = 29
Nr2 = 99

Text1.Text = "$" & Nr1 & "." & Nr2
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848

Post » Tue Feb 07, 2017 8:10 pm

Thank you for your reply. No i don't want to separate the text. I need 1 textbox to use it and write numbers (random). And when i hit "." character to add 1 time only.
B
57
S
35
G
16
Posts: 232
Reputation: 13,768


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests