Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Matrix rate
Message
From
28/06/1999 18:38:15
Dovi Gilberd
Dovtware Consulting Inc
Miami, Florida, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00234901
Message ID:
00235003
Views:
24
evan sorryn to bother you..im still in this rate thing
im using this function that returns to me the corect name of the rate that the person is using
i do not know how to tie the conditions to fetrmine the rate..please help me out

FUNCTION getrate()
PARAMETERS Result
cRateField="long_distance.rate"
IF LEFT(view1.dialednr,1)="0"
SEEK LEFT(view1.dialednr,6)
endif
IF LEFT(view1.dialednr,1)="1"
SEEK LEFT(view1.dialednr,4)
endif
IF LEFT(view1.dialednr,1)='#'
SEEK LEFT(view1.dialednr,3)
endif



RETURN EVAL(cRateField)
Previous
Reply
Map
View

Click here to load this message in the networking platform