Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASCAN MindBust
Message
From
02/09/2004 16:41:40
 
 
To
02/09/2004 15:29:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00938898
Message ID:
00938951
Views:
34
Thanks Steve. This works:

m.nameselected = ASCAN(accuname,namesort(m.nameselected,1),1,-1,-1,8)


>VFP8? Last parameter is flag, to return row.
>
>
>m.nameselected = ASCAN(accuname,"Maynard Abernathy",1,-1,-1,8)
>
>
>
>>I seem to be having difficulties with ASCAN() today. I have two arrays:
>>
>>*--Original array
>>accuname(1,1) Michael Jones
>>accuname(1,2) 7079382
>>accuname(2,1) Maynard Abernathy
>>accuname(2,2) 3838329
>>
>>*--Sorted array
>>namesort(1,1) Maynard Abernathy
>>namesort(1,2) 3838329
>>namesort(2,1) Michael Jones
>>namesort(2,2) 7079382
>>
>>The user selects an item in the namesort array from a listbox. For instance, if the user chose 'Maynard Abernathy' then m.nameselected would equal 1. If the user chose 'Michael Jones' then m.nameselected would equal 2, etc. Let's say he chose listindex #1 (Maynard). I then issue:
>>
>>m.nameselected = ASCAN(accuname,namesort(m.nameselected,1))
>>
>>which is returning the element in the accuname array (3) and I need it to return the row in the accuname array (2).
>>
>>Any ideas?
>>
>>m.nameselected = 2
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform