home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
xactus.zip
/
macros
/
usestl.xc$
/
xsmp32
/
os2
/
uk
/
usestl.xcd
Wrap
Text File
|
1994-09-29
|
2KB
|
42 lines
/*************************************************************************
* Xact macro
*
*************************************************************************/
Parse Arg window
Say "This macro opens a table document and removes any existing, " ||,
"column definitions. Then, it defines 3 columns, uses "||,
"a stylesheet on the table and closes the table window."
tHandle = XR_OpenTab("TABLES\N10G8.XTF") /* Open the table */
Call delDefinitions tHandle /* Remove all column definitions */
If XR_Select(tHandle, 1, 10, 1, 5) = 0 Then Do /* Select columns 1 - 5 */
Call XR_SetColTyp tHandle, "DEVL", 1 /* Column 1 = Deviation */
Call XR_SetColTyp tHandle, "XL", 2 /* Column 2 = X, lower axis */
Call XR_SetColTyp tHandle, "YL", 4 /* Column 5 = Y, left axis */
End
/* use the stylesheet and don't rescale */
gHandle = XR_UseStyleSheet(tHandle, "STSHEET\LINE.STL", 0)
Call XR_CloseWindow tHandle
Return
/*************************************************************************
* delDefinitions
*
* Removes all column definitions of the specified table.
*************************************************************************/
delDefinitions: procedure
Parse Arg tHandle
Call XR_Select tHandle, "All", "SELECT" /* select all */
Call XR_SetColTyp tHandle, "NONE" /* remove definitions in selection */
Call XR_Select tHandle, "All", "DESELECT" /* deselect all */
Return