al3x41044
-
Total Posts
:
1
- Scores: 0
-
Reward points
:
0
- Joined: 7/4/2010
-
Status: offline
|
My code isn't finding "Dim"
Sunday, July 04, 2010 8:17 AM
( permalink)
I have some code that requires putting data into a "Dim". My code is this: Dim mg mg = Split(Application.Contents("news"),"•") For Each rt In mg [color=#4b0082 font="courier new"] Response.Write(rt & "<br />") [color=#0000ff font="courier new"]Next but when you view the page, an error message appears saying: "Object Expected: 'mg'" I'm sure it's embarassingly simple, but i can't figure out why it can't find "mg"... can anyone help?
<message edited by al3x41044 on Sunday, July 04, 2010 8:48 AM>
|
|
|
|
ebgreen
-
Total Posts
:
8227
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: offline
|
Re:My code isn't finding "Dim"
Tuesday, July 06, 2010 1:46 AM
( permalink)
Dim simply declares the variable to the interpreter. The problem is this statement: mg = Split(Application.Contents("news"),"•") I have no idea exactly what you are trying to split (we would need more code to tell) but whatever it is isn't working.
|
|
|
|