|
-
May 3rd, 2001, 07:54 PM
#1
Thread Starter
New Member
Split() not working
Hello,
I'm using VBScript to read an entry from Access using the following code:
dim ProdColor(100) As Variant
dim holdcolor
RS.MoveFirst
holdcolor = RS("Color")
ProdColor() = Split(holdcolor)
it returns:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
detail.asp, line 47
dim ProdColor(100) As Variant
-------------------^
I've browsed this forum, it appears I'm coding properly.
Any help?
thanks
AGB
-
May 4th, 2001, 02:24 AM
#2
Frenzied Member
2 amiss here:
dim ProdColor(100) As Variant <-- don't 'size' the array and don't declare 'As Variant'
This will do nicely!
dim ProdColor()
-
May 4th, 2001, 11:50 AM
#3
Frenzied Member
One more...
ProdColor() = Split(holdcolor)
should be
ProdColor = Split(holdcolor)
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
May 6th, 2001, 05:59 AM
#4
Thread Starter
New Member
Up & running
I'm up & running, thank you all.
AGB
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|