You are on page 1of 1

OS.

To get the user values


1. Place your cursor just a er the Debug.Print "OK Button pressed" line and then press <Enter> several mes to create addi onal space between this and the following line beginning with ElseIf.
2. Type the following commands to populate the variables with the values the user types into the dialog:

'Get the values


clmn = Abs( CDbl(dlg.clmn) )
row = Abs( CDbl(dlg.row) )
ht = Abs( CDbl(dlg.ht) )
wdth = Abs( CDbl(dlg.wdth) ) Copy to clipboard
sprt = CStr(dlg.sprt)

Note: The last captures the support array posi on as a string whereas the others all capture absolute value of the user input for the respec ve data fields.

3. Type the following debug statements to provide back the captured values:

Debug.Print "No. of Horizontal Bays = ";clmn


Debug.Print "No. of Vertical Bays = ";row
Debug.Print "Vertical Distance = ";ht
Debug.Print "Horizontal Distance = ";wdth Copy to clipboard
Debug.Print "Support Type = ";sprt

4. Type the following command to set the ini al values for the coordinate variables:

crdx = 0
crdy = 0 Copy to clipboard
crdz = 0

You might also like