| Subject |
Re: Null datasource |
| From |
Roz Bernitz <roz@bernitz.co.za> |
| Date |
Wed, 10 Mar 2021 11:18:55 -0500 |
| Newsgroups |
dbase.getting-started |
Thanks,Mervyn
How embarrassing! Wrong parent
Roz
Mervyn Bick Wrote:
> On 2021/03/10 09:57, Roz Bernitz wrote:
> > How do I remove the datasource of an object? In this instance, if CARSBOX = true, the bodycode is no longer valid
> >
> >
> > function CARSBOX_onChange()
> > if this.Value = true
> > form.typecontainer.vehtypecode.dataSource = 'array {"SED","HAT","XVR","EST","COU","SCC","SFT","CCP","MPV","REC","ATE","MBS"}'
> > form.typecontainer.bodycodebox2.dataSource = ""
> > form.typecontainer.subbodycode.dataSource = ""
> > form.Itsacar()
> > endif
> > return
> >
> > Setting datasource to "" is creating Error: Data type mismatch. Expecting: Object
>
> Although "" is an empty string and not an object I don't think this is
> what's upsetting dBASE. Assigning an empty string to a dataSource
> property should not cause a problem.
>
> My money is on a typo in either bodycodebox2 or subbodycode. Assuming,
> of course, that typecontainer is actually the parent of bodycode2 and
> subbodycode.
>
> Mervyn.
|
|