Re: The set does not exist
There is the answer: "the data source is arrays". The highlight set only applies to selection (table) based list boxes. To get the highlighted rows of an array listbox, you use the True/False value of the boolean array representing the listbox. See the "Managing Selection" section on the page below. https://doc.4d.com/4Dv17/4D/17.2/Managing-List-Box-Objects.300-4386875.en.html John DeSoi, Ph.D. > On Jul 7, 2019, at 4:42 PM, Carl Aage Wangel via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I am using the right listbox name (listbox object name) and the data source > is arrays. But $tableNum is -1 and $namedSelection and $highlightSet is “” > (empty). ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: The set does not exist
The highlight set for a listbox is set in the listbox properties. If this is empty, then there is no highlight set. If the listbox set name you are trying to use does not match the listbox set name property then you are not going to get the anwer(s) you expect. If you want I have an old demo/source code for list boxes which I'll share, send me an email Chip > Replying to myself here(!) but I should also have mentioned a third > thing to check: > > * have you used the correct name in the $ListBoxName variable? > * what does $tableNum contain? It should be a valid table number > * check the contents of $highlightSet - it should be a non-empty string > > Regards, > > Narinder Chandi, > ToolBox Systems Ltd. > -- > > -Original Message- > From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech > Mailing List <4d_tech@lists.4d.com> > Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com> > Date: Saturday, 6 July 2019 at 12:24 > To: 4D Tech Mailing List <4d_tech@lists.4d.com> > Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com> > Subject: Re: The set does not exist > > Carl, > > Hi. Couple of obvious things to check: > * have you used the correct name in the $ListBoxName variable? > * what does $tableNum contain? It should be a valid table number > > Regards, > > Narinder Chandi, > ToolBox Systems Ltd. > -- > > -Original Message- > From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech > Mailing List <4d_tech@lists.4d.com> > Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com> > Date: Saturday, 6 July 2019 at 11:59 > To: 4D Tech Mailing List <4d_tech@lists.4d.com> > Cc: Carl Aage Wangel > Subject: The set does not exist > > Using the following method, I get the error "The set does not > exist". > > $ListBoxName:="ListBoxObjectName" > > LISTBOX GET TABLE > SOURCE(*;$ListBoxName;$tableNum;$namedSelection;$highlightSet) > > USE SET($highlightSet) > > I select records (rows) from the listbox before running the method. > > I obviously have a lack of knowledge. Can anyone guide me in > the right > direction? Can't find anything in 4D Knowledge Base. > > Regards > > Carl > > > > > ** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > > ** > > > ** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** > > > ** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** Hell is other people Jean-Paul Sartre ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: The set does not exist
Replying to myself here(!) but I should also have mentioned a third thing to check: * have you used the correct name in the $ListBoxName variable? * what does $tableNum contain? It should be a valid table number * check the contents of $highlightSet - it should be a non-empty string Regards, Narinder Chandi, ToolBox Systems Ltd. -- -Original Message- From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing List <4d_tech@lists.4d.com> Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com> Date: Saturday, 6 July 2019 at 12:24 To: 4D Tech Mailing List <4d_tech@lists.4d.com> Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com> Subject: Re: The set does not exist Carl, Hi. Couple of obvious things to check: * have you used the correct name in the $ListBoxName variable? * what does $tableNum contain? It should be a valid table number Regards, Narinder Chandi, ToolBox Systems Ltd. -- -Original Message- From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing List <4d_tech@lists.4d.com> Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com> Date: Saturday, 6 July 2019 at 11:59 To: 4D Tech Mailing List <4d_tech@lists.4d.com> Cc: Carl Aage Wangel Subject: The set does not exist Using the following method, I get the error "The set does not exist". $ListBoxName:="ListBoxObjectName" LISTBOX GET TABLE SOURCE(*;$ListBoxName;$tableNum;$namedSelection;$highlightSet) USE SET($highlightSet) I select records (rows) from the listbox before running the method. I obviously have a lack of knowledge. Can anyone guide me in the right direction? Can't find anything in 4D Knowledge Base. Regards Carl ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com ** ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com ** ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: The set does not exist
Carl, Hi. Couple of obvious things to check: * have you used the correct name in the $ListBoxName variable? * what does $tableNum contain? It should be a valid table number Regards, Narinder Chandi, ToolBox Systems Ltd. -- -Original Message- From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing List <4d_tech@lists.4d.com> Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com> Date: Saturday, 6 July 2019 at 11:59 To: 4D Tech Mailing List <4d_tech@lists.4d.com> Cc: Carl Aage Wangel Subject: The set does not exist Using the following method, I get the error "The set does not exist". $ListBoxName:="ListBoxObjectName" LISTBOX GET TABLE SOURCE(*;$ListBoxName;$tableNum;$namedSelection;$highlightSet) USE SET($highlightSet) I select records (rows) from the listbox before running the method. I obviously have a lack of knowledge. Can anyone guide me in the right direction? Can't find anything in 4D Knowledge Base. Regards Carl ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com ** ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **