Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Index in a List Box
Message
From
02/10/2004 17:15:11
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
02/10/2004 09:29:46
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00948036
Message ID:
00948253
Views:
35
Hi Mike

If your list is in the same sequence as the records, try

THISFORM.LIST1.LISTINDEX = m.r1
THISFORM.LIST1.SETFOCUS()

>Mike
>
>I can't quite see what I do after the line. I have the code below in the Init of the form:
>
>LOCATE RECORD M.R1
>NINDEX = THISFORM.LIST1.LISTINDEX && I have tried leaving these
>THISFORM.LIST1.LISTINDEX = NINDEX && 2 lines out, still doesn't work
>THISFORM.LIST1.SETFOCUS()
>
>But it does not put the cursor on the record. In fact the cursor does not appear anywhere on the data file. Its like it hit a Not Found() condition.
>
>What am I doing wrong?
>
>Mike Smith
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform