Results 1 to 3 of 3

Thread: Equivalent of <With> statement...

  1. #1
    anoop007
    Guest
    what is the equivalent of the Vb With statement in Turbo C++?

  2. #2
    Guest
    Turbo C++ is not a language, C++ is the language, Turbo C++ is the compiler. But i dont know VB so i have no idea what the eqiuvlent would be. Describe what the function does.

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    There is no equivalent. C++ does not allow you to shorten the names in that way. Chimp, it does this:
    Code:
    Type X
        Y as integer
        z as integer
    end type
    
    sub main()
        dim myself as x
    
        with myself
            .y = 6
        end with
    
        x.z = 7
    end sub
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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