PDA

Click to See Complete Forum and Search --> : Equivalent of <With> statement...


anoop007
Feb 23rd, 2001, 06:28 PM
what is the equivalent of the Vb With statement in Turbo C++?

Feb 23rd, 2001, 06:46 PM
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.

parksie
Feb 23rd, 2001, 06:50 PM
There is no equivalent. C++ does not allow you to shorten the names in that way. Chimp, it does this:

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