1 Replies - 9998 Views - Last Post: 27 January 2015 - 10:10 AM

#1 firebolt   User is offline

  • D.I.C Lover
  • member icon

Reputation: 93
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Convert Cm to Inches

Posted 20 April 2009 - 06:49 PM

Description:
Private Sub Display(x As Integer)
'-- mod: input of integer times 2.54 is inches to CM.  To bring this into alignment with the title, and code intent this line was changed
'--     MsgBox x * 2.54
    MsgBox x / 2.54
End Sub
 
Private Sub Form_Load()
    Dim a As Integer
    a = InputBox("Enter Cm")
    Display a
End Sub

This post has been edited by modi123_1: 27 January 2015 - 11:31 AM
Reason for edit:: fixing code

Is This A Good Question/Topic? 0
  • +

Replies To: Convert Cm to Inches

#2 HitchCraft   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 4
  • Joined: 27-January 15

Re: Convert Cm to Inches

Posted 27 January 2015 - 10:10 AM

This will convert inches to centimeters. You need to divide by 2.54 to convert centimeters to inches.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1