Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Matrix rate
Message
De
25/06/1999 18:08:38
Dovi Gilberd
Dovtware Consulting Inc
Miami, Floride, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00233562
Message ID:
00234240
Vues:
30
Hi barbara..
im trying still to do this..to change the database would be having 18000 records and every time y need to ad a new record i need to make drastic changes..
i trying
with this function something else

i created a function in my main program called rate()
like this

function rate()
lparameter dialednr,code,result,result,n
select rates && my rates table
set order to tag code &&code is field that contains the country areacodes
seek left(view1.dialednr,6) &&dialednr is the fieldname of the calls in view
for n=1 to fcount()
if field(n)=upper(code)
return eval(field(n))*result &&&&result is the result of the duration
endif
endfor
rate=n
return rate
endfunc

what is wring with this functions...does it do what i need it to do..
ps. result is the duration of the call allready calculated in function result()
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform