Article View: borland.public.csharpbuilder.aspdotnet.general
Article #37Re: "with/do" statements in C# ?
From: Marc Rohloff TeamB
Date: Sun, 06 Mar 2005 01:36
Date: Sun, 06 Mar 2005 01:36
16 lines
1507 bytes
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
Technical Details
Message-ID:
<uo87307qvf6y$.dlg@marcrohloff.40tude.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!newscore.univie.ac.at!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<422a2d8a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 124d48,dc3cedb155b7f5ad X-Google-Attributes: gid124d48,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Marc Rohloff [TeamB]" <"on request"> Subject: Re: "with/do" statements in C# ? Newsgroups: borland.public.csharpbuilder.aspdotnet.general User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit References: <422a2d8a@newsgroups.borland.com> Date: Sat, 5 Mar 2005 20:36:10 -0500 Message-ID: <uo87307qvf6y$.dlg@marcrohloff.40tude.net> X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR X-Antivirus: avast! (VPS 0509-5, 03/04/2005), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 4.225.97.81 X-Trace: newsgroups.borland.com 1110072770 4.225.97.81 (5 Mar 2005 17:32:50 -0800) Lines: 16 X-Authenticated-User: mrohloff Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!newscore.univie.ac.at!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail