Related articles |
---|
Pronouns in programming language? vii@altern.org (John Fremlin) (2000-02-27) |
Re: Pronouns in programming language? schairer@dai.ed.ac.uk (Axel Schairer) (2000-02-28) |
Re: Pronouns in programming language? rweaver@ix.netcom.com (2000-02-28) |
Re: Pronouns in programming language? pwagle@my-deja.com (2000-02-28) |
Re: Pronouns in programming language? jjones@cs.uiuc.edu (2000-02-28) |
Re: Pronouns in programming language? mal@bewoner.dma.be (Lieven Marchand) (2000-02-28) |
Re: Pronouns in programming language? hamish.a@virgin.net (Hamish Atkinson) (2000-02-28) |
Re: Pronouns in programming language? rkrayhawk@aol.com (2000-02-28) |
Re: Pronouns in programming language? ele@freesurf.ch (H. Ellenberger) (2000-02-28) |
Re: Pronouns in programming language? torbenm@diku.dk (2000-03-03) |
Re: Pronouns in programming language? schairer@dai.ed.ac.uk (Axel Schairer) (2000-03-03) |
Re: Pronouns in programming language? jejones@microware.com (James Jones) (2000-03-03) |
Re: Pronouns in programming language? cbrtjr@ix.netcom.com (Charles E. Bortle, Jr.) (2000-03-06) |
[9 later articles] |
From: | "Hamish Atkinson" <hamish.a@virgin.net> |
Newsgroups: | comp.compilers |
Date: | 28 Feb 2000 03:01:15 -0500 |
Organization: | Virgin Net Usenet Service |
References: | 00-02-149 |
Keywords: | syntax, design |
Visual basic allows you to manually reduce the scope using the WITH
construct eg:
Set rstSources = MyDb.OpenRecordset("Sources", dbOpenTable, )
With rstSources
.AddNew
!Name = NewSource
.Update
.Bookmark = .LastModified
AddSource = !SourceID
End With
This eliminates the need to type the variable name over and makes the code
easier to read.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.