Hi Cédric,

var
   S: String;
   myV : Integer; 
   myCode : Integer;

 >  Val(S, myV, myCode); works fine until I don't use the 2 var after so 
it makes a warning

Does it? to me you are just passing uninitialized variables....they 
could be anything!

I think you need to re-think why you need  to pass nothing or decide 
what values represent "nothing".

also your syntax seems a little odd to me :(

Regards,

Tim


Cédric Joubert wrote:
> hi,
>
> I'm new on the list... happy to see that there is such a list...
>
> 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
>
>
> 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 :-)  )
>
> Proc "Val" is juste an example... 
>
> Cédric
> __________________________________________________
> Delphi-Talk mailing list -> [email protected]
> http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.176 / Virus Database: 270.9.11/1820 - Release Date: 11/29/2008 
> 6:52 PM
>
>   


-- 
Tim Benham
Guildford Computers
Tel: 01483 458468
Mobile: 07703 564775

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

Reply via email to