×
Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...
Calculating Months in T24
- ironmaiden
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 83
- Thank you received: 0
17 years 3 months ago #687
by ironmaiden
Calculating Months in T24 was created by ironmaiden
Dear all,
I want to calculate a date based on the month. for example
I have a date say 20070125 and I need to calculate the date after 10months and the date should be 20071025. do we have any core routine which does the job there should be something...
NJOY LIFE TO THE FULLEST
I want to calculate a date based on the month. for example
I have a date say 20070125 and I need to calculate the date after 10months and the date should be 20071025. do we have any core routine which does the job there should be something...
NJOY LIFE TO THE FULLEST
Please Log in or Create an account to join the conversation.
- malai
- Offline
- Platinum Member
Less
More
- Posts: 508
- Thank you received: 11
17 years 3 months ago #688
by malai
Replied by malai on topic CFQ
CFQ will do this.
TEST.CFQ
001 PROGRAM TEST.CFQ
002 $INSERT I_COMMON
003 $INSERT I_EQUATE
004
005 COMI='20070125M0925'
006 CALL CFQ
007 PRINT COMI
008
009 STOP
Keep posting and make this community active|Thanks
TEST.CFQ
001 PROGRAM TEST.CFQ
002 $INSERT I_COMMON
003 $INSERT I_EQUATE
004
005 COMI='20070125M0925'
006 CALL CFQ
007 PRINT COMI
008
009 STOP
Keep posting and make this community active|Thanks
Please Log in or Create an account to join the conversation.
- ironmaiden
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 83
- Thank you received: 0
17 years 3 months ago #689
by ironmaiden
Replied by ironmaiden on topic Calculate
Thanks GVA...
If I wanted to use YEARLY how should I do that...
NJOY LIFE TO THE FULLEST
If I wanted to use YEARLY how should I do that...
NJOY LIFE TO THE FULLEST
Please Log in or Create an account to join the conversation.
- malai
- Offline
- Platinum Member
Less
More
- Posts: 508
- Thank you received: 11
17 years 3 months ago #690
by malai
Replied by malai on topic Loop
You can go upto M99.
Or else you need to calculate inside a loop.
Keep posting and make this community active|Thanks
Or else you need to calculate inside a loop.
Keep posting and make this community active|Thanks
Please Log in or Create an account to join the conversation.
- ironmaiden
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 83
- Thank you received: 0
17 years 3 months ago #691
by ironmaiden
Replied by ironmaiden on topic months
Just a sample routine....
PROGRAM TEST.CFQ
$INSERT I_COMMON
$INSERT I_EQUATE
START.DATE = '20070101M1201'
COMI = START.DATE
FOR I = 1 TO 10
CALL CFQ
NEXT I
PRINT START.DATE
PRINT COMI
STOP
NJOY LIFE TO THE FULLEST
PROGRAM TEST.CFQ
$INSERT I_COMMON
$INSERT I_EQUATE
START.DATE = '20070101M1201'
COMI = START.DATE
FOR I = 1 TO 10
CALL CFQ
NEXT I
PRINT START.DATE
PRINT COMI
STOP
NJOY LIFE TO THE FULLEST
Please Log in or Create an account to join the conversation.
Time to create page: 0.072 seconds