Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing row from array
Message
De
10/04/2018 04:27:45
 
 
À
10/04/2018 04:23:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01659245
Message ID:
01659277
Vues:
126
>>>>>What is the best way to remove the 5th row and end up with a 7 row array with the same name ?
>>>>>
>>>>>UPDATE : Doesn't matter - found an alternative approach.....
>>>>
>>>>ADEL() deletes array rows or columns.
>>>
>>>?
>>
>>It's right on the HELP of ADIR function:
>>
>>Deletes an element from a one-dimensional array, or a row or column from a two-dimensional array.
>>
>>ADEL(ArrayName, nElementNumber [, 2])
>>
>>More info at the ADEL Help topic:
>>https://docs.microsoft.com/en-us/previous-versions/visualstudio/foxpro/b26a3deh(v%3dvs.71)
>
>I know Fernando, what puzzles me is that I answered using ADEL(), so I don't know why I got that answer

I can only guess. Maybe it's because Adel() alone is not sufficient, you must re-dimension the array afterwards.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform