I need to clear/empty/dunno how to say an specific array position.
I input the info, which is showed like this at output:
0 100.00 xxxxxxxxxxxx xxxxxxxxxxx
1 200.00 xxxxxxxxxxxx xxxxxxxxxxx
2 300.00 xxxxxxxxxxxx xxxxxxxxxxx
3 400.00 xxxxxxxxxxxx xxxxxxxxxxx
Im trying to clear all arrays position let's say 2, doing this:
1 2 3
|
ingreso[i].monto=NULL; //float
ingreso[i].rfc.clear(); //string
ingreso[i].concepto.clear(); //string
|
but when i showed again, i get this:
0 100.00 xxxxxxxxxxxx xxxxxxxxxxx
1 200.00 xxxxxxxxxxxx xxxxxxxxxxx
2 0.00
3 300.00 xxxxxxxxxxxx xxxxxxxxxxx
after cleared, i need to go backward one position if possible, to get something like this:
0 100.00 xxxxxxxxxxxx xxxxxxxxxxx
1 200.00 xxxxxxxxxxxx xxxxxxxxxxx
2 300.00 xxxxxxxxxxxx xxxxxxxxxxx
thanks in advance.