/* lx_AddCustomNumFormat.ch Ajoute un nouveau format numérique customisé. Dernière modification : 2022-04-29 */ #ifndef _lx_AddCustomNumFormat_ch_ #define _lx_AddCustomNumFormat_ch_ method AddCustomNumFormat( cFormat ) class LibxlClass local hFormat hFormat := xlBookAddCustomNumFormat( ::Book, cFormat ) return hFormat // Adds a new custom number format to the workbook. // The format string customNumFormat indicates how to format and render the numeric value of a cell. // See custom format strings guidelines. Returns the custom format identifier. // It's used in Format::setNumFormat(). Returns 0 if error occurs. // Get error info with Book::errorMessage(). // int addCustomNumFormat(const wchar_t* customNumFormat) // int xlBookAddCustomNumFormatA(BookHandle handle, const char* customNumFormat) #pragma BEGINDUMP #include #include #include "libxl.h" HB_FUNC( XLBOOKADDCUSTOMNUMFORMAT ) { hb_retni( ( int ) xlBookAddCustomNumFormat( ( BookHandle ) hb_parptr( 1 ) , ( const char * ) hb_parc( 2 ) ) ); } #pragma ENDDUMP #endif // _lx_AddCustomNumFormat_ch_