🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.csharpbuilder.aspdotnet.general
3 messages
3 total messages Started by Ramtin Sat, 05 Mar 2005 22:07
"with/do" statements in C# ?
#36
Author: Ramtin
Date: Sat, 05 Mar 2005 22:07
5 lines
934 bytes
Hi
what is equivalent for delphi "with/do" statements in C# ?

TNX
Ramin Kazemi
Re: "with/do" statements in C# ?
#37
Author: Marc Rohloff TeamB
Date: Sun, 06 Mar 2005 01:36
16 lines
1507 bytes
On Sun, 6 Mar 2005 01:37:03 +0330, Ramtin wrote:

> what is equivalent for delphi "with/do" statements in C# ?
There is no equivalent. You could assign a local variable an duse it:

ie: instead of
  with datset1 do
    First;

do:    
  TDataset d = dataset1;
  d.First;

-- 
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com
Re: "with/do" statements in C# ?
#38
Author: Ramtin
Date: Sun, 06 Mar 2005 14:50
1 lines
878 bytes
Thanks Marc!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads