Results 1 to 10 of 10

Thread: Question about lnet :)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Yes OnRe is a procedure so it doesn't return any value. Here is the code for FCon.OnReceive:

    property OnReceive: TLSocketEvent read FOnReceive write FOnReceive;

    I'm not sure how properties work so that's probably why I'm stumped on this


    When I compile with the code being:

    FCon.OnReceive := @OnRe;

    It says: Variable identifier expected.

    I really appreciate your help Code_Glitch, I hope we can sort this issue out because I'm this ->||<- close to having multiplayer for my game

  2. #2
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    I read this page: http://wiki.freepascal.org/User_Chan...regular_fields

    My understanding from it is that the 'property' maps onto a variable of some type and that it can be used as a sort of splitter. Ie: The property can be read and it will read from a value and the property can be written to in which case it can write to another value. I only had a skim so I'm not sure how it could apply. I'll think it over and hopefully come up with a solution later this evening - hungry as ever so unable to work on it much right now
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  3. #3

  4. #4
    Fixed it just forgot to do FCon.Callaction;

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •