Search

Results 121 to 140 for string formatting.

  1. User Changes 3.0

    probably the fact that string became a 2-byte encoding was the trigger. - Remedy : Adjust typing in descendents and using code accordingly. TBufDataset.SaveToFile, SaveToStream: Binary Format (dfBinary) of saved data ... type String is currently defined as UnicodeString or not. Other Stabs support has been disabled for 64 bit targets - Old behaviour : While the default debug information format

  2. CudaText files formats

    file format is ANSI text file, it contains list of lines in forms: Type Id Hint Type Id (Param1; Param2; ...) Hint Type Id (Param1; Param2; ...): ResultType Hint - Strings "Type ... Double. Color in Pascal format: hex number (6..8 digits) with "$" prefix, or constants. See possible constants (with hex values) in Lazarus file Graphics.pp, where string 'clBlack' is defined

  3. Lazarus 1.0 fixes branch

    fixed determination of string content (RightToLeft vs. LeftToRight). issue 24340 r40621,40622, 40625 Qt fixes for buggy xfwm4 window manager under X11 r40993 Qt formatting r40995 Qt fixed visibility ... Colors properties of TAggFPImage r40216 AggPas Fix TLazIntfImage descriptor for 32-bit pixel format r40335 codetools fixed parsing 0, bug http://bugs.freepascal.org/view.php?id 23906 23906 r40482 Debugger Fixed range-check

  4. FPSpreadsheet tutorial: Writing a mini spreadsheet application

    where we have to set the DefaultExtension (".xls" or ".xlsx", most probably) and the format Filter : > All spreadsheet files .xls; .xlsx; .ods; .csv All Excel files ( .xls, .xlsx) .xls; .xlsx ... Copy this string into the field Filter of the action's Dialog ). As you may notice the Filter contains selections which cover various file formats, such as "All spreadsheet files

  5. How To Write Lazarus Component

    tool with a GUI which can create LRS files from PNG and other image formats. After creating a .lrs file , the name of the control shall be edited with ... variety of formats, it's not possible for Lazarus to have the object inspector edit field able to edit it, like is done for strings and numeric types. For classes

  6. XML Tutorial/ru

    свойство ChildNodes with Child.ChildNodes do try for j : 0 to (Count - 1) do Memo.Lines.Add(format('%s %s (%s %s; %s %s)', Item j .NodeName, Item j .FirstChild.NodeValue, Item j .Attributes.Item ... GetNodeAttributesAsString(pNode: TDOMNode):string; var i: integer; begin Result: ''; if pNode.HasAttributes then for i : 0 to pNode.Attributes.Length -1 do with pNode.Attributes i do Result : Result + format(' %s "%s"', NodeName, NodeValue

  7. Base64

    Convert Base64 string to picture, 2 This unit is from forum member KodeZwerg . He created a pretty easy to handle method that supports now all (?) formats that Lazarus Graphics offers ... mode ObjFPC $H+ interface uses Classes, SysUtils, Graphics, ExtCtrls, Base64; function FileToBytes(const AFilename: string): TBytes; function BytesToBase64(const AData: TBytes): AnsiString; function Base64ToBytes(const ABase64String: AnsiString): TBytes; function GetGraphicClassFromBytes

  8. SDF

    format as used in TStringList , as paraphrased/synthesized from various versions of Delphi help (e.g. DelimitedText (http://docwiki.embarcadero.com/Libraries/en/System.Classes.TStrings.DelimitedText), StrictDelimiter (http://docwiki.embarcadero.com/Libraries/en/System.Classes.TStrings.StrictDelimiter)) - If you get DelimitedText, strings that include spaces ... false: normal_string;"includes;delimiter";"includes space";"includes""quote";"includes ""quote and space";"tab character";"""single_starting_quote";"multi line.";" SpacesInFront";"SpacesAtTheEnd " See also - CSV A related format - a patch

  9. MultithreadingAndCriticalsections

    unix cthreads, $endif Classes, SysUtils; var CriticalSection: TRTLCriticalSection; Counter: integer; UseCriticalSection: boolean; function Supposedly: string; begin if UseCriticalSection then Result: '' else Result: 'supposedly '; end; type TMyThread TMyThread class(TThread) private ... Counter); WriteLn(Format('Thread %d has %sfinished making 1000000 increments to Counter', FID, Supposedly )); finally if UseCriticalSection then LeaveCriticalSection(CriticalSection); end; FAFinished : True; end; function HasCriticalSection: string; begin if UseCriticalSection

  10. User:Nashev

    with hereditary diseases, complicated strings feature packages to packages enjoyed herself IDE. There should be support for changing the design of forms and the storage format of these forms should

  11. DecimalSeparator

    because a formatted number like 123,456 will generate a conversion exception... A workaround can be to use a function like: pascal function DecFloat2Str( const d: double ): string; var myseparator

  12. MacOS File and Custom URL Scheme Associations

    unique string of characters identifies a file of a specific type. For example, the .png extension identifies a file with image data in the portable network graphics format. Note: Because ... that your application recognises and is able to open. Entries for any custom file formats should include both a filename extension and UTI corresponding to the file contents. The system

  13. QRCodeGenLib4Pascal

    text strings and byte arrays. Core features: - Supports encoding all 40 versions (sizes) and all 4 error correction levels, as per the QR Code Model 2 standard. - Output formats

  14. Editor Macros PascalScript

    integer): integer; function PhysicalLineLength(Line: String; Index: integer): integer; ClipBoard: TClipBoard pascal property AsText: String; Available Macros / Downloads ::::table Editor macros .wikitable - tr - Description - Link - tr - Column Align Source code ... format Example: Executing the macro with the caret in the line of function declaration will insert the comment before. :::table .wikitable - tr - td pascal function AddRadioButton(const aCaption: string; aChecked

  15. Fcl-json/ru

    String; S : TStringList; BEGIN N: Nil; IF Assigned(Data) THEN BEGIN CASE Data.JSONType OF jtArray, jtObject: BEGIN IF (Data.JSONType jtArray) THEN C: SArray ELSE C: SObject; N: TVJSON.Items.AddChild(AParent,Format

  16. MS Access/ru

    PInteger; lpszErrorMsg: string; cbErrorMsgMax: integer; pcbErrorMsg: PInteger): integer; stdcall; external 'odbccp32.dll'; function CreateAccessDatabase(DatabaseFile: string): boolean; var DBPChar: PChar; Driver: PChar; ErrorCode, ResizeErrorMessage: integer; ErrorMessage: PChar; retCode: integer; begin driver ... Microsoft Access Driver ( .mdb, .accdb)'; With this driver, CREATE_DB/CREATE_DBV12 will create an .accdb format database; CREATE_DBV4 will create an mdb http://stackoverflow.com/questions/9205633/how-do-i-specify-the-odbc-access-driver-format-when-creating-the-database DBPChar: PChar('CREATE_DBV4 "'+DatabaseFile

  17. Code Conversion Guide

    Delphi 5 and higher, "DeleteAmpersands" to remove additional ampersands from a string for controls(& vs && etc). The Interfaces unit needs to be included in the .lpr file to initialize ... appropriate widgetset. - Messages->LMessages TControl Messages for win32 event callbacks of the format WM_CALLBACK and the structs associated with them are often found in the Messages unit in Delphi

  18. Lazarus 2.0 fixes branch

    after fpc3.2 - r63071 deb: remove carbon files, fixed lintian-overrides, changed copyright to new format - r63078 IDE: Improve 'Window' menu's submenus 'Tabs for project' and 'Other tabs'. :tpl MantisLink ... events for cocoa. :tpl MantisLink 1 "35480" - r61165 LazUtils: Remove incorrect code dealing with strings on Windows, use SysUtils code instead. :tpl MantisLink 1 "35512" . - r61288 treeview: calling UpdateScrollbars

  19. UTF-8

    categories: - "Unicode" --- ::tpl UTF-8 UTF-8 (8-bit UCS/Unicode Transformation Format) is a variable-length character encoding for Unicode. Unicode characters U+0000 to U+007F are encoded ... simply as bytes 00h to 7Fh. This means that files and strings which contain only 7-bit ASCII characters have the same encoding under both ASCII

  20. User:QLKforges/ru

    PInteger; lpszErrorMsg: string; cbErrorMsgMax: integer; pcbErrorMsg: PInteger): integer; stdcall; external 'odbccp32.dll'; function CreateAccessDatabase(DatabaseFile: string): boolean; var DBPChar: PChar; Driver: PChar; ErrorCode, ResizeErrorMessage: integer; ErrorMessage: PChar; retCode: integer; begin driver ... Microsoft Access Driver ( .mdb, .accdb)'; With this driver, CREATE_DB/CREATE_DBV12 will create an .accdb format database; CREATE_DBV4 will create an mdb http://stackoverflow.com/questions/9205633/how-do-i-specify-the-odbc-access-driver-format-when-creating-the-database DBPChar: PChar('CREATE_DBV4 "'+DatabaseFile