you can also clear, and recreate the selection set. Given : Listbox selection set name = "My_Listbox_Set"
Clear set("My_Listbox_Set") Create set([table];"My_Listbox_Set") or listbox get table source(My_Listbox;$Tablenum) Create set(table($Tablenum)->;"My_Listbox_Set") On Tue, 15 Aug 2017 15:53:35 -0400, Charles Miller via 4D_Tech wrote: > Hi All, > Version 15.4hf2 > > I have a selection based list box with following code on double click event > > *If *(*Not*(InDoubleClick_B)) > > InDoubleClick_B:=*True* > > *C_BOOLEAN*(INV_InventInspLocked) > > *FORM SET INPUT*([InventoryPhotos];"Input") > > *C_LONGINT*($LBCol_L;$LBRow_L) > > *LISTBOX GET CELL POSITION*(*;"InventoyPhotos_LB";$LBCol_L;$LBRow_L) > > *If *($LBRow_L>0) > > > > *GOTO SELECTED RECORD*([InventoryPhotos];$LBRow_L) > > *MODIFY RECORD*([InventoryPhotos]) > > > *REDRAW*(SelectListBox) > > *INV_CreatePhotosList * > > //INV_CreatePhotosList > > *Else * > > *If *(*Not*(INV_InventInspLocked)) > > *ADD RECORD*([InventoryPhotos];*) > > *INV_CreatePhotosList * > > *End if * > > *End if * > > InDoubleClick_B:=*False* > > *End if * > If I double click into a row let's say 2 and modify record get out. > I have a hidden button that runs this code I want to set so no line is > selected I have tried > > //LISTBOX SELECT ROW(*;"InventoyPhotos_LB";$LBRow_L;Listbox remove from > selection) > > > What dumb think am I missing > > > thank and regards > > > Chuck > > What I want to do is have no record selected as I have a hidden button > running > -- > ----------------------------------------------------------------------------------------- > Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064 > Informed Solutions, Inc. > Brookline, MA 02446 USA Registered 4D Developer > Providers of 4D, Sybase & SQL Server connectivity > http://www.informed-solutions.com > ----------------------------------------------------------------------------------------- > This message and any attached documents contain information which may be > confidential, subject to privilege or exempt from disclosure under > applicable law. These materials are intended only for the use of the > intended recipient. If you are not the intended recipient of this > transmission, you are hereby notified that any distribution, disclosure, > printing, copying, storage, modification or the taking of any action in > reliance upon this transmission is strictly prohibited. Delivery of this > message to any person other than the intended recipient shall not > compromise or waive such confidentiality, privilege or exemption > from disclosure as to this communication. > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** --------------- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************