
! script name: 3doperations.d/3dopstream

!A
!A NAME:
!A
!A 	3D Stream File Control
!A
!A DESCRIPTION:
!A
!A	Reads a stream file to execute 3doperations.
!A

stat=ChangeLabelStr("ScriptNameStatus","Function: 3d stream control")

DIM Description$[256],Destination$[256],Answer$[256],Dir$[64],Dir1$[64]
DIM File_name2$[256],Tldir$[64],Ques$[128],Mask$[64]
DIM Namelist$[8000]
DIM Namelist2$[8000]

DeActivateUndo
Dir$="/usr/weber/util/streamdata/3dpockets/"

Stat=SetInputFormat("a99","")
Pick_direct:!
Stat=DirectoryNames(Dir$,"*",Namelist$)
Stat= AlphabeticalOrder(Namelist$,",",WsAscending,Namelist2$)
Stat=GeneralListBox("OPERATIONS","OPERATION SELECTED",Namelist2$)

Stat=GetValue("INPUT OPERATION ",Answer$)
IF ExitScript(Destination$) OR Answer$="CANCEL" THEN Leave
LowerSelectBox

Stat=StreamInput(Dir$&Answer$)

Stat=SetInputFormat("a99","")
Stat=GetValue("CHOOSE OPERATIONS",Answer$)
IF ExitScript(Destination$) THEN Leave

GOTO Pick_direct

Leave:!
LowerSelectBox
Stat=SetInputFormat("n4","")
IF NOT LEN(Destination$) THEN LOAD "typecontrol"
LOAD Destination$
END

