Welcome, Guest
Username: Password: Remember me
Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET
  • Page:
  • 1

TOPIC:

Public variable declaration @@Public nFrom := 00 23 Sep 2021 02:57 #19669

  • JKCanada604
  • JKCanada604's Avatar
  • Topic Author


  • Posts: 48
  • 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:\XporterOutput\IslandTug 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

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

    Public variable declaration @@Public nFrom := 00 23 Sep 2021 06:56 #19671

    • robert
    • robert's Avatar


  • Posts: 3595
  • 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.
    Publ cpUserID := ""
    @@Public nFrom := 00

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

    Robert
    XSharp Development Team
    The Netherlands

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

    Public variable declaration @@Public nFrom := 00 23 Sep 2021 06:58 #19672

    • JKCanada604
    • JKCanada604's Avatar
    • Topic Author


  • Posts: 48
  • Thank you!

    Going for it!

    Cheers, JK

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

    • Page:
    • 1