Search found 79 matches

by A1Qicks
Mon Oct 22, 2018 10:04 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Code Tidiness
Replies: 17
Views: 1784

Re: Code Tidiness

I figure no sense cluttering up the board with multiple threads when I can just rename. This one's just a general question really - apart from my own sanity, how important is it to keep code tidy? By tidy I specifically mean using elegant solutions and keeping handlers in the card where possible rat...
by A1Qicks
Tue Oct 16, 2018 7:29 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Code Tidiness
Replies: 17
Views: 1784

Re: Interacting with Groups

Thanks a lot Bernd! There are a few cleanups you've made that give me new info to work with - the templateField section is also going to be really helpful!
by A1Qicks
Mon Oct 15, 2018 9:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Code Tidiness
Replies: 17
Views: 1784

Re: Interacting with Groups

OK, so here's my trouble. The actual group code works fine. So if I target LineGroup1, there is no issue in moving it. Moves fine. The difficulty comes in targeting other LineGroups. So, what the code does currently, is on the press of a button, it spawns a set of new fields (it currently does each ...
by A1Qicks
Mon Oct 15, 2018 12:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Code Tidiness
Replies: 17
Views: 1784

Re: Interacting with Groups

Thanks guys! I'll have a play around with these when I'm at home later.
by A1Qicks
Mon Oct 15, 2018 9:27 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Code Tidiness
Replies: 17
Views: 1784

Re: Interacting with Groups

Thanks, that's really helpful!

Have you got any suggestions on the group problem? I can't see why it wouldn't work. I did wonder if it's because it's moving the "group" without moving the objects in the group, but I can't see why it would do that and it doesn't look like it's doing it anyway.
by A1Qicks
Mon Oct 15, 2018 7:46 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Code Tidiness
Replies: 17
Views: 1784

Re: Interacting with Groups

If you just change the top the group will move down/up That's what I'm trying to do! But with my code above, it's not currently doing anything. The group isn't moving. Checking in browser shows me the group exists, but nothing happens when I run anything to do with the group, e.g. set the textsize ...
by A1Qicks
Sun Oct 14, 2018 6:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Code Tidiness
Replies: 17
Views: 1784

Code Tidiness

I'm trying to set up an ordering system. So far I have a button which adds field lines to the card, with each new one appearing just below the last one, and a button which removes the last one added from the list. When new lines appear, it groups all fields and gives them the name LineGroupX, where ...
by A1Qicks
Sat Feb 27, 2016 5:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Current Card
Replies: 2
Views: 372

Re: Current Card

Perfect. Thanks!
by A1Qicks
Sat Feb 27, 2016 4:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Current Card
Replies: 2
Views: 372

Current Card

Probably something simple in the dictionary - but if I knew where to look I'd already have the answer. If I have a script in the stack and I want it to act differently depending on what the current front card is, how do I do this? So a message comes in from a socket, and the stack reads the message,...
by A1Qicks
Fri Feb 12, 2016 2:07 pm
Forum: Databases
Topic: Basic MySQL Query
Replies: 5
Views: 1205

Re: Basic MySQL Query

Perfect. Works as desired. Thanks guys!
by A1Qicks
Fri Feb 12, 2016 2:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Serverless (P2P) chat application for local network
Replies: 2
Views: 723

Re: Serverless (P2P) chat application for local network

http://lessons.livecode.com/m/4071/l/12924-how-to-communicate-with-other-applications-using-sockets To expand on this, if you look at the code for a server, all it does is accept connections on a certain port. If you have each client do this, and then any time a client connects, it looks for another...
by A1Qicks
Mon Feb 08, 2016 2:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Hiding Socket Errors
Replies: 6
Views: 580

Re: Hiding Socket Errors

Fixed it with that and a bit of fiddling - thanks Klaus!
by A1Qicks
Sun Feb 07, 2016 8:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Hiding Socket Errors
Replies: 6
Views: 580

Re: Hiding Socket Errors

I put it in the card script.

But the error I want to change is that last - a problem finding the specified host. How do I alter that?
by A1Qicks
Sun Feb 07, 2016 6:35 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Hiding Socket Errors
Replies: 6
Views: 580

Re: Hiding Socket Errors

Doesn't seem to be working?

Code: Select all

on socketerror
   answer "Could not connect to the server. Check you have a working internet connection." with "OK"
end socketerror
Still gives me the default error code.
by A1Qicks
Sun Feb 07, 2016 3:54 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Hiding Socket Errors
Replies: 6
Views: 580

Hiding Socket Errors

Simple enough idea - connect to server, read from socket: open socket field "host" & ":1987" with message "chatConnected" If the server can't be reached, you get an error back instead. "Error 10061 on Socket" maybe. However, since this answer isn't built into the code, there's no clear way of adjust...

Go to advanced search