Search
Results 261 to 280 for string formatting.
- SynEdit
Component Palette ) - There are scriptable highlighters, which can adapt to many other file formats: - TSynAnySyn (standard, on component palette by default) - TSynPositionHighlighter (standard, not on component palette) - TSynUniHighlighter (standard ... fCommentAttri_Ansi : TSynHighlighterAttributes.Create(SYNS_AttrComment+'_Ansi', SYNS_XML_AttrComment+'_Ansi'); //The last two strings are the Caption and the stored name //If you want to have default settings for your
- User Changes 2.2.0
delphi programs (such as accessing element 0, or accessing elements at an index > length(string)), this code may no longer compile and/or run. - Remedy : Adapt the code to work with ... parsed as a single. 1.1 cannot be represented exactly in any IEEE floating point format, so it will be considered to be of the largest floating point type available - Reason
- Using INI Files
Currently only INI files compliant with the more restrictive Windows ini-file format are supported. I.e. using sections (http://en.wikipedia.org/wiki/INI_file Sections) is mandatory and only the semicolon ... inifiles' to the implementation uses section. pascal interface ....... type SettingRec record X : integer; MyName : string; end; .... implementation .... uses IniFiles; const IniFile 'settings.ini'; .... procedure TForm1.ReadSettings; var Sett : TIniFile; begin Sett : TIniFile.Create
- Databases
MyDataset.Insert; MyDataset.Fields 0 .AsInteger : 4; //an integer field MyDataset.Fields 1 .AsString : 'First Name'; //a string field (MyDataset.Fields 2 as TBlobField).LoadFromFile('SomeBlobfile.bin'); //blob field MyDataset.Post; How to quickly jump ... ftLargeint); MyDataset.FieldDefs.Add('TableId', ftInteger); MyDataset.FieldDefs.Add('LoggedIn', ftBoolean); MyDataset.FieldDefs.Add('PlayerId', ftInteger); MyDataset.Active : False; Non-parameterized format; may run into issues with text containing ' and dates SQLText : Format('select from "GameSession" WHERE
- Pas2js designtime
column is searchable - Sortable : A boolean that Indicates whether the column is sortable - ButtonURL : string URL to use when the button is clicked - ButtonURLTarget : link element target attribute. The TStylingClasses ... data for which to render the loop. - OnFormatField an event to get a custom formatted version of a field. - Groups a collection of groups for which an expression, a footer
- TMPlayerControl
additional codecs must be installed separately, but are not necessary for many common formats. Distributing mplayer :::warning mplayer can be easily bundled with your application installation. However mplayer uses FFmpeg ... mplayer after multimedia is loaded (i.e. after calling Play) by using SendMPlayerCommand(Cmd: string); \ SendMPlayerCommand is not needed for simple video playback, and is made available for advanced mplayer features
- Android Programming
fill a TDisplayMetrics with the correct info: pascal uses androidutil; var MyDisplayMetrics: TDisplayMetrics; Str: string; // lHeight, lWidth: Integer; xdpi, ydpi, lScreenSize: Single; begin // .. // Objects MyDisplayMetrics : TDisplayMetrics.Create; Activity.getWindowManager().getDefaultDisplay().getMetrics(MyDisplayMetrics ... installed, which means that the native Media Player will be able to play different formats in different phones. Below is a table showing which formats play in the native Media
- FPReport Usage
where the memo will be positioned. The text of the memo, and the internal formatting can be specified using the Text and TextAlignment properties: pascal Memo.Text : 'Dataset Demo'; Memo.TextAlignment.Vertical : tlCenter ... data. That means that Expressions are much like Pascal expressions. An expression: - Is typed (string, integer, float, datetime) - can contain calculations on these types. - can contain report variables
- Fpsonar
review tools read. sonar-json For feeding results into SonarQube. bash fpsonar analyze src/ --format sarif --output report.sarif Rule reference Each page explains its rules in plain language, with ... fpsonar_memory Create / Free , ownership, leaks fpsonar_concurrency Threads, threadvar , touching the UI fpsonar_strings String types, PChar , encodings fpsonar_calls Calling RTL routines correctly fpsonar_conditional_compilation $ifdef branches
- Hardened runtime for macOS
/path/to/bundle.app The output of that command should be similar to: Executable /Users/trev/your.app/Contents/MacOS/yourapp Identifier org.yourdomain.yourapp Format app bundle with Mach-O thin (x86_64) CodeDirectory v 20500 size 101470 flags 0x10000 ... application needs to declare its intent to access protected resources by providing a purpose string that explains to the user why you need access to protected resources. When declaring resource
- Lazarus 1.6 fixes branch
Open a loaded package also by pressing Return key. - r53422 LCL: Fix the display string of shortcut "+". :tpl MantisLink 1 "30973" - r51947 TurboPower_iPro: Fix browser example crashing at program ... with TPreviewFileDialog.:tpl MantisLink 1 "29896" - r52085 Qt: do smooth transformation on argb32 image format. :tpl MantisLink 1 "0029883" . - r52086 Qt: use smooth transformation when scaling an QImage. :tpl MantisLink
- Lazarus Tutorial/it
Copy ) are performed in this part of the object, which holds the actual string being edited. If the control contains more than a single line of text, for example TMemo ... Tutorial. 25 Mar 2004 User:Kirkpatc - Added screenshots and revised some of the page formatting User:Tom VlxAdmin 3/25/2004 - Moved some of kwhitefoot's comments into Tutorial section. Formatting
- Pas2js resources
with text/html as file format with the following command: pascal $R myFile.html;name:myFile.html;format:text/html This mechanism is pluggable, and the compiler currently supports 2 mechanisms: - The resources ... aCallback : TResourceEnumCallBack) : Integer; Function EnumResources(aSource : TResourceSource; aCallback : TResourceEnumCallBack) : Integer; Function GetResourceInfo(Const aName : String; var aInfo : TResourceInfo) : Boolean; Function GetResourceInfo(aSource : TResourceSource; Const aName : String; var aInfo : TResourceInfo) : Boolean
- Show Application Title, Version, and Company
code below shows how to get executable info out of: - .exe/.dll/.ocx files (Windows format) - Lazarus-compiled ELF executables (Linux) - Lazarus-compiled MACH-O executables (macOS) pascal program printfileinfo; Displays file ... list: < http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100723/8db6b97e/attachment.ksh> Use this like pascal uses resource, versiontypes, versionresource; FUNCTION resourceVersionInfo: STRING; ( Unlike most of AboutText (below), this takes significant activity at run- ) ( time to extract version/release/build
- TAChart Tutorial: Chart Tools
TLineSeries) then with TLineSeries(Series) do begin x : GetXValue(PointIndex); y : GetYValue(PointIndex); Statusbar1.SimpleText : Format('%s: x %f, y %f', Title, x, y ); end else Statusbar1.SimpleText : ''; end; The parameter ATool ... extra storage for an additional text: pascal type TChartDataItem object X, Y: Double; Text: String; // ... end; To modify the Text assigned to a data point at a given index
- FPC JVM/Language/ru
files . While include files will work fine at compile time, the Java class file format does not support referring to more than one source file. As a result, the compiler ... parameter value) - Pointers to implicit pointer types can never be indexed as arrays Строки String, unicodestring и java.lang.String JVM поддерживает только 16-bit unicodestring тип ( java.lang.String ). По этой причине, unicodestring
- FPC New Features 3.2.0
Arg1 + Arg2; end; end. pascal program TestDelphiSyntax; $mode Delphi uses UTestDelphiSyntax; begin Writeln(Add< String>('Hello', 'World')); Writeln(Add< LongInt>(23, 19)); end. Management operators for record types - Overview ... used to set the corresponding fields of the PE/COFF header of the resulting binary. The format is \< MAJOR>.\< MINOR>. - Notes : - Take care with the versions as that may lead to binaries
- Feature Ideas
maybe win64 with a bit shoehorning). Example: To use a string routine in the strings unit of JCL, you have to fix like 12 units, some of which poke around ... Offline help has been included since Lazarus 1.0x with lhelp and the chm format. A help menu item that shows lhelp is included with Laz trunk. Maybe
- TAChart Tutorial: ColorMapSeries, Zooming
coordinate and the marks text, we use the constant DUMMY and an empty string since we don't need them. Let's run the program ... cex.b.x cex.a.x then exit; factor : (fex.b.x - fex.a.x) / (cex.b.x - cex.a.x); if factor > 1e6 then LblMagnification.Caption : Format('Magnification: %.0e', factor ) else LblMagnification.Caption : Format('Magnification: %0.n', factor ); end; :img src "/_files/Mandelbrot_ExtremeMag.png" .floatright
- Avoiding implicit try finally section
worth the trouble, because of the risk and low gains – e.g. date formatting (https://www.freepascal.org/docs-html/rtl/sysutils/datetimeroutines.html) routines. - Floating point usage can raise exceptions that are converted into catchable exceptions ... parameter has some particular value). pascal program implicitExceptionDemo; // for exceptions $mode objfpc // data type 'string' refers to 'ansistring' $longstrings on uses $IFDEF UNIX BaseUnix, Unix, // needed only to implement clock