Autor Beitrag
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Fr 06.05.05 19:14 
Hallo,

kann mir jemand sagen was ich hier falsch mache??

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
 name := Form2.bt[hbt].Caption;
        if Form2.BTshct[hbt] = '' then
          begin
          //nix
          end
          else
          begin
          name := delete(Form2.bt[hbt].Caption,1,4);
          end;
        writestring('bt'+inttostr(hbt),'Caption',name);


An der gekennzeichneten Stelle kommt dann folgender Fehler:
Zitat:
[Fehler] Unit1.pas(202): E2197 Konstantenobjekt kann nicht als Var-Parameter weitergegeben werden


Ich hab keine Ahnung. Laut meinem Buch, hab ich extra deswegen rausgeholt (!), müsste das gehen.
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Fr 06.05.05 19:18 
Hallo

delete ist keine Funktion! das ist eine Procedure, der String ist dabei ein Var-Paramter. geh über eine Zwischenvariable:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
.. 
name:=form.caption;
delete(name,1,4);

writestring(...,name)


mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Fr 06.05.05 19:19 
Hallo,

Das hat nichts mit D2005 zu tun. Der erste Parameter muss ein var Parameter sein.
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Fr 06.05.05 19:22 
Zitat:
Es compiliert, wir können es ausliefern!

DANKE!! :D :D :D :D :D :D :D :D
delphimike
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: So 08.05.05 13:03 
unabhängig davon : mach das Update 2 drauf, sonst macht Delphi 2005 einige unlogische Dinge!
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 08.05.05 13:44 
Meinst du damit u.a. das fehlerhafte Speichern der Formgrößen oder beziehst du dich auf delete??
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: So 08.05.05 13:53 
user profile icondelphimike hat folgendes geschrieben:
unabhängig davon : mach das Update 2 drauf, sonst macht Delphi 2005 einige unlogische Dinge!
Imho gibt es das (noch) nicht in deutsch.

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: So 08.05.05 14:06 
user profile iconwulfskin hat folgendes geschrieben:
Imho gibt es das (noch) nicht in deutsch.

doch, steht doch auch in den News ;)

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 08.05.05 14:27 
Weis jemand wie groß das Update is? Ich hab n 56k-Modem. Ab 10 MB wird's problematisch.
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: So 08.05.05 14:45 
ist das so schwer, sich in dem News-Link oben nochmal 3x zu klicken? Dann bist du auf der Downloadseite und siehst, das das update 10,8 MB für die Pro ist.

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 08.05.05 17:14 
Schwitz. Ich war schon beim Download als mir die Frage einfiel, und ich hatte nirgens eien 10,8 MB angabe gesehn.