Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing row from array
Message
De
11/04/2018 03:39:09
 
 
À
09/04/2018 04:57:48
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:
01659309
Vues:
72
>>OK, my VPF is rusty and I'm being lazy.
>>
>>I have a two dim array (actually 8 "rows" with two "columns")
>>
>>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.....
>
>
>function ArrayDelete_test
>
>	local aa[8, 2], i, j
>	
>	for i = 1 to 8
>		for j = 1 to 2
>			aa[m.i, m.j] = m.i + m.j/10
>		endfor
>	endfor
>	
>	=adel(aa,5)
>	dimension aa[7,2]
>	
>	
>	assert .f.
>	
>endfunc
>
Ah. ADEL() -thx
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform