Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anybody ca help mecall a function to evaluate cell in g
Message
De
29/06/1999 02:42:09
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
28/06/1999 14:05:15
Dovi Gilberd
Dovtware Consulting Inc
Miami, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual ProMatrix
Divers
Thread ID:
00232180
Message ID:
00235108
Vues:
26
>hi dragan..im using this code that returns the rate code that i chose for the customer..
>what else do i need to ad to it to obtain the correct value for that call under that rate plan...? please.......
>
>
>
>FUNCTION getrate()
> PARAMETERS Result
> cRateField="long_distance.rate"
> select rates
> set orde to tag code
>
> IF LEFT(view1.dialednr,1)='0'
> SEEK LEFT(view1.dialednr,6)
> endif
>
> IF LEFT(view1.dialednr,1)="#"
> SEEK LEFT(view1.dialednr,3)
> endif
>
> if LEFT(view1.dialednr,1)='1'
> SEEK LEFT(view1.dialednr,4)
> ENDIF
> RETURN EVAL(cRateField)

What's the content of the long_distance.rate field? If it is something like Rate1, Rate2 or so, you should omit the quotes in the beginning line, i.e. it should read

cRateField=long_distance.rate

If it contains just a number, the line should read

cRateField="rate"+alltrim(str(long_distance.rate,3,0))

This way you prepare the string that you EVAL()uate in the end.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform