added LSL2 stored procedures

This commit is contained in:
Infineon\StieberD
2024-03-25 14:46:21 -07:00
parent 09f1a66046
commit c667dd56eb
1655 changed files with 527967 additions and 0 deletions

View File

@ -0,0 +1,81 @@
COMPILE FUNCTION Comm_Dialog_Text(Method, Parm1, Parm2)
/*
Commuter module for Dialog_Text window.
06/09/2004 - John C. Henry, J.C. Henry & Co., Inc.
*/
DECLARE SUBROUTINE Set_Property, End_Dialog, Set_Status, ErrMsg
DECLARE SUBROUTINE obj_Appwindow, Start_Window, Msg
DECLARE FUNCTION Get_Property, Get_Status, Dialog_Box, Popup, Send_Message
EQU CRLF$ TO \0D0A\
$INSERT POPUP_EQUATES
$INSERT APPCOLORS
ErrTitle = 'Error in Comm_Dialog_Text'
ErrorMsg = ''
Result = ''
BEGIN CASE
CASE Method = 'Create' ; GOSUB Create
CASE Method = 'OK' ; GOSUB OK
CASE Method = 'Cancel' ; GOSUB Cancel
CASE Method = 'Close' ; GOSUB Close
CASE 1
ErrMsg(ErrTitle:@SVM:'Unknown method ':QUOTE(Method):' passed to routine.')
END CASE
RETURN Result
* * * * * * *
Create:
* * * * * * *
obj_AppWindow('Create')
WindowTitle = Parm1<1>
TextIn = Parm1<2>
Set_Property(@WINDOW,'TEXT',WindowTitle)
Set_Property(@WINDOW:'.TEXT_BOX','DEFPROP',TextIn)
RETURN
* * * * * * *
Close:
* * * * * * *
* * * * * * *
Cancel:
* * * * * * *
End_Dialog(@WINDOW,'Cancel')
RETURN
* * * * * * *
OK:
* * * * * * *
Text = Get_Property(@WINDOW:'.TEXT_BOX','DEFPROP')
Result = Text
End_Dialog(@WINDOW,Result)
RETURN