interface
type
TPosTerminal = public partial class(RemObjects.SDK.Types.ComplexType)
private
protected
public
function doLoadSequence(ActiveSequence: TSecuenciaTerminal): array of TPasosSecuenciaTerminal;
end;
implementation
function TPosTerminal.doLoadSequence(ActiveSequence: TSecuenciaTerminal): array of TPasosSecuenciaTerminal;
begin
Internal error: System.NullReferenceException: Object reference not set to an instance of an object
No Marc, that code have to be changed at complete because the intf file generated for a rodl in Delphi for arrays use TROArrays and in dot net use array of item.
Not related to at all, but you are wrong. Ask Evgeny. Im sure he can tell you all new languages feature added in Rio. BTW, I have no idea why are we talking of this? Maybe you can help me with migration of this DA code to Oxygene?
var
lConnection : IDAConnection;
lQuery : IDADataset;
dw : TDAWhereBuilder;
begin
try
lConnection := ServerDataModule.ConnectionManager.NewConnection(fDBConexion);
if not lConnection.InTransaction then lConnection.BeginTransaction;
lQuery := SchemaGetDataset(lConnection, ServerDataModule.Schema, 'TABLA');
dw := lQuery.DynamicWhere;
dw.Expression := dw.NewBinaryExpression('', 'IDTABLA', dboEqual, 100);
lQuery.Active := True;
result := lQuery.FieldByName('NAME').AsString;
if lConnection.InTransaction then lConnection.CommitTransaction;
except
on e:exception do
begin
if lConnection.InTransaction then lConnection.RollbackTransaction;
end;
end;
end;