It sounds like perhaps you want

let mutable command = null

and then

command <- commandLine.Split(...)

Note that "=" is a boolean equality test operator, whereas "<-" is a destructive assignment operator for mutables.

By on 11/1/2009 1:29 PM ()

when should I exactly use with " <- " ?

after I did it I have an error:

no overloads much to method split..

what I should do? the first argument need to be - char[]

and I sent to Split the variable -split

which defined :

let split=(' ')

...

By on 11/2/2009 8:12 AM ()

"char[]" means array of characters.

Array literals in F# use these brackets: [| |]

So you want to pass

[| ' ' |]

as the argument.

By on 11/2/2009 10:10 AM ()

thank you very much....it was very help full

By on 11/4/2009 4:57 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper