[Tutor] sys.argv?

Simon Brunning SBrunning@trisystems.co.uk
Mon, 27 Nov 2000 16:00:29 -0000


> From:	Scott Ralph Comboni [SMTP:scott@zenplex.com]
> my problem is when I'm using sys.argv to pass in a number it converts to a
> 
> string..  Is there a way around this using sys.argv or do I have to use 
> string.atoi(n) to convert it back to int?
 
You aren't really passing it a number - you are passing it a string which
happens to contain a number. So yes, basically, you are going to have to
convert  to a number using atio or some such.

Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning@trisystems.co.uk





-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.