Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check for occurrences of specific letters?
Message
 
 
To
31/08/2003 15:03:40
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00824943
Message ID:
00824960
Views:
29
Hi Henry,

Move check for codes ouside of DO CASE
If msFeeCode is between 003 to 011C to T
	Do Case
	Case age <= 2

	CASE age i > 2 <= 6
    	..........
	Otherwise
	ENDCASE
ELSE
...
ENDIF
I still don't understand what 'between 003 to 011C to T' means. Can you express it in some other form? Also, your code would miss ages on the border, like 2, 6, e.t.c. I corrected that in my sample code.


>>Can you provide more details?
>
>Hi Sergey:
>
>Thank you for your kind response.
>
>The purpose is to calculate an age premium, which is as follows:
>
>- If age is less than 2 yrs , then it is 25% of the rate for a code
>- If age is greater than 2 and less than 6, then it is 10% of the rate for a code
>
>Codes that are eligible for this are 003 to 011C to T and some other single codes.
>
>What I had in mind was:
>
>
Do Case
>  Case 1
>    If msFeeCode is between 003 to 011C to T
>      and age less than 2
>        Do this...
>    else
>      if msFeeCode is between 003 to 011C to T
>        and age is greater than 2 but less than 6
>          do this.....
>      endif
>    endif
>  Case 2
>    ..........
>Otherwise
>EndCase
>
>Thanks Sergey
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform