Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is this a COMATTRIB bug?

Status
Not open for further replies.

SteveDingle

Programmer
Jul 26, 2004
254
GB
Heya All,

Just checking that I'm not doing something wrong. If you put the following in a PRG, then try to compile it into a DLL you should recieve a "Must specific additional parms.." error.

Code:
DEFINE CLASS cusTest AS custom OLEPUBLIC
	FUNCTION Test
	PARAMETERS tcParm  as Character
	ENDFUNC
	DIMENSION test_COMATTRIB[5]
	test_COMATTRIB[ 1 ] = 0
	test_COMATTRIB[ 2 ] = ""
	test_COMATTRIB[ 3 ] = "test"
	test_COMATTRIB[ 4 ] = "Logical"
	test_COMATTRIB[ 5 ] = 1
ENDDEFINE
If I change the function header to the following, no error.

Code:
	FUNCTION Test( tcParm  )

Is this expected behaviour?

Toodles,
Steve Dingle
D&S Business Solutions Ltd
 
It's a while since I looked at this, but yeah, ISTR that you have to put the params in the heading to use the COMAttrib stuff.

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top