home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 25 Years Anniversary
/
CHIP_25Jahre_Jubilaeum.iso
/
downloads
/
400616
/
data1.cab
/
_lohnauskunft-Formulare
/
lak_nt.int
< prev
next >
Wrap
Text File
|
2003-04-01
|
2KB
|
73 lines
' Die Lak-spezifischen Deklarationen
declare external Get(s as String, n as Numeric) as String
declare external Is(s as String, n as Numeric) as Bool
declare external GetNumeric(s as String, n as Numeric) as Numeric
declare external GetInt(s as String, n as Numeric) as Numeric
declare external GetDate(s as String, n as Numeric) as Numeric
declare external GetTime(s as String, n as Numeric) as Numeric
declare external FirstRecord(s as String) as Bool
declare external NextRecord(s as String) as Bool
declare external FormatAmt(n as Numeric) as String
function StrStr(s as String, n as Numeric) as String
StrStr = Get(s,n)
end function
function StrAmt(s as String, n as Numeric) as String
StrAmt = FormatAmt(GetNumeric(s,n))
end function
function StrKfb(s as String, n as Numeric) as String
StrKfb = FormatNumeric("%0.1f", GetNumeric(s,n))
end function
function StrBool(s as String, n as Numeric) as String
StrBool = "Nein"
if Is(s,n) then
StrBool = "Ja"
end if
end function
function StrInt(s as String, n as Numeric) as String
StrInt = FormatNumeric("%0.0f", GetInt(s,n))
end function
function StrDate(s as String, n as Numeric) as String
StrDate = FormatDate("%d.%m.%Y", GetDate(s,n))
end function
function TStr(s as String, n as Numeric)
T(Get(s,n))
end function
function TAmt(s as String, n as Numeric)
T(StrAmt(s,n))
end function
function TInt(s as String, n as Numeric)
T(StrInt(s,n))
end function
function TDate(s as String, n as Numeric)
T(StrDate(s,n))
end function
' Zelle statt Tabulator, um lange Texte zu begrenzen
function CellAsTab(strText as String, iWidth as Numeric, font as FontType)
Dim cell as CellType
Dim x as Numeric
Dim y as Numeric
GetPos(x,y)
cell = CreateCell(iWidth, 0, CELL_TYPE_DYNVERT + CELL_TYPE_CLIP)
SetCellBorder(cell,CELL_BORDER_LEFT,0,PEN_NULL,0)
SetCellBorder(cell,CELL_BORDER_TOP,0,PEN_NULL,0)
SetCellBorder(cell,CELL_BORDER_RIGHT,0,PEN_NULL,0)
SetCellBorder(cell,CELL_BORDER_BOTTOM,0,PEN_NULL,0)
SelectCellFont(cell, font )
SetCellTextBorder(cell,0,0,0,0)
SetCellText(cell,strText)
DrawCell(cell,TRUE)
SetPos(x,y)
end function