Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Jun 29, 2010
Messages
2
Location
CR
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
 
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

Back
Top