Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Error trying to call a function
I put this function in my stored procedures, i get an error when i try to call the program it says cant find feecalc.prg when it gets to this line in my code.
this is a test program i wrote just to test the passing of varibales from this and back to this program.
loandate = {04/09/2000}
loanamt = 100
strcode = 0
firearmcode = "E"
govermentcode = .T.
amtdue = feecalc(loandate,loanamt,strcode,firearmcode,govermentcode)
this line where it calls the program and gives the error. ^^^^^
? amtdue
here is my function in my stored procedures
function feecalc(amtdue)
lparameters loandate,loanamt,strcode,firearmcode,govermentcode
local storage,loanduration,prorateamt,amtdue,sixday,thrtday
local annualrate
use fees &&load fees table
scatter memvar && load all fields to varibals
use && clear table
use intrest && load intrest table
scatter memvar && load all fields to variables
use && clear table
loanduration = date() - loandate
sixtyday = sixtyday / 100 && normilze values
thirtyday = thirtyday / 100 && normilze values
I didn't put the hole fucntion in it would be too long
at then end i have
return
endfunc
I probably dont need endfunc sense it the only function there
I just cant seem to find good examples of simple things like this in the help files i dont know why.
thanks kelly
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement