xsharp.eu • XS2ADO 2.17.03
Page 1 of 1

XS2ADO 2.17.03

Posted: Fri Sep 01, 2023 4:35 pm
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

Re: XS2ADO 2.17.03

Posted: Fri Sep 01, 2023 6:05 pm
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.

Re: XS2ADO 2.17.03

Posted: Fri Sep 01, 2023 8:12 pm
by robert
Frank,
For Default(@nType...) to work you need to enable the compiler option vo7 (compatible casts and conversion).
Robert