Thread View: pl.comp.lang.vbasic
3 messages
3 total messages
Started by Jędruś
Sat, 29 Aug 2009 21:15
reader.getstring null
Author: Jędruś
Date: Sat, 29 Aug 2009 21:15
Date: Sat, 29 Aug 2009 21:15
13 lines
1499 bytes
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
Author: Wiktor Zychla
Date: Mon, 31 Aug 2009 07:57
Date: Mon, 31 Aug 2009 07:57
10 lines
1224 bytes
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
Author: Jędruś
Date: Mon, 31 Aug 2009 19:01
Date: Mon, 31 Aug 2009 19:01
14 lines
1719 bytes
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