Public variable declaration @@Public nFrom := 00

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
JKCanada604
Posts: 49
Joined: Wed Aug 11, 2021 11:03 am

Public variable declaration @@Public nFrom := 00

Post by JKCanada604 »

Good day to you all once again!

VO Code:
Method InitPublics Class APP

Publ cpUserID := ""
Public nFrom := 00

X# Code
Method InitPublics
Publ cpUserID := ""
@@Public nFrom := 00

Compiler goes weird when assigning the value into nFrom

Error XS9002 Parser: unexpected input 'nFrom' IslandTug Main App - 1583-15 C:XporterOutputIslandTug Main App - 1583-15__App Start.prg 32


Seems like assigning a literal string value works - assigning anything else does not..
Any ideas?

As always, thank you, keep well and,

Cheers, JK
User avatar
robert
Posts: 4529
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Public variable declaration @@Public nFrom := 00

Post by robert »

John,
I am not sure why the @@ characters were added but they do not belong there.
I would also recommend to use the complete keyword and not the 4 letter abbreviation.

Code: Select all

Publ cpUserID := ""
@@Public nFrom := 00
should be

Code: Select all

Public cpUserID := ""
Public nFrom := 00
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
JKCanada604
Posts: 49
Joined: Wed Aug 11, 2021 11:03 am

Public variable declaration @@Public nFrom := 00

Post by JKCanada604 »

Thank you!

Going for it!

Cheers, JK
Post Reply