🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.aspdotnet.components.using
Article #265

DBWebImage & DBWebDataSource

#265
From: dude
Date: Mon, 11 Apr 2005 09:35
28 lines
1530 bytes
I have DBWebImage {sImage} on my page. When i do this:

  with sImage do begin
   ColumnName:='foto';
   DBDataSource:=dbSource;
   TableName:='EMPLOYEES';
   AlternateText:='Static Image';
  end;

all is fine. But, if i do this:

  dImage:=DBWebImage.Create;
  with dImage do begin
   ColumnName:='foto';
   DBDataSource:=dbSource;
   TableName:='EMPLOYEES';
   AlternateText:='Dynamic Image';
  end;

i have an error 'Object reference not set to an instance of an object.'
Source Error: DBDataSource:=dbSource;

if i change the line: DBDataSource:=nil; i see dImage with  
AlternateText='Dynamic Image'.

So dImage is creating, but databinding is failure. Why?

--
Technical Details
Message-ID: <opso198tsxvd084f@anisimovav.volga.lukoil.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 21665a,ee133e4b1a36c4b4,start
X-Google-Attributes: gid21665a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.delphi.aspdotnet.components.using
Subject: DBWebImage & DBWebDataSource
From: dude <dude_nn@mail.ru>
Content-Type: text/plain; format=flowed; delsp=yes; charset=koi8-r
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Date: Mon, 11 Apr 2005 13:35:07 +0400
Message-ID: <opso198tsxvd084f@anisimovav.volga.lukoil.com>
User-Agent: Opera M2(BETA1)/8.00 (Win32, build 7401)
NNTP-Posting-Host: 195.98.45.33
X-Trace: newsgroups.borland.com 1113212136 195.98.45.33 (11 Apr 2005 02:35:36 -0800)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail