meta data for this page
  •  

ibec_Format

This function returns a formatted string assembled from a format string and a list of arguments.

Description

ibec_Format function formats the series of arguments Arg1…ArgN. Formatting is controlled by the format string AFormat; the results are returned in the function result as a string.

Syntax

    function ibec_Format(AFormat: string; Arg1 : variant; ...; ArgN : variant): string;

Example

    execute ibeblock
    as
    begin    
      ...
      NumOfFiles = 10;
      Mes = ibec_Format('%d files were deleted', NumOfFiles);
      ibec_ShowMessage(Mes);
    end 

    execute ibeblock
    as
    begin    
      ...
      Mes = ibec_Format('There are now %d records in the table %s', 1000, 'MYTABLE');
      ibec_ShowMessage(Mes);
    end