4D View v14

PV REMOVE STYLE

Home

 
4D View v14
PV REMOVE STYLE

PV REMOVE STYLE 


 

PV REMOVE STYLE ( area ; stylesheet ) 
Parameter Type   Description
area  Longint in 4D View area
stylesheet  Longint in Stylesheet ID

The PV REMOVE STYLE command removes the stylesheet from area.

Note: Only styles added in the area can be removed.

Example  

This method allows removing any unwanted style.

 C_STRING(255;$StyleName`Name of forbidden style for Area
 
 ARRAY LONGINT($StyleNumArray;0) `Style numbers array
 ARRAY STRING(255;$StyleNameArray;0) `Style names array
 
 C_INTEGER($Position`Position of illegal style in number and name arrays
 
 $StyleName:="subparagraph" `We do not want the style "subparagraph"
 
 PV GET STYLE LIST(Area;$StyleNumArray;$StyleNameArray`List of available styles
 
 $Position:=Find in array($StyleNameArray;$StyleName`Search for illegal style
 If($Position#-1) `Is the illegal style present in Area?
    PV REMOVE STYLE(Area;$StyleNumArray{$Position}) `Remove it
 End if

 
PROPERTIES 

Product: 4D View
Theme: PV Style
Number: 15895

 
HISTORY 

Created: 4D View 6.8

 
SEE ALSO 

PV Add style

 
ARTICLE USAGE

4D View Language ( 4D View v11.4)
4D View Language ( 4D View v12)
4D View Language ( 4D View v14)
4D View Language ( 4D v13)
4D View Language ( 4D View v14 R2)
4D View Language ( 4D View v14 R3)
4D View Language ( 4D View v14 R4)