Window parameters
- Posted by mike <michael at IGRIN.CO.NZ> Sep 29, 1998
- 435 views
Does anyone know how to get any Windows command line parameters? ie: the 'options' that might be entered after the name of the executable file in a Win95 shortcut. When I use command_line() it gives me a sequence of length 2, always. On another note here are some solutions for int using a trick noted on the maximum/minimum round.. There must be even faster examples for specialized routines like int(atom a) or int(sequence s) -- where s is one-dimensional -- simple but not the fastest function int(object a) return floor(a)*(a>0) -floor(-a)*(a<0) end function -- faster, more complex and lends itself to explicit error checking object temp temp=a function int_(object a) if atom(a) then if a<0 then return -floor(-a) else return floor(a) end if else for i=1 to length(a) do temp[i]=int_(a[i]) end for end if return temp end function Yours Truly Michael Palffy michael at igrin.co.nz