Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ascan() ...... I Give UP !!!!
Message
From
24/09/1998 08:36:18
 
 
To
24/09/1998 07:39:01
Joao Godinho
Fredesenvolv, Lda
Lisbon, Portugal
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00140287
Message ID:
00140306
Views:
28
llFound = .F.
lnI = 0
lnJ = ALen(My_Array, 1)

DO WHILE NOT llFound AND (lnI < lnJ)
   lnI = lnI + 1
   llFound = My_Array[lnI, 1] = 3
ENDDO

IF llFound
   *-- My_Array[lnI, 1] contain 3 in the first column
ENDIF
HTH

>dimension my_array(3,2)
>my_array[1,1] = 1
>my_array[1,2] = 3.00
>my_array[2,1] = 2
>my_array[2,2] = 450.00
>my_array[3,1] = 3
>my_array[3,2] = 2.00
>
>I want the see if value 3 exist in the 1st column
>
>if i do
>pos = ascan(my_array, 3) then pos will be = 2
>
>what to do ????
Previous
Reply
Map
View

Click here to load this message in the networking platform