al4629740
asked on
function or interface marked as restricted or the function uses an automation type not supported in visual basic
I get the follow error:
"function or interface marked as restricted or the function uses an automation type not supported in visual basic"
when running this code:
For i = 1 To 14
StateWide.Controls("Check" & i) = rec.Fields(("StateWideChec k" & i))
Next i
Why doesn't Controls("Check" & i) work in vb6?
"function or interface marked as restricted or the function uses an automation type not supported in visual basic"
when running this code:
For i = 1 To 14
StateWide.Controls("Check"
Next i
Why doesn't Controls("Check" & i) work in vb6?
ASKER
It is a form
Maybe try explicitly stating the properties you are wishing to call the setter/getter for rather than using the default property?
--
Chris
StateWide.Controls("Check" & i).Text = rec.Fields(("StateWideCheck" & i)).Value
--
Chris
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
One of the following scenarios may be true:
1) StateWide doesn't have a property called "Controls"
2) the "Controls" property of object StateWide does not support string as in "check"
3) try StateWide.Controls(i) instead