×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Text Box output as numbers
2

Text Box output as numbers

Text Box output as numbers

(OP)
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

RE: Text Box output as numbers

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources