🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.vbasic
3 messages
3 total messages Started by Jędruś Sat, 29 Aug 2009 21:15
reader.getstring null
#104278
Author: Jędruś
Date: Sat, 29 Aug 2009 21:15
13 lines
1499 bytes
witam

odczytuje dane z bazy za pomocą SQLDataReader`a, czyli:

if not reader.getstring(nrpola) = system.dbnull then
   wartosc = reader.getstring(nrpola)
end if

ale mi krzyczy:

" 'dbnull' is a type in 'system' and cannot be used as an expression "

co muszę zrobić, aby zadziałało sprawdzenie.
Re: reader.getstring null
#104279
Author: Wiktor Zychla
Date: Mon, 31 Aug 2009 07:57
10 lines
1224 bytes
> co muszę zrobić, aby zadziałało sprawdzenie.

czytać uważnie komunikaty kompilatora.
system.dbnull jest nazwą TYPU, dokładnie tak jak Ci napisał.

domyślna instancja tego typu to

system.dbnull.value

Wiktor Zychla 
Re: reader.getstring null
#104280
Author: Jędruś
Date: Mon, 31 Aug 2009 19:01
14 lines
1719 bytes
On 31 Sie, 09:57, "Wiktor Zychla" <u...@nospam.com.eu> wrote:
> > co muszę zrobić, aby zadziałało sprawdzenie.
>
> czytać uważnie komunikaty kompilatora.
> system.dbnull jest nazwą TYPU, dokładnie tak jak Ci napisał.
>
> domyślna instancja tego typu to
>
> system.dbnull.value
>
> Wiktor Zychla

ok, dzięki
raczkuje dopiero w NET
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