Adblock breaks this site

dim...... I NEED HELP PLEASE. I THINK ITS SIMPLE

Discussion in 'Programming General' started by alexandr, Mar 20, 2008.

  1. alexandr

    alexandr Guest

    Referrals:
    0
    dim...... I NEED HELP PLEASE. I THINK ITS SIMPLE

    hey , i was wonderin how to dim a letter as a whole bunch of code...
    ex.. a = msgbox "hello"
    i want to be so if i put the letter "a" in the coding of a button it will be msgbox "hello"
    thanks for any he,lp
     
  2. Elkins121

    Elkins121 Member

    Joined:
    Sep 18, 2007
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0
    dim...... I NEED HELP PLEASE. I THINK ITS SIMPLE

    The closest thing to that I could find was Dim a As MessageBox...
    But, in your code, you would have to put a.Show and then all kinds of variables...
     
  3. alexandr

    alexandr Guest

    Referrals:
    0
    dim...... I NEED HELP PLEASE. I THINK ITS SIMPLE

    yea, that didnty work, and im not sayin just messageboxes, i m talking diming any code as a letter
     
  4. Elkins121

    Elkins121 Member

    Joined:
    Sep 18, 2007
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0
    dim...... I NEED HELP PLEASE. I THINK ITS SIMPLE

    Dim a As String
     
  5. alexandr

    alexandr Guest

    Referrals:
    0
    dim...... I NEED HELP PLEASE. I THINK ITS SIMPLE

    i did that.... still didnt work
     
  6. hmm

    hmm Active Member

    Joined:
    Jan 21, 2007
    Posts:
    181
    Referrals:
    2
    Sythe Gold:
    5
    dim...... I NEED HELP PLEASE. I THINK ITS SIMPLE

    dim a as string = "Hello"
    messagebox.show(a)

    uhm im guessing thats not what you want..why dont you just call the messagebox to say hello in the first place?

    messagebox.show("Hello")
     
  7. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    dim...... I NEED HELP PLEASE. I THINK ITS SIMPLE

    You could always create a reference to the MessageBox class.
     
  8. Stuart

    Stuart Guru
    Banned

    Joined:
    May 5, 2005
    Posts:
    1,580
    Referrals:
    2
    Sythe Gold:
    10
    dim...... I NEED HELP PLEASE. I THINK ITS SIMPLE

    o_O what are you actually trying to do, If you actually gave a half decent explaination it would be alot easier then people just posting random code.
     
  9. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    dim...... I NEED HELP PLEASE. I THINK ITS SIMPLE

    I think he's trying to reference or assign variables to blocks or statements of code.

    In which case, classes and methods are his friend.
     
< Any ideas? | 0wn_b0t >


 
 
Adblock breaks this site