Skip to main content
1-Visitor
October 26, 2012
Solved

convert real number in string ?

  • October 26, 2012
  • 2 replies
  • 1957 views

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

Best answer by Raiko

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

2 replies

Raiko17-PeridotAnswer
17-Peridot
October 26, 2012

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

SeeBear1-VisitorAuthor
1-Visitor
October 26, 2012

Hej Raiko,

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

Have a nice day...

Rolf