cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

convert real number in string ?

SOLVED
Newbie

convert real number in string ?

Good morning,

i am a newbie in MC.

I am searching for a possibility to convert a "real" number into a string. (in a script of a text box)

I tried it in this way, but it failed....

Text=num2str(Inputs(0).Value)

If IsString (Text) Then

MsgBox "string"

End If

Please help....

Thanks....

Bye Rolf

1 ACCEPTED SOLUTION

Accepted Solutions

Re: convert real number in string ?

Hello Rolf,

try this code in e.g. a textbox.

Raiko

Sub TextBoxEvent_Exec(Inputs,Outputs)

XY=CStr(TextBox.Text)

Outputs(0).Value = XY

End Sub

View solution in original post

2 REPLIES 2

Re: convert real number in string ?

Hello Rolf,

try this code in e.g. a textbox.

Raiko

Sub TextBoxEvent_Exec(Inputs,Outputs)

XY=CStr(TextBox.Text)

Outputs(0).Value = XY

End Sub

View solution in original post

Highlighted

Re: convert real number in string ?

Hej Raiko,

thank you very much.... Works fine now!!! That help´s me a lot!!!

Have a nice day...

Rolf

Announcements