fanlinux90
Programmer
when trying to go through two arrays (daysft and daysf),both arrays have stored numbers When doing the return calculation I get an error
are local variables holidayst, holidays, cvalue, return
cvalue = 0
return = 0
select providers
scan
cvalue = vendors.vpurchase
Messagebox(allt(Str(cvalue)))
FOR i = 0 TO ALEN(daysft ,1) STEP 1
holidayst = daysft
FOR i = 0 TO ALEN(daysf,1) STEP 1
holidays = daysf
return=((cvalue/(holidayst))*(holidays))
Messagebox(allt(Str(return)))
ENDFOR
ENDFOR
end scan
I am trying to loop daysft save it in holidayst, loop daysf save it in holidays,
to then do the calculation ((valuec/(holidaysst))*(holidays)) and save it in return
I get an error in the line return=((cvalue/(holidaysto))*(holidays)) the data types do not match
are local variables holidayst, holidays, cvalue, return
cvalue = 0
return = 0
select providers
scan
cvalue = vendors.vpurchase
Messagebox(allt(Str(cvalue)))
FOR i = 0 TO ALEN(daysft ,1) STEP 1
holidayst = daysft
FOR i = 0 TO ALEN(daysf,1) STEP 1
holidays = daysf
return=((cvalue/(holidayst))*(holidays))
Messagebox(allt(Str(return)))
ENDFOR
ENDFOR
end scan
I am trying to loop daysft save it in holidayst, loop daysf save it in holidays,
to then do the calculation ((valuec/(holidaysst))*(holidays)) and save it in return
I get an error in the line return=((cvalue/(holidaysto))*(holidays)) the data types do not match