Subject Null datasource
From Roz Bernitz <roz@bernitz.co.za>
Date Wed, 10 Mar 2021 02:57:24 -0500
Newsgroups dbase.getting-started

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

Thanks
Roz