> Can you tell me to pass "nothing" to a function/proc that waits for an Var 
> argument ?
> Let's take the System
>    procedure Val(S;var V;var Code:Integer);
> Val(S, 0, 0);  OR  Val(S, Null, Null);     doesnt' work of course
>var
>   S: String;
>   myV : Integer;
>   myCode : Integer;
>begin
>   Val(S, myV, myCode);     works fine until I don't use the 2 var after so 
> it makes a warning (hint) i don't want

> Proc "Val" is juste an example...

Bad example because Val() is a special case ! Val() function work with some 
help from the compiler, this way you can pass either an integer or a 
floating point variable as the second argument.

There is nothing in Delphi which is "nothing" for an integer or a floating 
point value.
The closest is using variant instead of simple data types. A variant can be 
empty.
You can also use a pointer.

> How may I delete the warning/hint if the myV or myCode argument are never
> used after so i don't need a to declare a new var ?
> (even i know that the arguments are to be used, of course :-)  )

Sorry but I don't clearly understand what you intend to do.
Could you explain again, and give a complete example, even if it doesn't 
compile because of syntax error.

--
[EMAIL PROTECTED]
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to