Article View: be.comp.programming
Article #15334datasource / dataformat : user defined type not defined
From: Koen Van Impe
Date: Sun, 15 Oct 2000 00:00
Date: Sun, 15 Oct 2000 00:00
42 lines
1948 bytes
1948 bytes
Hallo,
Ik ben nieuw in VB6 en ik probeer m'n eigen control te schrijven rond een
textbox. De applicaties die ik moet schrijven halen hun data uit SQL-Server
7 & Access 2000.
Wanneer ik een test uitvoer via de ActiveX Control Interface Wizard en enkel
de properties "DataFormat" & "DataSource" doorgeef dan krijg ik de
foutmelding :
"user defined type not defined" on "IStdDataFormatDisp"
Ik heb in het project een reference gelegd naar "ActiveX Data Objects".
'MappingInfo=Text1,Text1,-1,DataFormat
Public Property Get DataFormat() As IStdDataFormatDisp
Set DataFormat = Text1.DataFormat
End Property
Public Property Set DataFormat(ByVal New_DataFormat As IStdDataFormatDisp)
Set Text1.DataFormat = New_DataFormat
PropertyChanged "DataFormat"
End Property
Weet iemand wat er fout loopt?
Hetzelfde gebeurt met :
"DataSource" (user defined type no defined"
'MappingInfo=Text1,Text1,-1,DataSource
Public Property Get DataSource() As DataSource
Set DataSource = Text1.DataSource
End Property
Public Property Set DataSource(ByVal New_DataSource As DataSource)
Set Text1.DataSource = New_DataSource
PropertyChanged "DataSource"
End Property
Groeten,
Koen Van Impe
Technical Details
Message-ID:
<gjjG5.1202$Aw3.30521@iguano.antw.online.be>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcea4,99f250607ff29090,start X-Google-Attributes: gidfcea4,public From: "Koen Van Impe" <koenvan_impe@compuserve.com> Subject: datasource / dataformat : user defined type not defined Date: 2000/10/15 Message-ID: <gjjG5.1202$Aw3.30521@iguano.antw.online.be> X-Deja-AN: 681682735 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Complaints-To: news-abuse@noc.online.be X-Trace: iguano.antw.online.be 971620684 62.112.7.13 (Sun, 15 Oct 2000 15:38:04 WET DST) Organization: Customer Of Online Internet Nv/Sa X-MSMail-Priority: Normal NNTP-Posting-Date: Sun, 15 Oct 2000 15:38:04 WET DST Newsgroups: be.comp.programming