fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Xs$Return

Xs$Return 6 months 1 week ago #1

  • Karl-Heinz
  • Karl-Heinz's Avatar Topic Author
  • Offline
  • Posts: 189
i just recompiled a small VOGUI-App that uses Vulcan dlls.

"warning XS0219: The variable 'Xs$Return' is assigned but its value is never used"

what does 'Xs$Return' mean ?

regards
Karl-Heinz

Please Log in or Create an account to join the conversation.

Xs$Return 6 months 1 week ago #2

  • wriedmann
  • wriedmann's Avatar
  • Offline
  • Posts: 1404
  • Karma: 6
Hi Karl-Heinz,

this message with Beta 5 should be gone.

Xs$Return is a compiler generated variable in assign methods, and this warning show up if your assign method returns something.

Wolfgang

P.S. I had the same question, therefore I can answer this time
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

Xs$Return 6 months 1 week ago #3

  • Karl-Heinz
  • Karl-Heinz's Avatar Topic Author
  • Offline
  • Posts: 189
Hi Wolfgang

yes, it´s an typical VO assign.

> this message with Beta 5 should be gone

do you mean both builds: fox and public ?

at least the 2.0.0.5 public build throws this warning.


regards
Karl-Heinz

Please Log in or Create an account to join the conversation.

Xs$Return 6 months 1 week ago #4

  • wriedmann
  • wriedmann's Avatar
  • Offline
  • Posts: 1404
  • Karma: 6
Hi Karl-Heinz,

accordingly to my ticket it should be ok, but I have just checked and my FoX build shows it also.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

Xs$Return 6 months 1 week ago #5

Karl Heinz, Wolfgang,

Do you see the problem with the following code ?
CLASS Foo 
	PROTECT _bar AS STRING
ACCESS Bar AS STRING      
	RETURN _bar
ASSIGN Bar(cBar AS STRING) AS STRING      
	RETURN _bar := cBar
END CLASS

I only see warning 9032 (This entity type cannot return a value. Return value ignored.). The error about Xs$return should no longer be visible.

Robert
XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

Xs$Return 6 months 1 week ago #6

  • wriedmann
  • wriedmann's Avatar
  • Offline
  • Posts: 1404
  • Karma: 6
Hi Robert,

I see it wit the following code:
assign ChangeHeaderDragDropCursor ( lSet as logic ) as logic pascal 

	_lChangeHeaderDragDropCursor := lSet
	
	return _lChangeHeaderDragDropCursor

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

Xs$Return 6 months 1 week ago #7

Ok,
Found and fixed.
Robert
XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

Xs$Return 6 months 1 week ago #8

  • wriedmann
  • wriedmann's Avatar
  • Offline
  • Posts: 1404
  • Karma: 6
Thank you very much!

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

  • Page:
  • 1