
! script name: amo.d/cmmlist

!A
!A NAME:
!A
!A 	CMM LIST
!A
!A DESCRIPTION:
!A
!A 	This script allows the selection of a list option.
!A 	the following are the present choices:
!A 		LIST TAPE FILE
!A 		LIST COMMAND FILE
!A 		LIST MACHINE TIME
!A 		NOTEPAD
!A 		LIST FORMAT FILE
!A 		LIST MACRO FILE
!A
!B INSTRUCTIONS:
!B
!B 	SELECT POST FUNCTION: The LIST OPTIONS selection
!B 		box will automatically appear to allow the
!B 		selection of a list option for TURBO POST.
!B
!# see also - htdocs/help.d/millturbo.htm

stat=ChangeLabelStr("ScriptNameStatus","Function: list ")

DIM Operations$[4000]
DIM Substr$[256]
DEG

DeActivateUndo
Start:!
Oper_grp= FindNamedGrp("CMM TASKS")
IF NOT ValidGeometry(Oper_grp) THEN Leave

Operations$= ""
Number= GroupCount(Oper_grp)
FOR I= 1 TO Number
	E1= GroupElement(Oper_grp,I)
	Stat= GetUserDataName(E1,Substr$)
	Substr$= RPT$(" ",2-(I>9)-(I>99))&VAL$(I)&"- "&Substr$
	Operations$= Operations$&Substr$&RPT$(CHR$(10),I<>Number)
NEXT I

Stat= MessageStringBox(Operations$,"OPERATIONS LIST")

Leave:!
LOAD "typecontrol"
END
