Bruce: That Property is used when you display Check Boxes in a list. My workaround actually was to use check boxes and I do have them pre-checked.
But I originally wanted the rows themselves to be highlighted. As an example, this is what I would like the list box to look like when the form comes up. But I'm guessing it isn't possible. Not a huge deal, the check boxes will work. I just like the below example because it's much more obvious what's selected. Karen -----Original Message----- From: Bruce Chitiea <[email protected]> To: [email protected] <[email protected]> Sent: Tue, Sep 7, 2021 4:34 pm Subject: Re[2]: [RBASE-L] - Pre-selected list view/box <!----><!--#yiv8117699584 blockquote.yiv8117699584cite {margin-left:5px;margin-right:0px;padding-left:10px;padding-right:0px;border-left:1px solid #cccccc;}#yiv8117699584 blockquote.yiv8117699584cite2 {margin-left:5px;margin-right:0px;padding-left:10px;padding-right:0px;border-left:1px solid #cccccc;margin-top:3px;padding-top:0px;}#yiv8117699584 a img {border:0px;}#yiv8117699584 -->Karen: Maybe: PROPERTY <Component ID> ITEMS[n]->CHECKED 'TRUE' ... where 'n' is the index value of the row. One for each row, if you know its index value: RDOCS: Specifies the check status for a specific item in the list. This PROPERTY parameter is used when the "Show Check Boxes" attribute is used. PROPERTY ListBoxID 'ITEMS[11]->CHECKED' 'TRUE' The GETPROPERTY command is used to return the checked status of clicked item. This GETPROPERTY parameter is used when the "Show Check Boxes" attribute is used. For multi-select list boxes this is the topmost item. GETPROPERTY ListBoxID 'ITEMS[5]->CHECKED' 'vCheckedItem' ------ Original Message ------From: "'Karen Tellef' via RBASE-L" <[email protected]>To: "[email protected]" <[email protected]>Sent: 9/7/2021 2:27:08 PMSubject: Re: [RBASE-L] - Pre-selected list view/box My problem is getting the list box or list view to come up with those SchedIDs already pre-selected, as if someone had clicked the 3 rows in the list box. I don't know how an "IF" construct would help with that. I tried it both with the variable having parenthesis around, and not having parenthesis around (when you multi-select, RBase does not put parenthesis around, so I'm guessing they aren't necessary) Karen -----Original Message----- From: Buddy Walker <[email protected]> To: [email protected] Sent: Tue, Sep 7, 2021 4:24 pm Subject: RE: [RBASE-L] - Pre-selected list view/box <!--#yiv8117699584 #yiv8117699584x05b7031455ab455 filtered, #yiv8117699584 #yiv8117699584x05b7031455ab455 filtered, #yiv8117699584 #yiv8117699584x05b7031455ab455 div.yiv8117699584WordSection1{}#yiv8117699584 #yiv8117699584x05b7031455ab455 p.yiv8117699584MsoNormal, #yiv8117699584 #yiv8117699584x05b7031455ab455 li.yiv8117699584MsoNormal, #yiv8117699584 #yiv8117699584x05b7031455ab455 div.yiv8117699584MsoNormal{margin:0in;font-size:11pt;font-family:Calibri, sans-serif;}#yiv8117699584 #yiv8117699584x05b7031455ab455 a:link, #yiv8117699584 #yiv8117699584x05b7031455ab455 span.yiv8117699584MsoHyperlink{color:blue;text-decoration:underline;}#yiv8117699584 #yiv8117699584x05b7031455ab455 span.yiv8117699584EmailStyle19{font-family:Calibri, sans-serif;color:windowtext;}#yiv8117699584 #yiv8117699584x05b7031455ab455 .yiv8117699584MsoChpDefault{font-family:Calibri, sans-serif;}-->Karen Compare the schedid to variable using IN. Variable would have to have () around the values and since they are integer you shouldn’t need quotes around each value SET VAR vST TEXT = (‘(‘ + .vST + ‘)’) IF SchedID IN .vStat THEN XXXXX ELSE YYYYY ENDIF Buddy From: 'Karen Tellef' via RBASE-L <[email protected]> Sent: Tuesday, September 7, 2021 4:05 PM To: [email protected] Subject: [RBASE-L] - Pre-selected list view/box I'm not sure I've tried this before, and I don't have any notes saved on how to do it. I want either a variable list view or list box on a form where multiple values are pre-selected. Anyone have code they can share to do this? In my situation, it's a tiny table: LstScheduleTypesSchedID (PK integer)ScheduleType I will have a list of the SchedIDs, such as 2, 4, 6 The list will show just the schedule types associated with those IDs I have tried having the list box variable pre-defined: vST TEXT = "2,4,6" vST is the variable associated with my list box, with SchedID as the Key Field, and ScheduleType showing as the list, but nothing is pre-selected Karen -- For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php --- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rbase-l/448501553.2840480.1631045115484%40mail.yahoo.com.-- For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php --- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rbase-l/002101d7a42e%24c71c71e0%24555555a0%24%40comcast.net. -- For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php --- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rbase-l/439570168.2863363.1631050028118%40mail.yahoo.com. -- For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php --- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rbase-l/emb136637d-1a16-4090-ba98-6af6154e0bc2%40pathfinder. -- For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php --- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rbase-l/768908566.2936239.1631063996786%40mail.yahoo.com.

