Board index » delphi » Easy question: passing variables FROM a procedure
l...@worldaccess.nl
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
l...@worldaccess.nl
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Easy question: passing variables FROM a procedureHi there! (I hope I spelled the titel correctly) I have a problem. I have an array, which will contain graphic data. {Start program} Procedure Try(V: array of integer); begin; {Start actual program} I know in basic, you can SHARE a variable. I do not know how to do this is Can anyone help me? And could you mail the answer also to me? Jeroen van der Heide |
Albert Dorrepa
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Easy question: passing variables FROM a procedurelenk wrote in a message to All: > I have a problem. I have an array, which will contain graphic data. I Change it to: Type Var Procedure Try(Var Vt : V_Array); Begin; > I know in basic, you can SHARE a variable. I do not know how to do You can share it. If V is a global variable, you can. Procedure Try; Begin Groeten, -------------------------------------------------------------------- Newsgroups: wxs.os2 Leo Van.Zantvoort wrote in a message to All: AD> Zijn hier nog OS/2'ers aanwezig? Ik begrijp ook niet waarom men zo klaagt. Nooit in gesprek. Mail en News servers draaien prima... > alleen ff kijken of ISDN zostraks met OS/2 aan de gang te krijgen Vast wel. Er is zelfs een speciale dialer voor. Staat wel ergens op het bbs. Groeten, -------------------------------------------------------------------- Newsgroups: wxs.os2 Sebastiaan Ubink wrote in a message to All: > Yep. Ik heb alleen niet zoveel te melden want alles werkt okay Ik krijg Windows internet software nog niet aan de gang onder WinOs/2. Groeten, -------------------------------------------------------------------- |
Dr John Stockto
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Easy question: passing variables FROM a procedureIn article <N.020497.190018.81@ISDN> of Tue, 4 Feb 1997 18:00:18 in Quotecomp.lang.pascal.borland, l...@worldaccess.nl wrote: ^^^ That will help, but will I think not give what you want. type A4 = array [1..4] of integer ; Web URL: http://www.merlyn.demon.co.uk/pascal.htm#ProcPars may help |
Daniel Mantion
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Easy question: passing variables FROM a procedureOn Tue, 4 Feb 1997 l...@worldaccess.nl wrote: Quote> Hi there! (I hope I spelled the titel correctly) procedure try(var v:array of integer); Daniel Mantione |
Remco Vieto
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Easy question: passing variables FROM a procedureQuotel...@worldaccess.nl wrote: variable passed to a procedure in such a way that caller can use the modifications), you have to declare the formal parameter as a VAR parameter, in your case: PROCEDURE Try( VAR V : ARRAY OF Integer); The keyword VAR in this declaration results in the passing of a pointer So, the use of 'VAR' in a procedure declaration has to effects (related): Veel succes, Remco -- |
1. passing variables to an asm procedure in fpk
2. Passing variable object types to procedures/functions
3. Passing Stored Procedure variables in Delphi 5.0
4. Question on passing pointer to procedure - question.zip (0/1)
5. Question on passing pointer to procedure - question.zip (0/1)
6. Passing methods of objects as variables + Question
8. Easy Questions, Easy Answers...
9. passing procedures as arguments for another procedure in Turbo pascal
10. passing procedures as arguments for another procedure in Turbo pascal