[thelist] [SPAM] classic asp SPLIT()
Peter Brunone (EasyListBox.com)
peter at easylistbox.com
Fri Jul 28 13:14:53 CDT 2006
Anthony's right; it's talking about the outer parentheses, not the inner parentheses. If you don't assign the result to something, it assumes you're calling a Sub rather than a Function.
Peter
From: "Anthony Baratta" anthony at baratta.com
Obvious question first: Where is your array to feed the results into?
e.g.
aryResult = Split(datastring,chr(255))
-----Original message-----
From: Brian Cummiskey Brian at hondaswap.com
> Hi All,
>
> I'm familiar with using the split function, but i've never had to do it
> on an ascii character before.
>
> I am given a datastring that looks something like this:
>
> Code:
>
> lid123456vid7890
>
>
>
> What i thought would be a simple,
>
> Code:
>
> Split(datastring,chr(255))
>
>
>
> throws me an error:
>
> Quote:
> Microsoft VBScript compilation error '800a0414'
>
> Cannot use parentheses when calling a Sub
>
> page.asp, line 57
>
> Split(datastring,chr(255))
>
>
>
> the character is asci code chr(255). If I cannot use parenthesis in
> there, how am I to split this off?
>
> Any suggestions?
>
> Thanks
More information about the thelist
mailing list