Autor Beitrag
Red-Flash
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18
Erhaltene Danke: 1



BeitragVerfasst: Fr 01.10.10 08:27 
seit der Zeos Version 7 alpha
kann man keine Query mehr edditieren.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
with Query do
begin
SQL.Clear,
SQL.add ('SELECT * FROM BlaBla')
Open;
if RecordCount > 0 then
begin
  Edit;
  FieldByBName ('Feld').asString := 'Hallo';
  // ------> Hier kommt die Fehlermeldung, das man das Feld nicht Edditieren kann
  Post;
end;


Mit der Zeos Version 6.6.6. klappte dies super.


Die 6.6.6 wird aber nicht für DeplphiXE unterstützt,
auf welche wir umsteigen möchten.

Kann mir da jemand helfen?

Danke schon im Vorraus.

Moderiert von user profile iconMartok: Delphi-Tags gesetzt
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Fr 01.10.10 16:22 
Hallo!

Bitte verwende für Quellcode die entsprechenden [delphi]-Tags, dann wird er "schöner" dargestellt als im Fließtext. Beispiel:
ausblenden Quelltext
1:
<span class="inlineSyntax"><span class="codecomment">{PROTECTTAG7cd93f7bd093c1dbf1e366557369e67b}</span></span>					

Wird:
ausblenden Delphi-Quelltext
1:
var Test: integer;					

Ich habe die mal eingesetzt.

Gibt es bei der Query jetzt vielleicht ein neues Property à la Updatable oder ReadOnly oder sowas?

Viele Grüße,
Martok

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."


Zuletzt bearbeitet von Martok am Fr 01.10.10 16:34, insgesamt 1-mal bearbeitet
Tankard
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Administrator
Beiträge: 217
Erhaltene Danke: 96



BeitragVerfasst: Fr 01.10.10 16:32 
ich benutze auch die alpha version unter lazarus und delphi7. da klappt das wunderbar.
Red-Flash Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18
Erhaltene Danke: 1



BeitragVerfasst: Mo 04.10.10 12:28 
Für Delphi 7 gib's andere IfDef's

Unter anderem dieser
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
  {$IFDEF BDS4_UP}
  TZAbstractRODataset = class(TWideDataSet)
  {$ELSE}
  TZAbstractRODataset = class(TDataSet)
  {$ENDIF}


Hat das schon jemand mit einer Moderneren Version Probiert ?