🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #15282

Re: DataSource / DataField overnemen

#15282
From: Koen Van Impe
Date: Tue, 24 Oct 2000 00:00
45 lines
2212 bytes
Ik heb het nu getest met deze code

Public Property Get DataSource() As Variant
    DataSource = Text1.DataSource
End Property

Public Property Set DataSource(ByVal vNewValue As Variant)
    Set Text1.DataSource = vNewValue
    PropertyChanged "DataSource"
End Property

Public Property Get DataField() As Variant
    DataField = Text1.DataField
End Property

Public Property Set DataField(ByVal vNewValue As Variant)
    Set Text1.DataField = vNewValue
    PropertyChanged "DataField"
End Property

en in "Procedure Attributes" plaats ik zowel voor DataSource als DataField
"Property is data-bound". Voor DataField zet ik als extra "This Propery
Binds to DataField". Het resultaat (na't plaatsen van'n ADO-control op een
test-form) is :
"Unable to bind field to data-member"

Koen Van Impe <koen.vanimpe@programmer.net> schreef in berichtnieuws
NlgJ5.1824$Aw3.49191@iguano.antw.online.be...
> Hallo,
>
> Ik zou graag m'n eigen 'Usercontrol' schrijven die zowel kan dienen voor
een
> normale textbox als voor een textbox gekoppeld aan een database. Via de
> ADO-control kan je bij een normale textbox "DataSource" en "DataField"
> opgeven.
>
> Welke code en instellingen zou ik moeten gebruiken om in m'n eigen
> Usercontrol (die ��n textbox bevat) de DataSource en DataField door te
> mappen?
>
> Mvg,
>
> Koen Van Impe
>
>
Technical Details
Message-ID: <zlkJ5.1838$Aw3.49834@iguano.antw.online.be>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <NlgJ5.1824$Aw3.49191@iguano.antw.online.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII
X-Google-Thread: 107324,146e4e3cd638d438
X-Google-Attributes: gid107324,public
X-Google-Thread: fcea4,146e4e3cd638d438
X-Google-Attributes: gidfcea4,public
From: "Koen Van Impe" <koen.vanimpe@programmer.net>
Subject: Re: DataSource / DataField overnemen
Date: 2000/10/24
Message-ID: <zlkJ5.1838$Aw3.49834@iguano.antw.online.be>
X-Deja-AN: 685310334
References: <NlgJ5.1824$Aw3.49191@iguano.antw.online.be>
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 972411359 62.112.7.8 (Tue, 24 Oct 2000 19:15:59 WET DST)
Organization: Customer Of Online Internet Nv/Sa
X-MSMail-Priority: Normal
NNTP-Posting-Date: Tue, 24 Oct 2000 19:15:59 WET DST
Newsgroups: be.comp.programming,nl.comp.programmeren