Request for Implementation:
As stated in the manual, variables cannot contain a period '.', however, the period is valid for function names. This leads to an inconsistency since it is valid to create a function Class.Function() and call this function from KiXtart. However, this function cannot return a result since the variable $Class.Function is not a valid variable name.
I therefore propose to allow the period as part of a variable name in order to facilitate pseudo-object-oriented functions.
Alternatively, if it is impossible to implement, the functions names must not be allowed to contain periods in order to achieve naming consistency.
Desired implementation:
code:
$hours=Time.GetHours(@TIME)
function Time.GetHours($time)
Dim $splittime
$splittime = split($time,':')
$Time.GetHours = $splittime[0]
endfunction
This implementation would also enable KiXtart to support some kind of CLASS structure further down the development road, e.g. mimicking the Visual Basic class structures.
[ 06. September 2002, 16:05: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.