Search
Results 61 to 80 for string formatting.
- OpenGL Tutorial/ru
весь экран. Чтобы указать желаемый режим, через функцию glutGameModeString передаём нужные параметры экрана. Format of that string is: Так как в этот раз мы не хотим, чтобы GLUT анализировал командную ... создать функцию для рисования текста: 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
- SQLdb Tutorial3
parameterized queries to avoid SQL injection, fiddling with quoting for string values, date formatting, etc. As you can see in the code, you can name your parameters whatever you wish ... examples above): pascal procedure TForm1.SalaryGridValidateEntry(sender: TObject; aCol, aRow: Integer; const OldValue: string; var NewValue: String); begin // Only these cells have min and max salary: if (aCol 3) and ((aRow
- SQLdb Tutorial3/fr
parameterized queries to avoid SQL injection, fiddling with quoting for string values, date formatting, etc. As you can see in the code, you can name your parameters whatever you wish ... examples above): pascal procedure TForm1.SalaryGridValidateEntry(sender: TObject; aCol, aRow: Integer; const OldValue: string; var NewValue: String); begin // Only these cells have min and max salary: if (aCol 3) and ((aRow
- Turbopower Visual PlanIt
TVpJsonDatastore Yet another simple file datastore inherited from TVpCustomDatastore . It takes the json file format to store the data records. Usage is demonstrated in the sample code in folder examples/datastores/json ... property is not available in TVpDayView since this behaviour is activated automatically. - DateLabelFormat: String : Defines the format how dates are displayed by the control. Use the conventions established
- IEEE 754 formats
IEEE 754 formats single , double and extended are FPC 's Data type data types implementing Pascal ’s Real real . All of them are implemented according IEEE standard 754, where single ... literals, while the assignment of the lower example is literals of the String type. Binary floating-point format Any value stored as a single requires 32 bits, formatted as shown
- Fcl-json
JSON format. See Streaming JSON for a short example. Examples Getting Started pascal uses fpjson, jsonparser; procedure JSONTest; var jData : TJSONData; jObject : TJSONObject; jArray : TJSONArray; s : String; begin // this ... Hello", "Fld2" : 42, "Colors" : "Red", "Green", "Blue" '); // output as a flat string s : jData.AsJSON; // output as nicely formatted JSON s : jData.FormatJSON; // cast as TJSONObject to make access easier jObject : jData
- MorphOS
more readable. Use them. 4. Pascal preprocessor won't preparse strings like C does. So text formatting sequences widely used in MUI applications like \033c and so won't work
- Extended Pascal
data type that takes one or more arguments (called discriminants). - The ISO 10206 string type is a schema type. - The New procedure can be used to set a schema ... current time, which can be converted to a human-readable format via the Date and Time functions. String functions - Substr , equivalent to Copy . - Index , equivalent to Pos . - Trim . - String comparison
- User Changes 3.2.4
SigFPE instead of returning "NaN" - 33323 (https://gitlab.com/freepascal.org/fpc/source/-/work_items/33323) (9b2ba834a6): arm - embedded : error in string concatenation on cortex-m0 - items/33565 33565 (https://gitlab.com/freepascal.org/fpc/source/-/work) (c0f20e0e5f): Wrong register used ... equals) ) - 41364 (https://gitlab.com/freepascal.org/fpc/source/-/work_items/41364) (cdba59add3): fcl-pdf: Octal strings parsing is invalid (not compliant with format definition) - 41365 (https://gitlab.com/freepascal.org/fpc/source/-/work_items/41365) (7ae2d18398): FCL-image, decompression very large tiff results
- Lclintf
List: PClipboardFormat): boolean; function ClipboardGetOwnerShip(ClipboardType: TClipboardType; OnRequestProc: TClipboardRequestEvent; FormatCount: integer; Formats: PClipboardFormat): boolean; function ClipboardRegisterFormat(const AMimeType: string): TClipboardFormat; function CreateEmptyRegion: hRGN; function CreatePixmapIndirect(const Data: Pointer; const TransColor
- IDE Window: Watch list
right site the current value of the variable or expression is displayed.\ The display format depends on the value and can be refined in the " Watch Properties " dialog. Additional details ... supports line breaks in the data, so if the value is formatted with line breaks (structures/arrays, but not strings - they are escaped) then it will be shown accordingly
- LNet
assigned an excepion with "msg" is raised. Arguments are: msg - contains string and numerical representation of error message formatted in native encoding or UTF8 (depending on ForceUTF8 property). aSocket
- Developing Python Modules with Pascal
PyObject; Args : PyObject) : PyObject; cdecl; From Python documentation for "s" format: "You must not provide storage for the string itself; a pointer to an existing string is stored into
- Step-by-step instructions for creating multi-language applications
unit lclstrconsts to the uses clause if you refer to one of these strings). Do the same when your application requires third-party packages which may have their ... active language found in the languages folder. Format settings When creating multi-language applications translation of the strings is not the only task. Another issue is that format settings
- Fpsonar calls
about TStringList semantics and locale settings respectively, so they are in fpsonar_strings strings . IOResultNotChecked major · off by default An I/O call under $I- whose IOResult nothing reads before ... then Exit; ReadLn(lFile, lLine); $I+ Related chapters Format argument checking — count, types, malformed specifiers — is in fpsonar_strings strings . FreeAndNil and constructor-call rules are in fpsonar_memory memory
- Custom Attributes
aArg: TDateTime); begin FArg : aArg; end; constructor ADateTimeAttribute.Create(const aArg: string ); var MySettings:Tformatsettings; begin set up the date format according to how the compiler formats %DATE% include MySettings : DefaultFormatSettings ... Rtti; // --------------------------------------------------------------------------- // Custom attributes // --------------------------------------------------------------------------- type $ifndef fpc for delphi compatibility TCustomAttributeArray Tarray< TCustomAttribute>; TStringArray TArray< string>; const LineEnding $ifdef mswindows 13 10 $else 10 $endif ; type $endif Maps a property
- MS Access
WHERE condition in Access must be put in round parenthesis - strings must be single-quoted - dates must be formatted like yyyy-mm-dd (in year-month-day order and enclosed ... String; retCode: integer; ext: String; begin ext : Lowercase(ExtractFileExt(DatabaseFile)); driver : 'Microsoft Access Driver ( .mdb, .accdb)'; With this driver, CREATE_DBV12 will create an .accdb format database; CREATE_DBV4 will
- Plex and Pyacc
expressao ')' $$ : $2; ; %% procedure meuyyerror(s: PChar); // Called by yyparse on error begin WriteLn(Format('Erro: %s', s )); end; $include lexer.pas begin yywrap : @meuyywrap; // yyerror : @meuyyerror; yyparse ... calculadora; $mode delphi uses SysUtils, yacclib, lexlib; procedure yyerror(s: string); // Called by yyparse on error < - overload ! begin WriteLn(Format('Erro: %s', s )); end; % %start entrada %token < Integer> NUMBER IGUALD
- ISO 8601
year for a TDateTime value DateUtils FormatDateTime Gives a string representation of a TDateTime value with a given format SysUtils WeekOf Gives the week of the year for a TDateTime ... function ISO8601_Combined_date_and_time_in_UTC(a_DateTime: TDateTime; a_Time_zone:string):string; begin result : FormatDateTime( 'yyyy-mm-dd"T"hh:mm:ss', a_DateTime )+a_Time
- Utilities
compiler, and deletes them. ppudump dumps the contents of a unit in human-readable format. It understands older versions of units and gracefully handles unknown (future) versions. ppufiles lists ... that converts .rsj files (files that contain Using resourcestrings resource strings , as created by the compiler) to some other format. tply Plex and Pyacc TP Lex and Yacc , written