Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ascan() ...... I Give UP !!!!
Message
 
À
24/09/1998 07:39:01
Joao Godinho
Fredesenvolv, Lda
Lisbon, Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00140287
Message ID:
00140574
Vues:
30
Hi Joao,

First an ACOPY to copy this array to a temporary array. Then an ADEL to delete the first column and then the ASCAN.
ACOPY(my_array, laTemp)
ADEL(laTemp, 1, 2)    && Delete the first column
?ASCAN(laTemp, 3)
>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 ????
>
>Thank you ALL
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform