Results 1 to 3 of 3

Thread: PLEASE HELP!!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000


    I am getting so frustrated! For my class project I need to design a calculator (NO Problem). I addition it needs to convert feet and inches to Meters and cm and vice versa. Also it needs to convert pounds and ounces to kilograms and grams. He suggested that the calc was to have four buttons. A select button to change the two buttons and a calc button. I have spent a whole day experimenting to no avail.

  2. #2
    Hmm...Maybe this is what you're looking for?

    Public Func1 As Byte
    Public Func2 As Byte
    Sub Command1_Click()
      Select Case Func1
        Case 1
          'Events For If It's "1"
        Case 2
        'Lots more of these
      End Select
    End Sub
    Sub Redefine_Click()
      Func1 = 1 'Or your value
      Func2 = 1 'Or Your valus
    End Sub
    I'd never be sure to give you the right answer until you tell me exactly what you want instead of describing what the guy who is frustrating you did...

    Enum Humor
    Yonatan = 0
    End Enum

    Error 01: Yonatan? The computer will now die of laughter!

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Const oz2kg!=0.02835
    Const lb2kg!=0.4536
    Const in2m!=0.02540
    Const ft2m!=0.3048
    I think you need these
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width