Article View: be.comp.programming
Article #8034Re: Boolean => 2 x Byte in VB
From: Tim A.
Date: Thu, 01 Aug 2002 17:11
Date: Thu, 01 Aug 2002 17:11
23 lines
1995 bytes
1995 bytes
"Steven Op de beeck" <ann1ka@gmx.invalid> schreef in bericht news:3d4967e3$0$205$ba620e4c@news.skynet.be... > > Nu zou ik die 'Banned' (=boolean, 2 bytes) willen vervangen met 2 keer een > > variabele van 1 byte > > Ik ben geen vb user. Maar het zou mij verwonderen dat een normale boolean 2 > bytes groot is. Tenzij vb de wordbool als standaard heeft. > > Probeer eens met sizeof() (of de vb variant) de grootte van een boolean variable > af te drukken. > > Ik kan mij natuurlijk vergissen. > Quote uit MSDN: Boolean variables are stored as 16-bit (2-byte) numbers, but they can only be True or False. Boolean variables display as either True or False (when Print is used) or #TRUE# or #FALSE# (when Write # is used). Use the keywords True and False to assign one of the two states to Boolean variables. Tja :-)
Technical Details
Message-ID:
<gZd29.40423$8o4.5473@afrodite.telenet-ops.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!diablo.theplanet.net!kibo.news.demon.net!demon!newshub1.nl.home.com!news.nl.home.com!amsnews01.chello.com!trev!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mailReferences:
<HIc29.40100$8o4.5183@afrodite.telenet-ops.be> <3d4967e3$0$205$ba620e4c@news.skynet.be>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: fcea4,bbc704fbf159d5c3 X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2002-08-01 10:14:41 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!diablo.theplanet.net!kibo.news.demon.net!demon!newshub1.nl.home.com!news.nl.home.com!amsnews01.chello.com!trev!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail From: "Tim A." <tj@y_ucom.be> Newsgroups: be.comp.programming References: <HIc29.40100$8o4.5183@afrodite.telenet-ops.be> <3d4967e3$0$205$ba620e4c@news.skynet.be> Subject: Re: Boolean => 2 x Byte in VB Lines: 27 Organization: . X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <gZd29.40423$8o4.5473@afrodite.telenet-ops.be> Date: Thu, 01 Aug 2002 17:11:40 GMT NNTP-Posting-Host: 213.119.133.200 X-Complaints-To: abuse@telenet.be X-Trace: afrodite.telenet-ops.be 1028221900 213.119.133.200 (Thu, 01 Aug 2002 19:11:40 MET DST) NNTP-Posting-Date: Thu, 01 Aug 2002 19:11:40 MET DST