xsharp.eu • Public variable declaration @@Public nFrom := 00
Page 1 of 1

Public variable declaration @@Public nFrom := 00

Posted: Thu Sep 23, 2021 12:57 am
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

Public variable declaration @@Public nFrom := 00

Posted: Thu Sep 23, 2021 4:56 am
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

Public variable declaration @@Public nFrom := 00

Posted: Thu Sep 23, 2021 4:58 am
by JKCanada604
Thank you!

Going for it!

Cheers, JK