Tim at Guildford wrote:
> 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!

That is not the case for the string variable. It will be an empty 
string, which is perfectly safe to pass to Val. The other two parameters 
are output parameters and are not expected to have valid values on input.

Besides that, I think it was to be expected that the variables have 
values, but that their values are irrelevant to the question. He was 
merely showing the declarations so that we knew the types.

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

Reply via email to