PV SET FORMAT

4D - Documentation   Français   English   German   4D View 2004, Command Theme List   4D View 2004, Command Alphabetical List   4D View 2004, Constant Theme List   Back   Previous   Next

version 6.8


PV SET FORMAT (area; format; string)

ParameterTypeDescription
areaLongint4D View area
formatLongintFormat ID
stringStringFormat string

Description

The PV SET FORMAT command changes the string format for format.

Example

Here is a simplified version of the PV Add format command example: the format, in this case, is abruptly replaced. The new format is not created if the old one is not present.

   ARRAY LONGINT($ArrayFormatNum;0)  `Format number(s) array
   ARRAY STRING(255;$ArrayFormatStrings;0)  `Format string(s) array
   C_INTEGER($Position)  `Position of format to modify in the number and name arrays

       `List of available formats
   PV GET FORMAT LIST (Area;$ArrayFormatNum;$ArrayFormatStrings) 

   $Position:=Find in array($ArrayFormatStrings;"$###,##0.00")
   If ($Position#-1)  `Format available for the area?
         `Modifying format
      PV SET FORMAT (Area;$ArrayFormatNum{$Position};"### ##0,00 EUR") 
   End if

See Also

PV Add format.


4D - Documentation   Français   English   German   4D View 2004, Command Theme List   4D View 2004, Command Alphabetical List   4D View 2004, Constant Theme List   Back   Previous   Next