I don't believe there is a way to do it with CHOOSE, but if you use a form instead with a list box, you can do it with the PROPERTY command - check out the options for a VARIABLE USER DEFINED LIST BOX:
PROPERTY componentID ITEMINDEX nnn Specifies the ordinal number of the selected item in the list box's item list. Or perhaps better for you: PROPERTY componentID SELECT value Can be used to highlight/select the specified item. (WRITEONLY, no support for GETPROPERTY). Example: PROPERTY <ListBoxComponentID> SELECT 6 Will highlight/select item number 6 in ListBox Since I'm not sure exactly what you want I suggest you look at the LONG list of optoins for Properties for this control in RDOCS David David Blocker [EMAIL PROTECTED] 781-784-1919 Fax: 781-784-1860 Cell: 339-206-0261 ----- Original Message ----- From: "Bernard Lis" <[EMAIL PROTECTED]> To: "RBG7-L Mailing List" <[email protected]> Sent: Monday, May 09, 2005 8:21 PM Subject: [RBG7-L] - RE: Choose Command > Whoops -- initpos is also for dos only, changed in rbase 2000 from > microrim_menu_pos > Bernie Lis > ----- Original Message ----- > From: "Joel Solomon" <[EMAIL PROTECTED]> > To: "RBG7-L Mailing List" <[email protected]> > Sent: Monday, May 09, 2005 5:36 PM > Subject: [RBG7-L] - RE: Choose Command > > > > When I choose the name 'Smith' for var vPick, then I would get the > > following > > list: > > > > Smith, Bill > > Smith, John > > Smith, Sam > > Smith, Tim > > Smith, William > > > > The cursor highlights 'Smith, Bill' and all the rest of them in order. I > > want the cursor to highlight 'Smith, Sam' as the middle of the list and > > show > > all of the Smith's above and below it. > > > > > > ----- Original Message ----- > > From: "Dawn Oakes" <[EMAIL PROTECTED]> > > To: "RBG7-L Mailing List" <[email protected]> > > Sent: Monday, May 09, 2005 4:57 PM > > Subject: [RBG7-L] - RE: Choose Command > > > > > > I'm not sure I get what you're trying to do. > > > > Do you mean you want the Stu_Number to appear in the middle of the > > Stu_lname, Stue_fname, Stu_location in your CHOOSE list? But have it > > act like it's first (for WALKMENU purposes)?? If that's what you mean, > > then no, I don't think so. If that's not what you mean, then....reply > > back. > > > > Dawn > > > > -----Original Message----- > > From: Joel Solomon [mailto:[EMAIL PROTECTED] > > Sent: Monday, May 09, 2005 4:32 PM > > To: RBG7-L Mailing List > > Subject: [RBG7-L] - Choose Command > > > > In the following command file, is there any way to have my variable > > (vchoice) appear as the middle item in the choose display box and have > > the cursor on the middle item instead of the first item in the display > > box. > > > > > > DIALOG 'Enter Full or Partial Name' vpick=25 vEndKey 1 CAPTION 'Student > > Last Name' ICON QUESTION SET VAR vpick = (.vpick+'%') IF vPick = % THEN > > GOTO endrun > > ELSE > > CHOOSE vchoice FROM #VALUES FOR ((LJS(Stu_Lname,20)) + > > (LJS(Stu_Fname,20)) > > + (Stu_Location)) ,Stu_Number FROM StudentMaster ORDER BY Stu_Identify > > + WHERE > > Stu_lname LIKE .vpick AND Stu_status = 'Student'CAPTION 'Choose > > Student' > > LINES 10 FORMATTED > > ENDIF > > > > Joel Solomon > > V.P. Finance > > Barbizon International > > [EMAIL PROTECTED] > > > > > >
