Results 1 to 6 of 6

Thread: with?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Posts
    207

    with?

    Does anyone know if there is a with statement and/or an equivalent?

    Jeremy

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    There is no equivalent.
    Dont gain the world and lose your soul

  3. #3
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    oh...that sucks lol

  4. #4
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Here is about as close as you'll get in C#:

    Code:
    using a = System;
    
    public class Example
    {
    	static void Main()
    	{
    		a.Console.WriteLine("Shortcut syntax");
    		a.Console.ReadLine();
    	}
    }

  5. #5
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    =\ the With in vb rules

  6. #6
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    I disagree. I think 'with' blocks make code more difficult to read. That's just my opinion. I'm bored on a late friday night, so I'm just replying to all the threads!

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