|
Argow
Solution ready!
|
::::
|
ArScript: Classes Expostas
|
|
O Argow tambem disponbibiliza:
|
As seguinte classes do Delphi são expostas no scripts:
- TStrings
- TStringList
- TBits
- TStream
- THandleStream
- TFileStream
- TMemoryStream
- TControl
- TWinControl
- TDataset
|
As seguinte classes do Argow são expostas no scripts:
TArImportFile
Esta classe facilita a importação de arquivos texto.
TArImportFile= class( TStringList )
public
constructor Create( const cFileName: string );
destructor Destroy;
function next: boolean; // incrementa a linha ativa
property headerLine: integer read/write // Linha do cabeçalho ou -1, se não tiver
property headerColCount: integer read // Quantidade de colunas no cabeçalho
property currentRow: integer read/write // Linha ativa
property values[ const vColNameOrIndex: variant ]: string read // O valor da coluna, como string
property row[ const vColNameOrIndex: variant ]: TArImportFileCell read // O valor da coluna, como TArImportFileCell
property line: string read // O valor da linha ativa, como string
property fileName: string read/write // Nome do arquivo
property tab: char read // Tab= #09
property colDelimiter: char read/write // Delimitador de coluna, default é vírgula ,
property decimalSeparator: char read/write // caractere separador decimal
property dateSeparator: char read/write // caractere separador de data
property dateFormat: string read/write // formato da hora
property timeFormat: string read/write // formato da Data
end
TArImportFileCell
Esta classe da acesso as células.
TArImportFileCell= class
public
property num: double read
property str: string read
property int: integer read
property null: boolean read
property dateTime: TDatetime read
end
TArXmlDoc
Esta classe permite manipular um documento XML.
TArXmlString= widestring;
TArXmlDoc= class
public
constructor Create();
destructor Destroy;
procedure LoadFromFile(const cFileName: string);
procedure LoadFromStream( const oStream: TMemoryStream );
property IsEmptyDoc: boolean read
property Active: boolean read/write
property ChildNodes: TArXmlNodeList read
property Node: TTArXmlNode read
property DocumentElement: TArXmlNode read
property Encoding: TArXmlString read
property StandAlone: TArXmlString read
property Version: TArXmlString read
property fileName: string read
end
TArXmlNodeList= class
public
property count: integer;
property nodes[ const IndexOrName: (integer or string) ]: TArXmlNode; default;
end
TArXmlNode= class
public
property AttributeNodes: TArXmlNodeList read;
property Attributes[ const cAttributeName: TArXmlString ]: TArXmlString read;
property ChildNodes: TArXmlNodeList read;
property ChildValues[ const IndexOrName: (integer or string) ]: variant read default;
property isTextElement: boolean read;
property hasChildNodes: boolean read;
property nodeName: TArXmlString read;
property nodeValue: TArXmlString read;
property nodeType: TNodeType read;
property OwnerDocument: TArXmlDoc read;
property ParentNode: TArXmlNode read;
property ReadOnly: boolean read;
property Text: TArXmlString read;
end
TNodeType=(
ntReserved,
ntElement,
ntText,
ntCData,
ntEntityRef,
ntEntity,
ntProcessingInstr
ntComment,
ntDocument,
ntDocType,
ntDocFragment,
ntNotation,
)
|