Search
Results 21 to 40 for string formatting.
- Gmp
corresponding \ \_clear of any GMP variable as shown in the snippet above. String formatting & I/O functions All these functions (mp_asprintf, mp_printf, mp_snprintf, mp_sprintf, mp_scanf ... actually show (flush) the stdout. For further details about the formatting functions and format strings please consult the GMP manual. Extensions layer When using the gmp Extensions_bindings_.26_types
- TAChart Tutorial: Userdefined ChartSource
TComboBox combobox to this panel, set its Style to csDropdownList , add the strings "Total population", "Male population", "Female population", and "Ratio male/female (%)" to the Items Property property , and set ItemIndex ... LeftAxis.Marks.Format . This string is passed to the Format function to convert numbers to strings. The format specifier "%.0n" for example avoids that conversion error and, additionally, adds nice thousand separators
- TAChart Tutorial: ListChartSource, Logarithmic Axis, Fitting
This string is passed to the Format function to convert the numbers to strings. The format specifier "%0.0n" for example avoids that conversion error and, additionally, adds nice thousand
- LazBarcodes
file - SaveToEPSStream(const AStream: TStream) - Saves the barcode in EPS format as stream. - SaveToSVGFile(const AFileName: String) - Saves the barcode ... format to file - SaveToSVGStream(const AStream: TStream) - Saves the barcode in SVG format to a stream - ErrorString: String - In case of an error, this read-only property contains a message
- FPSpreadsheet/pl
strings n :ss , or s , respectively, are used. - nfCustom allows to specify a dedicated formatting string. As already noted the workbook has a property FormatSettings which provides additional information ... correctly. BIFF2 supports only built-in formats by design. Progress of the formatting options The following formatting options are available: Format Text alignment Text rotation Font Rich text Border Color
- BGRABitmap Miscellaneous types
colspan 3 - tr - td - colspan 2 function DetectFileFormat(AFilenameUTF8: string ): TBGRAImageFormat; - tr - td - td - Detect the file format of a given file - tr - colspan 3 - tr - td - colspan 2 function ... DetectFileFormat(AStream: TStream; ASuggestedExtensionUTF8: string ''): TBGRAImageFormat; - tr - td - td - Detect the file format of a given stream. ASuggestedExtensionUTF8 can be provided to guess the format - tr - colspan
- SQLite
they are stored as strings: the .AsDateTime qualifier can stall on an SQLite 'string date' but this can be overcome by using something like strftime( %d/%m/%Y ,recdate ... statement, which forces SQLite3 to return the date record in a specified format. (the format string %d/%m/%d corresponds to your locale date format which .AsDateTime will understand) > Please
- Array as a list of parameters
format" function that will take the array and replace the string according to the format string rules, so we could go over all of the fields of an array. Ideas ... format to another. 2. Unlike most programming languages, we do not need to create different container such as "vectors" in Java in order to store array of string
- Multiplatform Programming Guide
cthreads? $ENDIF and: pascal // in your code: var FPointSeparator, FCommaSeparator: TFormatSettings; begin // Format settings to convert a string to a float FPointSeparator : DefaultFormatSettings; FPointSeparator.DecimalSeparator : '.'; FPointSeparator.ThousandSeparator : ' ';// disable the thousand separator FCommaSeparator ... simply tries two possible decimal separator // This will avoid an exception when the string format doesn't match the locale function AnSemantico.StringToFloat(AStr: string): Double; begin if Pos('.', AStr
- Clipboard
writing HTML source to clipboard: pascal uses Clipbrd, ...; var Html, PlainText: String; ... begin Html : ClipBoard.GetAsHtml(false); ... Html : '< b>Formatted< /b> text'; PlainText : 'Simple Text'; ClipBoard.SetAsHtml(Html, PlainText); end. Windows Handling ... available formats case List.Strings i of // show these specific ones 'Rich Text Format', 'text/plain', 'UTF8_STRING' : ReadClip(List.Strings i ); end; end; finally List.Free; end; end; function TForm1.ReadClip(TheFormat : ANSIString) : ANSIString
- FPSpreadsheet/ru
SysUtils, fpstypes, fpspreadsheet, fpsallformats, fpspreadsheet_pkg; const INPUT_FORMAT sfOpenDocument; OUTPUT_FORMAT sfExcel8; var MyWorkbook: TsWorkbook; MyDir: string; begin // Инициализация MyDir : ExtractFilePath(ParamStr(0)); // Преобразование электронной таблицы MyWorkbook : TsWorkbook.Create ... fatal error messages during reading/writing (TsWorksheet.ErrorMsg) - Merged cells - Registration of currency strings for automatic conversion of strings to currency values - A set of visual controls (TsWorkbookSource, TsWorkbookTabControl, TsSpreadsheetInspector, TsCellEdit, TsCellIndicator
- CudaText API
value. - STATUSBAR_GET_SEPARATOR: Returns inter-cell separator string. - STATUSBAR_SET_SEPARATOR: Sets inter-cell separator string. Param "value": string value. STATUSBAR_GET_OVERFLOW_LEFT: Returns bool flag "overflow ... TEXT: Returns caption string. - BTN_SET_TEXT: Sets caption string. - BTN_GET_HINT: Returns hint (tooltip) string. - BTN_SET_HINT: Sets hint string. - BTN_GET_ENABLED: Returns enabled state, bool
- FPSpreadsheet/es
strings n :ss , or s , respectively, are used. - nfCustom allows to specify a dedicated formatting string. As already noted the workbook has a property FormatSettings which provides additional information ... Version 1.4 Change log (with respect to v1.2.x) - Full support for string formulas ; calculation of RPN and string formulas for all built-in formulas either directly or by means
- Lazarus 2.2.0 release notes
will be removed in a future Lazarus version. - Optional Anchor Designer included. Jedi Code Format - Various improvement for the parser. It now supports most modern Object Pascal syntax. Delphi Compiler ... files anymore. Now multiline strings in PO files match exactly corresponding resource strings. > - Reasons: > - PO format does not prohibit multiline strings without trailing lineendings (and e.g. recent versions of Poedit
- OpenGL Tutorial
want, you call glutGameModeString function which takes string that defines mode you like. Format of that string is: width "x" height ":" bpp "@" hertz In FSMode string we declared that full ... create function for text drawing: pascal procedure glWrite(X, Y: GLfloat; Font: Pointer; Text: String); var I: Integer; begin glRasterPos2f(X, Y); for I : 1 to Length(Text) do glutBitmapCharacter
- Comparing TAChart with Delphi's TeeChart Standard
ParentChart : Chart to which the series belongs. In TAChart, readonly and public. - PercentFormat : Standard formatting string specifier used to draw the series marks in percent style. In TAChart, use Marks.Format ... null point are not displayed. - tnIgnore : Treats all points as non-nulls. - ValueFormat : Standard formatting string specifier used to draw the series Marks. - VertAxis (aLeftAxis, aRightAxis, aBothVertAxis, aCustomVertAxis) : Identifies which
- TsWorksheetGrid
List_of_formulas this document for a complete list of supported formulas. The formula string must begin with the character " ". Cell references must follow Excel's "A1" notation, i.e. column ... haLeft , haCenter , or haRight ). - NumberFormat ACol, ARow: Integer : String - is an Excel-compatible number format string, e.g. '0.000' for displaying a number value with 3 decimal places. The number format
- TAChart Tutorial: Dual y axis, Legend
this event of the left axis: pascal procedure TForm1.Chart1AxisList0MarkToText(var AText: String; AMark: Double); begin AText : Format('%s M', AText ); end; ! (/_files/TAChart_DualYAxis8.png) Setting up the legend We are almost finished ... else AItem.Y : PopulationData AIndex .Ratio / 100; end; procedure TForm1.Chart1AxisList0MarkToText(var AText: String; AMark: Double); begin AText : Format('%s M', AText ); end; procedure TForm1.FormCreate(Sender: TObject); begin LoadPopulationData(POPULATION_FILE, PopulationData
- Clipboard/ru
обмена текста в формате HTML: pascal uses Clipbrd, ...; var Html, PlainText: String; ... begin Html : ClipBoard.GetAsHtml; ... Html : '< b>Formatted< /b> text'; PlainText : 'Simple Text'; ClipBoard.SetAsHtml(Html, PlainText); end. Windows Для обработки ... увидеть все доступные форматы case List.Strings i of // показать конкретные форматы 'Rich Text Format', 'text/plain', 'UTF8_STRING' : ReadClip(List.Strings i ); end; end; finally List.Free; end; end; function TForm1.ReadClip(TheFormat : ANSIString
- LazReport Tutorial
like MM/DD/YY for example. Except for Text and Logic types, you can use the formatting strings you also use in Lazarus. Other formatting options are present on the button ... more flexible and stores the file extension before the image data, allowing different file formats to be used. For simplicity's sake, we'll use the Delphi approach. :::note