ibec_Format

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

Syntax

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

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.

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

back to top of page
<< ibec_Trim | IBEBlock | ibec_CRLF >>