Aspen Touch Solutions ATM-123R Series Specifikace Strana 84

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 374
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 83
2-70 Example 2: Automation in Visual
2-70
19. You are now ready to compile and run the program. Before
you begin, please ensure that you have a copy of HYSYS on
the computer.
20. To compile the program do one of the following:
•Click the Start icon in the toolbar.
Select Start command from the Run menu.
•Press F5 from the keyboard.
VB informs you of any errors that occur during compile time.
Intermediate = FromUC.ToCalculationUnit(FromValue)
ToValue = ToUC.FromCalculationUnit(Intermediate)
lbToValue.Caption = CStr(ToValue)
Converts the contents of the ddFromValue
combo box from the FromUC units to HYSYS
internal units (Intermediate). It then converts
the Intermediate value from internal units to the
ToUC units. It then displays the converted value
in the lbToValue label.
End Sub
Signifies the end of the sub-routine. This line does
not need to be added.
Code Explanation
Private Sub btExit_Click()
Signifies the Start of the sub-routine.
Unload Me
End
Unloads the form and ends the program.
End Sub
Signifies the end of the sub-routine. This line does
not need to be added.
Code Explanation
Start icon
Zobrazit stránku 83
1 2 ... 79 80 81 82 83 84 85 86 87 88 89 ... 373 374

Komentáře k této Příručce

Žádné komentáře