Getting error on example internet chat program

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
Lagi Pittas
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 349
Joined: Mon Jun 10, 2013 1:32 pm

Getting error on example internet chat program

Post by Lagi Pittas » Wed Jun 21, 2017 4:50 pm

Hi

I was about to use sockets for an application and decided to at least try the demo stack that you can downloadby clicking on the resources button and then clicking sample projects / internet chat

This btw is in version 6.7.11.

The program works except when you disconnect the chat client from the chat server it calls the SocketClosed command.

within there this line

Code: Select all

delete lChatterArray[s]
gives an error

I printed out s and that has for example "127.0.0.1:976" which is the one and only key in the lChatterArray

At first I was stumped but knew I'd used the facility before then I remembered (it stumped me the first time) that you have to put the word local (or global) in front of the array variable

Code: Select all

delete local lChatterArray[s]
to make it work says that line was added and never tested - but how come it's got through the net for so long?


Regards Lagi

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”