XS2ADO 2.17.03

This forum is the place to discuss issues related to ReportPro, Xs2Ado, Vo2Ado, bBrowser and other 3rd party products
Post Reply
Frank Müßner
Posts: 280
Joined: Sat Dec 12, 2015 2:22 pm
Location: Germany

XS2ADO 2.17.03

Post by Frank Müßner »

Hello,
I'm trying to switch to the current X# version and work my way through the new bugs and
Hints. I was able to clarify most of it so far, but I don't have a solution for it

Code: Select all

Parameter 1 needs a(n) 'Ref' modifier. This modifier was automatically added.
gefunden.

Code: Select all

METHOD Save(cFile, nType)
	Default(nType, adPersistADTG)
	SELF:oRS:Save(cFile, nType)
	SELF:Notify(NOTIFYFILECHANGE)
	RETURN NIL

I change to:

Code: Select all

METHOD Save(cFile, nType)
	Default(@nType, adPersistADTG)
	SELF:oRS:Save(cFile, nType)
	SELF:Notify(NOTIFYFILECHANGE)
	RETURN NIL

Code: Select all

XS1503	Argument 1: cannot convert from 'usual*' to 'usual'	
XS0208	Cannot take the address of, get the size of, or declare a pointer to a managed type ('usual')
I have 7 spots where I couldn't solve it.
What am I thinking wrong? Is there an XS2ADO for the current X#?


Greetings Frank
Frank Müßner
Posts: 280
Joined: Sat Dec 12, 2015 2:22 pm
Location: Germany

Re: XS2ADO 2.17.03

Post by Frank Müßner »

Sorry, my mistake :-(

Code: Select all

METHOD Save(cFile, nType)
	Default(ref nType, adPersistADTG)
	SELF:oRS:Save(cFile, nType)
	SELF:Notify(NOTIFYFILECHANGE)
	RETURN NIL
This works.
User avatar
robert
Posts: 4540
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: XS2ADO 2.17.03

Post by robert »

Frank,
For Default(@nType...) to work you need to enable the compiler option vo7 (compatible casts and conversion).
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply