sunita111698
asked on
New CallByName function in VB-6
I have a property Text(0) in one of my VC DLLs. When I try to assign the value to Text(0) property in VB-6 using CallByName method it gives me an error
'Object doesn't support this property or method'
Code is as follows.
dim po as PORESOURCELib.beResource
CallByName po, sPropname$, VbLet, aTstData(pst)
Where po is the object, sPropname$ contains the property name Text(0) and aTstData(pst) contains the value which I want to assign to that property.
Please tell me the reason why it's failing?
Does VB-6 support such property assignment?
'Object doesn't support this property or method'
Code is as follows.
dim po as PORESOURCELib.beResource
CallByName po, sPropname$, VbLet, aTstData(pst)
Where po is the object, sPropname$ contains the property name Text(0) and aTstData(pst) contains the value which I want to assign to that property.
Please tell me the reason why it's failing?
Does VB-6 support such property assignment?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER