Re: I can't get this to output how I want
- From: "Matthias Jarling" <news@xxxxxxxxxxxxx>
- Date: Tue, 3 May 2005 18:17:17 +0200
Hi Steven,
"Steven Platt" <me@xxxxxxxxxxx> schrieb im Newsbeitrag
news:eGSOBa0TFHA.3620@xxxxxxxxxxxxxxxxxxxxxxx
> What is wrong with this thing? Maybe I am too used to PHP.
>
> Const EXAMPLE_BYTES = 32210195968
> Const BYTES_IN_MEG = 1048576
> Const MEGS_IN_GIG = 1024
>
> WScript.Echo EXAMPLE_BYTES & " is " & bytesToGigs( EXAMPLE_BYTES ) & " in
> gigs"
>
> Function bytesToGigs( someNumber )
> WScript.Echo (someNumber / BYTES_IN_MEG) / MEGS_IN_GIG
> End Function
>
Your function does not return a value but displays a message itself; that's
why u get two message boxes.
Function bytesToGigs( someNumber )
bytesToGigs = someNumber / BYTES_IN_MEG / MEGS_IN_GIG
End Function
.
- References:
- I can't get this to output how I want
- From: Steven Platt
- I can't get this to output how I want
- Prev by Date: Re: I can't get this to output how I want
- Next by Date: (running GetObject to remote winmgmts) while script is embedded in an HTML file
- Previous by thread: Re: I can't get this to output how I want
- Next by thread: Re: I can't get this to output how I want
- Index(es):
Loading