Autor Beitrag
raiha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 152



BeitragVerfasst: Fr 16.09.05 06:33 
Hi wenn ich in einer Proz. einen Integer Parameter mitgebe kann ich den in der Proz. verwenden. Nun würde ich den gerne in der Proz. verändern und dann im Hauptprogramm auf den veränderten Wert zugreifen.

Wie muss man sowas machen (war das nicht irgend sowas mit call by value oder so)?

Danke Rainer


Moderiert von user profile iconGausi: Topic aus VCL (Visual Component Library) verschoben am Fr 16.09.2005 um 09:00
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Fr 16.09.05 06:52 
mach ihn zum var parameter. also irgendwie sowas:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure MacheIrgendwas(var iMeinWert: integer);
begin
  [...]
end;



MrSaint

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems
raiha Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 152



BeitragVerfasst: Fr 16.09.05 07:28 
danke