Search This Blog

Blog Archive

Tuesday, April 8, 2008

some HScript ! arc, argc

arg - looks really useful.

returns an argument - the one4 specified from a list of argts in a string

it fillows the format arg("stringline", float arg number - starting from 0)
arg("yellow world ",1) returns world
arg("yellow world ",0) returns yellow

argc (arg-count) returns a number of arguments
argc ("This string has eight words seperated by spaces") returns 8

argc ("Quoting `makes this one arg`") only returns 2 as `makes one arg` is only counted as one arg - because of the quotes.
Post a Comment

Follow by Email