Results 1 to 5 of 5

Thread: What is equal to Dim in C#?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Toronto, Ontario, Canada
    Posts
    275

    What is equal to Dim in C#?

    Hey whats eqaul to dim in C#?

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Toronto, Ontario, Canada
    Posts
    275
    please help!

  3. #3
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    I cant believe that no one has answered this simple question yet .

    Anyway:

    Dim sName as String is the same as
    string sName; in c#

    cheers
    Dont gain the world and lose your soul

  4. #4
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    for class or whatever instantiation make

    type name = new type(args);
    \m/\m/

  5. #5
    Addicted Member
    Join Date
    Aug 2002
    Location
    London UK
    Posts
    255
    VB Code:
    1. <object> <name> = new <object>();
    2.  
    3. string sMyString = new string();
    4. 'creates empty string called sMyString
    5.  
    6. int iMyInt = new int();
    7. 'creates empty integer called sMyInt
    8.  
    9. string sMyString = new string('#', 8);
    10. 'creates string "########"
    11.  
    12. string sMyString = "blah blah blah"
    13. 'creates string "blah blah blah"
    Not at all related to sheep...

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