Autor Beitrag
Jas DA
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28



BeitragVerfasst: Mo 12.05.03 13:55 
Ich habe in meinem Programm folgende Zeilen:

ausblenden Quelltext
1:
2:
TXT.Insert(zaehler, '    <td><div align="center">7700102195</div></td>');
         inc(zaehler);


Nun soll aber nicht jedesmal "7700102195" geschrieben werden, sondern der Inhalt der Variablen "tn". Jetzt dachte ich, dass es dann folgendermaßen funktioniert:

ausblenden Quelltext
1:
2:
TXT.Insert(zaehler, '    <td><div align="center">',tn,'</div></td>');
         inc(zaehler);


Nur habe ich jetzt angeblich zu viele Parameter. Wie muss ich die Variable "tn" an der Stelle richtig einbauen ?
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Mo 12.05.03 14:03 
kommas weg und + hin dann gehts :)
also so
ausblenden Quelltext
1:
2:
TXT.Insert(zaehler, '<td><divalign="center">'+tn+'</div></td>'); 
         inc(zaehler);

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
Teutobod
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 55



BeitragVerfasst: Mo 12.05.03 14:04 
ausblenden Quelltext
1:
2:
TXT.Insert(zaehler, '    <td><div align="center">' + IntToStr(tn) + '</div></td>'); 
         inc(zaehler);

im falle, daß es eine int variable ist