By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,661 Members | 781 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,661 IT Pros & Developers. It's quick & easy.

Script Control Issues

P: 56
Can anybody please help me or enlighten me why thes eline of codes isn't working?

a = "Dim dllname As HRMSSkills.SkillsManager"
Call ScriptControl1.ExecuteStatement(a)

It says, "Expected end of statement"

Thanks in advance.
May 14 '08 #1
Share this Question
Share on Google+
3 Replies


jeffstl
Expert 100+
P: 432
Can anybody please help me or enlighten me why thes eline of codes isn't working?

a = "Dim dllname As HRMSSkills.SkillsManager"
Call ScriptControl1.ExecuteStatement(a)

It says, "Expected end of statement"

Thanks in advance.
Just as you cannot have a break point on a DIM statement you also cannot use them in a script control like that.

You can only execute actual lines of code.
May 14 '08 #2

P: 56
Uhm, ok. Do you have any suggestion on how can i DIM during run time? I really need help. Thanks in advance.
May 15 '08 #3

jeffstl
Expert 100+
P: 432
Uhm, ok. Do you have any suggestion on how can i DIM during run time? I really need help. Thanks in advance.
You dim during run time with just a line like this

Dim dllname As HRMSSkills.SkillsManager

Under the Option explicit at the top of your code.
May 15 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.