This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function YOUR_WINDOW_NAME_EVENTS(CtrlEntID,Event,Param1,Param2,Param3,Param4,Param5,Param6,Param7,Param8) | |
//To use replace YOUR_WINDOW_NAME with your window's form name | |
* | |
* Blank Commuter Module | |
* | |
Declare Subroutine Msg, FsMsg, Set_Status, Set_Property | |
Declare Function Msg, Get_Property, Get_Status, Set_Property, Popup | |
Declare Function Repository, Send_Message, Send_Event, Unassigned, Utility, XLate | |
Declare Function ContextMenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Insert POPUP_EQUATES | |
Declare Function Popup | |
PopDisp = '' | |
PopDisp<PCOL$> = -1 | |
PopDisp<PROW$> = -1 | |
PopDisp<PWIDTH$> = -1 | |
PopDisp<PHEIGHT$> = -1 | |
PopDisp<PFILE$> = '' | |
PopDisp<PMODE$> = 'L' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Subroutine O4W_CS_TEST_DIALOG_HELLO_WORLD(CtrlEntId, Event, Request) | |
$Insert O4WEquates | |
$Insert O4WCommon | |
BEGIN Case | |
CASE EVENT _EQC "CREATE" | |
O4WForm() | |
O4WHeader("Hello World Example") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function CS_GetCompileDate(Routine) | |
* | |
* Read a compiled routine and extract the last compiled date and time stamp. | |
* | |
* Params: | |
* Routine - Name of the routine in the current OI application | |
* | |
* Returns: | |
* Displays the date time in a message box. Also returns the value. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function OPENINSIGHT_ROUTINE_LIB(inMethod, Param1, Param2, Param3, Param4, Param5, Param6, outValue,outStat) | |
//To USE: Find and replace OPENINSIGHT_ROUTINE with your routine name | |
/* | |
Function: OPENINSIGHT_ROUTINE_LIB | |
>OPENINSIGHT_ROUTINE_LIB(inMethod, Param1, Param2, Param3, Param4, outValue,outStat) | |
General purpose library | |
Parameters: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Original source: http://www.sprezzatura.com/library/whitepapers/OI%20Coding%20Standards%20v1%200%207.pdf | |
//Protect any active select list. Pop it at end of routine. | |
saveAtDict_ = @dict | |
saveAtRecord_ = @record | |
saveAtID_ = @id | |
saveAtRecCount_ = @recCount | |
saveAtRnCounter_ = @rn.Counter | |
A_ = 0 ; B_ = 0 ; C_ = 0 ; D_ = 0 | |
call push.Select( A_, B_, C_, D_ ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function CS_TransposeSort(A, Bys, Justs) | |
Declare Subroutine V119 | |
ARowCount = DCOUNT(A<1>, @VM) | |
AColCount = DCount(A, @FM) | |
ATransposed = '' | |
*Transpose it for use with V119 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Subroutine CS_TEST_MSG_GASGAUGE(void) | |
$Insert Msg_Equates | |
//Number of example processing loops | |
MAX_LOOPS = 1000 | |
def = '' | |
def<MCAPTION$> = 'Gas Guage with Cancel Button' | |
def<MTYPE$> = 'GCU' | |
def<MTEXT$> = 'Initializing...' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Subroutine CS_SNIP_CreateCopy_ReadNext(void) | |
Declare Subroutine Set_Status, create_Table,Msg,attach_table | |
declare function Set_FSError,Msg | |
$Insert Logical | |
*Source table to copy from | |
TABLE_NAME = "CUSTOMERS" | |
*Destination table to create and copy to |
OlderNewer