
! script name: vdatatable.d/vlinestoggle
! var_topic: table grid vertical lines toggle

!A
!A NAME:
!A
!A 	Table Grid Vertical Lines Off	VARIATIONAL
!A
!A DESCRIPTION:
!A
!A 	This script will turn the table grid vertical lines off.
!A
!B INSTRUCTIONS:
!B
!B 	PICK TABLE: Pick the table to turn the vertical lines off.
!B
!# see also - htdocs/help.d/datatables.htm

stat=ChangeLabelStr("ScriptNameStatus","Function: vertical lines On/off ")

DIM Answer$[256]
DIM A$[256]
DIM Destination$[256]
DEG

ActivateUndo
Start:!
Pick_table:stat= SetInputFormat("n4","")
Element1=PickEntity("PICK TABLE")
IF (ExitScript(Destination$)) THEN Leave
IF NOT ValidDependency(Element1) THEN Pick_table
Stat= EntityNameCheck(Element1,Table$)

ActivateUndo
Stat= AdvanceUndoNumber("vert lines off")
Stat= AddItemToUndo(WsUBModifyMode,Element1)


Stat= EraseEntity(Element1)
RecordFunctionOn
Stat= RecordDescr("TABLE: Vertical Lines off")
V1= FreeParameter("Vertical lines off",1)
Stat=SetTableVLines(Table$,V1)
RecordFunctionOff
Curr_record= CurrentVarRecord
CloseVarRecord
Stat= PlotEntity(Element1)

Stat= AddItemToUndo(WsUBCreateMode,Curr_record)
GOTO Start

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