-
ApplicationHelper: https://gist.github.com/reinaldoacdc/3fcc92a6610bfb07d3ddc68b14e54164
-
BitmapHelper https://gist.github.com/reinaldoacdc/5d8bffa7eb0d03c105cbac44e99c02e7
-
ClientDatasetHelper https://gist.github.com/reinaldoacdc/aca5ebc481e6267ab856c2b7cf708a7b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit StringHelper; | |
interface | |
type | |
TStringHelper = record helper for string | |
function OnlyNumbers :String; | |
end; | |
implementation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit ApplicationHelper; | |
interface | |
uses Vcl.Forms; | |
type | |
TApplicationHelper = class helper for TApplication | |
procedure OpenForm( frm :TForm; obj :TFormClass); | |
procedure CloseAllForms; | |
procedure Log(text: String); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit StringGridHelper; | |
interface | |
uses | |
Vcl.Grids; | |
type | |
TStringGridHelper = class helper for TStringGrid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit JsonObjectHelper; | |
interface | |
uses DBXJSON, Character; | |
type TJsonObjectHelper = class helper for TJsonObject | |
public | |
//Helper to find a JSON pair based on the pair string part | |
function Get(const PairName: UnicodeString): TJSONPair; overload; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit FormHelper; | |
interface | |
uses Forms; | |
type | |
TFormHelper = class helper for TForm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit BitmapHelper; | |
interface | |
uses FMX.Graphics; | |
type | |
TBitmapHelper = class helper for TBitmap | |
function ToBase64 :String; | |
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MonthName(n: Integer): String; | |
const | |
aMeses :array[0..11] of String = ( 'Janeiro', 'Fevereiro', 'Mar�o', 'Abril', 'Maio', 'Junho', | |
'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro' ); | |
begin | |
Result := aMeses[n-1]; | |
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit VariantsHelper; | |
interface | |
type | |
TVariantsHelper = record helper for variants | |
function ValueInRange(const ARange: array of Variant): Boolean; | |
end; | |
implementation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit IntegerHelper; | |
interface | |
type | |
TIntegerHelper = record helper for integer | |
function toRomans: String; | |
end; |
OlderNewer