Академический Документы
Профессиональный Документы
Культура Документы
' Set the string variable called FocalLength, FlyingHEight and Elevation.
Dim strFocalLength, strFlyingHeight, strElevation As String
' Set the decimal variable called FocalLength, FlyingHeight and Elevation.
Dim decFocalLength, decFlyingHeight, decElevation As Decimal
' Set the integer variable called Scale.
Dim intScale As Integer
strFlyingHeight = Me.txtFlyingHeight.Text
decFlyingHeight = Convert.ToDecimal(strFlyingHeight)
strElevation = Me.txtElevation.Text
decElevation = Convert.ToDecimal(strElevation)
Me.txtScaleRatio.Text = intScale.ToString("1:###,###,###")
End Sub