This file contains hidden or 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 Util.Conexao.SGBD.Firebird.Singleton; | |
interface | |
uses | |
SqlExpr, SysUtils; | |
type | |
TConnFirebird = class sealed | |
private |
This file contains hidden or 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
type | |
PConsultarRuaPeloCEP = function ( ACEP : PChar) : PChar; | |
var | |
Handle : THandle; | |
ConsultarRuaPeloCEP: PConsultarRuaPeloCEP; | |
Rua: string; | |
begin |
This file contains hidden or 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
type | |
TEnumConv = record | |
class function GetList<TEnum>( const AArray: array of string ): TStringList; static; | |
end; | |
class function TEnumConv.GetList<TEnum>( const AArray: array of string ): TStringList; | |
var | |
TypeInf: Pointer; | |
Index: Integer; |
This file contains hidden or 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
procedure TForm2.Button1Click(Sender: TObject); | |
var | |
{ | |
Value: Integer; | |
ptrValue: PInteger; | |
} | |
Value: string; | |
ptrValue: PString; | |
vet: array[0..2] of Integer; |
This file contains hidden or 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
ITeste = interface | |
procedure Msg(); | |
end; | |
TTeste = class( TInterfacedObject, ITeste ) | |
public | |
procedure Msg(); | |
strict private | |
constructor Create(); reintroduce; | |
destructor Destroy; override; |
This file contains hidden or 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
var | |
R : TRect; | |
begin | |
R := StringGrid1.CellRect(0, 1); | |
StringGrid1.Canvas.Brush.Color:=clRed; | |
StringGrid1.Canvas.FillRect(r); | |
end; |
This file contains hidden or 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
Map<Integer, String> dicionario = new HashMap<String, String>; | |
dicionario.put("Gato", "Cat"); | |
dicionario.put("Cachorro", "Dog"); | |
dicionario.put("Casa", "Home"); | |
dicionario.put("Filho", "Son"); | |
dicionario.get("Gato"); |
This file contains hidden or 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
$dicionario = array( | |
"Gato" => "Cat", | |
"Cachorro" => "Dog", | |
"Casa" => "Home", | |
"Filho" => "Son" | |
); | |
echo $dicionario["Casa"]; | |
unset($dicionarioy["Casa"]); |
This file contains hidden or 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
dicionario = {'Gato': 'Cat', 'Cachorro': 'Dog', 'Casa': 'Home', 'Filho':'Son'} | |
print dicionario['Gato'] | |
del dicionario['Gato'] | |
dicionario['Pai'] = 'Father' |
This file contains hidden or 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
var | |
Dicionario: TObjectDictionary<String, String>; | |
begin | |
Dicionario: TObjectDictionary<String, String>.Create(); | |
try | |
Dicionario.Add('Gato', 'Cat'); | |
Dicionario.Add('Cachorro': 'Dog'); | |
Dicionario.Add('Casa', 'Home'); |
OlderNewer