/
TccRemoteQuery.GetFieldValueByName

TccRemoteQuery.GetFieldValueByName

Parameter

(FieldName : WideString; Row : Integer) : Variant;

Beschreibung

Gibt den Inhalt des Feldes „FieldName“ aus der Zeile „Row“ vom entsprechenden Datentyp zurück. Ist die angegebene Position nicht in der Datenmenge vorhanden, bleibt das Ergebnis der Funktion „UnAssigned“. Row ist 0 based.

Beispiel

ccRemoteQuery := TccRemoteQuery.Create;
 
try
  ccRemoteQuery.User        := 'Test';
  ccRemoteQuery.Password    := 'secret';
  ccRemoteQuery.CreateSession;
  
  try
    ccRemoteQuery.Connection  := 'EXAMPLE';
    ccRemoteQuery.CommandText := 'SELECT * FROM myTable';
    ccRemoteQuery.Open;
 
    try
      for i:=0 to ccRemoteQuery.RecordCount-1 do
      begin
        ShowMessage(ccRemoteQuery.GetFieldValueByName('Name',i));
      end;
 
    finally
      ccRemoteQuery.Close;
    end;
 
  finally
    ccRemoteQuery.CloseSession;
  end;
 
finally
  ccRemoteQuery.Free;
end;

Related content

TccRemoteQuery.GetFieldValueByName
TccRemoteQuery.GetFieldValueByName
More like this
TccRemoteQuery.GetFieldValueByName
TccRemoteQuery.GetFieldValueByName
More like this
ccRemoteQuery.AutoCloseSession
ccRemoteQuery.AutoCloseSession
More like this
ccRemoteQuery.AutoCloseSession
ccRemoteQuery.AutoCloseSession
More like this
TccRemoteQuery Beispiel
TccRemoteQuery Beispiel
More like this
TccRemoteQuery Beispiel
TccRemoteQuery Beispiel
More like this