home *** CD-ROM | disk | FTP | other *** search
- /* Test Carcost's ARexx-Port */
-
- /* Basename is ALWAYS >CARCOSTS<, even if you call the programm */
- /* >AUTOKOSTEN<... */
- address "CARCOSTS.1"
-
- options results
-
- help "con:0/0/640/200/CarCosts_ARexx_Test/wait/auto"
-
-
- say
- info title
- say "Title : "result
- info version
- say "Version : "result
- info author
- say "Author : "result
- info copyright
- say "Copyright: "result
- info base
- say "Base : "result
-
- say
- say "Test of fuel list"
- say
-
-
- getfuelnumber
-
- max = result-1
-
-
- do i = 0 to max
- getfuelinfo date i
- datum=result
- getfuelinfo km i
- kms = result
- getfuelinfo price i
- prices = result
- getfuelinfo liter i
- liters = result
- getfuelinfo lperkm i
- lperkms = result
- getfuelinfo dkm i
- dkms = result
- say datum "," kms "," liters "," prices "," dkms "," lperkms
- end
-
- /* Now an error */
- say
- say "An example for a wrong ITEM"
- say
- getfuelinfo anything 5
- say result rc
-
-
-
- say
- say "Test of support list"
- say
-
- getsuppnumber
- max = result-1
-
- do i=0 to max
- getsuppinfo date i
- dates = result
- getsuppinfo price i
- prices = result
- getsuppinfo title i
- titles = result
- getsuppinfo remark i
- remarks = result
- say dates "," titles "," remarks "," prices
- end
-
-
-
- say
- say "Test of summary function"
- say
-
- getsummary STARTDATE
- say "Startdate : " result
- getsummary ENDDATE
- say "Enddate : " result
- getsummary KMSTART
- say "KM at start : " result
- getsummary LITER
- say "Liter : " result
- getsummary KM
- say "KM : " result
- kms=result
- getsummary CONSUMPTION
- say "Consumption : " result
- getsummary PRICEFUEL
- say "Price fuel : " result "=> " result/kms "per km"
- getsummary PRICESUPPORT
- say "Price support : " result "=> " result/kms "per km"
- getsummary SIGN
- say "All data for car : " result
-
-
-
- say
- say "Test setxy-commands"
- say
-
- /* RC = 10: Wrong date */
- /* RC = 5: Negativ distance */
- setfuelentry "22.12.93 24345 23.45 30.00"
- say result rc
- setfuelentry "23.12.93 25345 23.45 30.00"
- say result rc
-
-
-
-
- setsupportentry '"23.12.93" "Test of item" "test2 of item" "55.30"'
- setsupportentry '"1.1.88" "test test test" "" "123.45"'