ERASE AN ARRAY DATA

ERASE AN ARRAY DATA

Postby Silvio.Falconi » Sun Sep 01, 2013 5:25 pm

I have an array aData ( I create it fron a csv file)

to del a line I use ADel( aData, 1, .t. ) for the first line

i WISH ERASE THE LAST TWO LINES OF this ARRAY
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Re: ERASE AN ARRAY DATA

Postby James Bott » Sun Sep 01, 2013 5:32 pm

Try:

Code: Select all  Expand view
for i=1 to 2
   adel( aData, len(aData), 1, .t. )
next


James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: ERASE AN ARRAY DATA

Postby Silvio.Falconi » Sun Sep 01, 2013 6:52 pm

not run ok
I have a data much big here the last ten lines
Code: Select all  Expand view
10/08/2013;96;5;33;47;61;64;70;29;32
13/08/2013;97;1;33;41;78;83;84;72;57
17/08/2013;98;20;21;24;43;76;89;83;60
19/08/2013;99;3;5;11;14;38;79;29;26
20/08/2013;100;4;11;15;26;58;68;16;39
22/08/2013;101;19;21;30;59;61;89;25;7
24/08/2013;102;1;2;5;27;39;49;31;14
27/08/2013;103;6;44;63;64;72;82;12;90
29/08/2013;104;19;54;55;71;80;84;81;73
31/08/2013;105;11;20;50;62;70;85;59;1
;;;;;;;;;;Estrazioni dal Sito www.estrazionidellotto.com Studio Norba © Tutti i diritti riservati


I wish erase this line
;;;;;;;;;;Estrazioni dal Sito www.estrazionidellotto.com Studio Norba © Tutti i diritti riservati
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Re: ERASE AN ARRAY DATA

Postby Gale FORd » Sun Sep 01, 2013 8:03 pm

Maybe you can use asize()

asize( aData, len(aData)-1)
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: ERASE AN ARRAY DATA

Postby Silvio.Falconi » Sun Sep 01, 2013 9:02 pm

yes
ADel( ASize( aData, Len( aData ) - 2 ), 1, .t. )

now run ok
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Rick Lipkin and 71 guests