home *** CD-ROM | disk | FTP | other *** search
- on FELD1
- put the value of field "stk1" * 69.0 into field "lagerA1"
- repeat with a = 1 to the number of chars in field "lagerA1"
- if char a of field "lagerA1" = "." then
- put "," after field "lagerB1"
- next repeat
- end if
- put char a of field "lagerA1" after field "lagerB1"
- end repeat
- put field "lagerB1" & "0 DM" into field "gesmtprx1"
- delete field "lagerb1"
- end
-
- on FELD2
- put the value of field "stk2" * 199.0 into field "lagerA2"
- repeat with a = 1 to the number of chars in field "lagerA2"
- if char a of field "lagerA2" = "." then
- put "," after field "lagerB2"
- next repeat
- end if
- put char a of field "lagerA2" after field "lagerB2"
- end repeat
- put field "lagerB2" & "0 DM" into field "gesmtprx2"
- delete field "lagerb2"
- end
-
- on FELD3
- put the value of field "stk3" * 12.40000000000000036 into field "lagerA3"
- repeat with a = 1 to the number of chars in field "lagerA3"
- if char a of field "lagerA3" = "." then
- put "," after field "lagerB3"
- next repeat
- end if
- put char a of field "lagerA3" after field "lagerB3"
- end repeat
- put field "lagerB3" & "0 DM" into field "gesmtprx3"
- delete field "lagerb3"
- end
-
- on FELD4
- put the value of field "stk4" * 9.60000000000000142 into field "lagerA4"
- repeat with a = 1 to the number of chars in field "lagerA4"
- if char a of field "lagerA4" = "." then
- put "," after field "lagerB4"
- next repeat
- end if
- put char a of field "lagerA4" after field "lagerB4"
- end repeat
- put field "lagerB4" & "0 DM" into field "gesmtprx4"
- delete field "lagerb4"
- end
-
- on FELD5
- put the value of field "stk5" * 35.0 into field "lagerA5"
- repeat with a = 1 to the number of chars in field "lagerA5"
- if char a of field "lagerA5" = "." then
- put "," after field "lagerB5"
- next repeat
- end if
- put char a of field "lagerA5" after field "lagerB5"
- end repeat
- put field "lagerB5" & "0 DM" into field "gesmtprx5"
- delete field "lagerb5"
- end
-
- on FELD6
- put the value of field "stk6" * 29.0 into field "lagerA6"
- repeat with a = 1 to the number of chars in field "lagerA6"
- if char a of field "lagerA6" = "." then
- put "," after field "lagerB6"
- next repeat
- end if
- put char a of field "lagerA6" after field "lagerB6"
- end repeat
- put field "lagerB6" & "0 DM" into field "gesmtprx6"
- delete field "lagerb6"
- end
-
- on summe
- global summe
- set i to the value of field "stk1" * 69.0
- set ii to the value of field "stk2" * 199.0
- set iii to the value of field "stk3" * 12.40000000000000036
- set iv to the value of field "stk4" * 9.60000000000000142
- set v to the value of field "stk5" * 35.0
- set vi to the value of field "stk6" * 29.0
- set summe to i + ii + iii + iv + v + vi
- put summe into field "SummelagerA"
- repeat with a = 1 to the number of chars in field "SummelagerA"
- if char a of field "SummelagerA" = "." then
- put "," after field "SummelagerB"
- next repeat
- end if
- put char a of field "SummelagerA" after field "SummelagerB"
- end repeat
- put field "SummelagerB" & "0 DM" into field "summe"
- delete field "SummelagerB"
- end
-