added LSL2 stored procedures
This commit is contained in:
36
LSL2/STPROC/FLATFINDER_ORIENTATION_CONV.txt
Normal file
36
LSL2/STPROC/FLATFINDER_ORIENTATION_CONV.txt
Normal file
@ -0,0 +1,36 @@
|
||||
SUBROUTINE FLATFINDER_ORIENTATION_CONV(ConvType, DataIo, ReturnCode, ReturnedValue)
|
||||
#pragma precomp SRP_PreCompiler
|
||||
|
||||
$insert logical
|
||||
|
||||
equ valid$ to 0 ;* successful
|
||||
equ invalid_msg$ to 1 ;* bad data - print error message window
|
||||
equ invalid_conv$ to 2 ;* bad conversion - " "
|
||||
equ invalid_nomsg$ to 3 ;* bad but do not print the error message window
|
||||
|
||||
status() = Valid$
|
||||
|
||||
IF NOT(ASSIGNED(ReturnCode)) THEN ReturnCode = ''
|
||||
|
||||
begin case
|
||||
case ConvType = 'ICONV'
|
||||
ReturnedValue = DataIo
|
||||
|
||||
case ConvType = 'OCONV'
|
||||
|
||||
Begin Case
|
||||
Case DataIO _EQC 'Up'
|
||||
Desc = 'U'
|
||||
Case DataIO _EQC 'Down'
|
||||
Desc = 'D'
|
||||
Case Otherwise$
|
||||
Desc = ''
|
||||
End Case
|
||||
|
||||
ReturnedValue = Desc
|
||||
|
||||
|
||||
case otherwise$
|
||||
status() = invalid_msg$
|
||||
end case
|
||||
return
|
Reference in New Issue
Block a user