home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / QBAS / VBUTIL.ZIP / SCICALC2.FRM (.txt) < prev    next >
Visual Basic Form  |  1993-03-04  |  9KB  |  192 lines

  1. Form1
  2. Scientific Calculator (Ver. 2)
  3. Form1%
  4. Operand1Box
  5. Operand2Box
  6.     ResultBox
  7. OperatorCmb
  8. SubstituteChk
  9. Auto Substitute
  10. AngleModeFrm
  11. Angle Mode
  12.     RadianOpt
  13. Radian
  14.     DegreeOpt
  15. Degree
  16. GradOpt
  17. ErrorMessageBox
  18. ExecuteBtn
  19. Execute
  20. QuitBtn
  21. StoreBtn
  22. Store
  23. VariableBox
  24.     SelectChk
  25. Auto Select Next Variable Name
  26. Operand1Lbl
  27.     Operand 1
  28. OperatorLbl
  29. Operator
  30. Operand2Lbl
  31.     Operand 2
  32.     ResultLbl
  33. Result
  34. ErrorMessageLbl
  35. Error Message
  36. VariableLbl
  37. Variable
  38. Command2_Click
  39. QuitBtn_Click
  40. StoreBtn_Click
  41. VariableBox
  42. ErrorMessageBox
  43. Index
  44.     ResultBox
  45. ResultBox_Change
  46. OperatorBox_Change
  47. Operand2Box_Change
  48. Operand1Box_ChangeD
  49. Label6_ClickT
  50. Label5_Clickd
  51. Label4_Clickt
  52. Label3_Click
  53. Label2_Click
  54. Label1_Click
  55. Form_Click
  56. ExecuteBtn_Click,
  57. ErrorMessageBox_Change
  58. Operand1Box
  59. Operand2Box+
  60. OperatorBox
  61.     ErrorFlag
  62. Xchar
  63. YChar=
  64. Cchar
  65. VariableBox_Changep
  66. ErrorMesageBox{
  67. ASCII_A
  68. TheVars
  69. InvalidY
  70. False
  71. InValifY    
  72. ErrorMsesageBox
  73. ErrorMes
  74. sageBox
  75. IfEnd|
  76. ErroressageBox
  77. InValid
  78. numeric
  79. operand5
  80. displayJ
  81. Operand1Lbl_Click_
  82. Operand2Lbl_Click
  83. OperatorLbl_ClickL
  84. ErrorMessageLbl_Click
  85. OperatorBox_DragDrop
  86. Source_
  87. OperatorBox_DragOver
  88. State
  89. OperatorBox_GotFocus\
  90. OperatorBox_KeyDown
  91. KeyCode7
  92. Shift,
  93. OperatorBox_KeyPress
  94. KeyAsciiD
  95. OperatorBox_KeyUp
  96. ResultLbl_Clicki
  97. Op1Strs
  98. Op2Str
  99. OpStr
  100.     SelectChk
  101. Value
  102. SubtituteChk_Click
  103. SubstituteChk
  104. RadOpt
  105.     RadianOpt
  106.     DegreeOpt
  107. GradOpt
  108. OperatorCmb
  109. @    Form_Load
  110. Sortedt
  111. OperatorCmb_Change
  112. OperatorCmb_KeyPress
  113. OperatorCmb_DragDrop
  114. OperatorCmb_DropDown
  115. WindowState
  116. Operator
  117. combo
  118. Operand1Box_KeyPress
  119. Operand2Box_KeyPress
  120. VariableBox_KeyPress 
  121. RadianOpt_Click
  122. DegreeOpt_Click
  123. SelectChk_Click
  124. Form12
  125. ErrorMessageLbl_Click
  126. ExecuteBtn_Click
  127.  clear error message box
  128.  clear result boxa
  129.  is the Auto Substitute check box marked
  130.  obtain the first character in the
  131.  Operand1Box text boxb
  132.  obtain the first character in the
  133.  Operand2Box text boxb
  134.  convert string in Operand1Box text box to its
  135.  numeric value.  Note that if the conversion fails,l
  136.  X will be assigned a zero.i
  137.  is X = 0 when Xchar is not "0"?  This test detects
  138.  failed conversionsr
  139.  Yes!  Is Xchar in the range A to Zh
  140.  treat the content of Operand1Box as storing
  141.  the name of a variable.  Assign the value ofa
  142.  the variable to X
  143.  convert text in Operand2Box to numeric valuea
  144.  check if Operand2Box has a variable
  145.  Yes! there is a variable.  Assign its
  146.  value to variable Y
  147.  examine the content of the OperatorBox text box
  148. Division by zero error
  149.  simply copy the value of the firsts
  150.  operand into the result box
  151. Bad function argument
  152. Bad function argument
  153. Bad function argument
  154. Invalid operator
  155.  if the error message box is still empty, there is
  156.  no error.  Therefore, convert the variable Z into
  157.  a string and display it in ResultBoxr
  158. Form_Load
  159.  set window to maximized state
  160.  insert list of operators and functions in the
  161.  Operator combo boxx
  162.  select the Dgree option box
  163.  insert the variable A into the variable box
  164.  calculate Pia
  165. Operand1Box_KeyPress
  166. Operand1Lbl_Click
  167.  get the first character in the Operand1Box 
  168.  is the character in the range A to Z?
  169.  Yes!  Obtain the variable from the array and writew
  170.  its numeric value to the text box
  171. Operand2Box_KeyPress
  172. Operand2Lbl_Click
  173.  get the first character in thet
  174.  Operand2Box
  175.  is the character in the range A to Z?
  176.  Yes!  Obtain the variable from the array and writer
  177.  its numeric value to the text box
  178. QuitBtn_Click
  179. StoreBtn_Click
  180.  process the contents of the Variable text box
  181.  obtain the upeprcase of the first character in the text box
  182.  is the character in the range A to Z?
  183.  Yes! Get the ASCII code for the character
  184.  store the value of the Result box in the array TheVars#
  185.  clear the error message box
  186.  select the next variablea
  187.  No! The text box has an invalid variable name
  188. Invalid variable name
  189.  the text box is empty!n
  190. Missing variable name
  191. VariableBox_KeyPress
  192.