It seems like the UnitImport program maybe came along some ways into the development of cajScript/PascalScript and it may hide some of the details that would help provide an understanding of how to implement a PascalScript application. Assuming that is the case or that you wanted to write a PascalScript application without using the importer, how would you incorporate a class like this into your scripting environment?:
TQuery = Class(TObject)
private
oSQL: TSQLQuery;
FFirstCall: Boolean;
function ExecSQL: Integer;
function GetFields(iNdx: Integer): String;
function GetFieldNames(iNdx: Integer): String;
function GetFieldCount: Integer;
public
EOF: Boolean;
Constructor Create(Owner: TComponent);
Destructor Destroy;
property FieldCount: Integer Read GetFieldCount;
property FieldNames[iNdx: Integer]: String Read GetFieldNames;
property Fields[iNdx: Integer]: String Read GetFields;
procedure AddSQL(sSQL: String);
procedure ExecSQL;
function Fetch: Boolean;
end;
I'm hoping to put together some basic notes on using PascalScript that might fill in some of the gaps left by the two instruction documents and the newsgroups.
Thanks for any help.