Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anybody ca help mecall a function to evaluate cell in g
Message
From
29/06/1999 02:42:09
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
28/06/1999 14:05:15
Dovi Gilberd
Dovtware Consulting Inc
Miami, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Visual ProMatrix
Miscellaneous
Thread ID:
00232180
Message ID:
00235108
Views:
25
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform