Article View: be.comp.programming
Article #496Re: VB 2005 EE -global declareations section
From: Vito
Date: Wed, 07 Mar 2007 20:01
Date: Wed, 07 Mar 2007 20:01
33 lines
2606 bytes
2606 bytes
JanS schreef: > "Vito" <vito@home.fake> wrote in message > news:U5qdnSsumNGN1XHYnZ2dnUVZ8v2vnZ2d@scarlet.biz... >> Hallo, ik zou een paar variablen als 'global' moeten declareren, >> tistezegge: zodanig dat die kunnen bereikt en gewijzigd worden door alle >> classen en ook alle forms in het project. Ik weet dat dit geen goede >> programmeer-attitude is, maar voorlopig weet ik niet hoe het anders aan te >> pakken .... >> Nu, hoe hard ik ook gezocht heb ... ik kan die 'global declarations >> section' maar niet vinden en ik weet ook niet hoed dat allemaal te doen. >> >> Graag wat tips. >> >> Bedankt >> >> Vito > > > > > Als je een form1 start in code staat bovenaan Public Class Form1 Gewoon > daaronder zetten? Het lijnje om af te lijnen zet hij zelf > > Evt in de 2 Comboboxen erboven Form1 en declarations selecteren Als ik het zo doe zijn die variabelen enkel bereikbaar door de functies in form1, niet in andere forms of andere classen. Ik herinner mij vaag dat er een methode is om variablen echt 'global' te declareren zodat ze door alles in heel het project herkend en ook gebruikt kunnen worden. Of hebben ze dat afgeschaft in VB 2005 EE? Vito
Technical Details
Message-ID:
<7didnZBcWJSDh3LYnZ2dnUVZ8sCsnZ2d@scarlet.biz>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mailReferences:
<U5qdnSsumNGN1XHYnZ2dnUVZ8v2vnZ2d@scarlet.biz> <GjiHh.44534$cR6.380017@phobos.telenet-ops.be>Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,d385ad6eef726b2e X-Google-Attributes: gidfcea4,public X-Google-Language: DUTCH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail NNTP-Posting-Date: Wed, 07 Mar 2007 14:01:33 -0600 Date: Wed, 07 Mar 2007 21:01:32 +0100 From: Vito <vito@home.fake> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: be.comp.programming Subject: Re: VB 2005 EE -global declareations section References: <U5qdnSsumNGN1XHYnZ2dnUVZ8v2vnZ2d@scarlet.biz> <GjiHh.44534$cR6.380017@phobos.telenet-ops.be> In-Reply-To: <GjiHh.44534$cR6.380017@phobos.telenet-ops.be> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <7didnZBcWJSDh3LYnZ2dnUVZ8sCsnZ2d@scarlet.biz> Lines: 33 NNTP-Posting-Host: 62.235.152.53 X-Trace: sv3-wVzoWmMkZ8ioB+wFL8XK56pXX16CVHHiojisMHFvrMle0B8nRoihgERcaBM7GbC+pI0pip8A+0mcE3d!aWGRPw8PHdlcOdLPtKOiv2TFupigdPDFy9aM70tUpMIffJSLKM1wxBe7uCQwi6uAeF4znp/ogsU5!EDpcdoYvi/pV X-Complaints-To: abuse@scarlet.be X-DMCA-Complaints-To: abuse@scarlet.biz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34