This is ok...but i need to make like this....This below is like hypercard....but i need to translate this little piece of code in spiderbasic...Can somebody help me please?? thanks a lot in advance...
if conta <61 then
put teurusdtot into tsec1[punta]
add 1 to punta
end if
if conta =60 then
put sum(tsec1) into tvaloremedia1
put tvaloremedia1 / 60 into tvaloremedia1
put trunc(tvaloremedia1) into tvaloremedia1
end if
In truth i need to translate these little piece of code....,.
I have tryed the last suggestion but the compiler say to me that is not a funtion or array....this below:
Dim secondarray(60)
Global totale.i=10
Global conta.i=1
Global valoreriferimento.i=0
Global punta.i=1
Repeat
; I PUT IN "TOTALE" VAR A NUMBER OF MINE in this case for example 10;
conta=conta+1
If conta = 1
valoreriferimento=totale
EndIf
If conta < 61
punta=conta
Secondarray(punta) = (totale)
EndIf
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;I NEED BELOW TO SUM ALL THE SECONDARRAY-DIVIDE FOR 60 AND
;TRUNCATE THE VALUE TO INTEGER NOT FLOAT....
If conta = 60
punta=conta
secondarray(punta) = Round(secondarray/60) ;THE COMPILER SAY TO ME INCORECT NUMBER OF PARAMETERS
Debug Secondarray(punta)
Next
EndIf
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
If conta=60
conta=1
EndIf
ForEver