Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations pierreick on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Box output as numbers 2

Status
Not open for further replies.

ChechiCR

Structural
Jun 29, 2010
2
I will like to know if it is possible to use the output of mathcad´s control text box as a numerical value. All I can do now is to get the output as a text with the following written in the script editor:

Outputs(0).Value = Textbox.text

I need something like:

Outputs(0).Value = Textbox.number, but this one doesn´t work.

Does anyone have any idea of how to do it?

Thanks in advance,

SG
 
Replies continue below

Recommended for you

Code:
Sub TextBoxEvent_Start()
  Rem TODO: Add your code here
End Sub

Sub TextBoxEvent_Exec(Inputs,Outputs)
	Value = CDbl(TextBox.Text)
  Outputs(0).Value = Value
End Sub

Sub TextBoxEvent_Stop()
  Rem TODO: Add your code here
End Sub

Or do it this way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor