Kbase P118960: "Invalid use of property" error from Visual Basic when getting Fields Object of a CProTempTable
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  9/22/2006 |
|
Status: Unverified
SYMPTOM(s):
Compile error from Visual Basic when getting Fields Object of a CProTempTable
Compile error:
invalid use of property
Using the ActiveX proxy from Visual Basic
The error also occurs when getting the Field object using the Item property of a Fields object
CAUSE:
The Set statement is missing.
The returned object by the Item property of a Fields object, or the Fields property of a CProTempTable needs to be set.
FIX:
Add the Set statement when invoking the Item property of a Fields object, or the Fields property of a CProTempTable needs to be set.
For example:
Dim ProTT As ProO4glActiveXLib.CProTempTable
Set ProTT = New CProTempTable
' Get an array of Field objects
Set flds = ProTT.Fields
For j = 1 To 14
Set fld(j) = flds.Item(j)
Next j