Search found 280 matches

by dave_probertGA6e24
Wed Sep 18, 2013 6:41 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: so many problems...
Replies: 23
Views: 14205

Re: so many problems...

Hi Simon, That could be true, but even if it wasn't set to a value the 'else' state would be used. That has a repeat which would not work anyway as an animation. Think of animation being a combination of both movement and timing. Repeat loops with no delays will not produce animation - only the end ...
by dave_probertGA6e24
Wed Sep 18, 2013 6:10 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: so many problems...
Replies: 23
Views: 14205

Re: so many problems...

Hi, Don't have time to answer all of your questions, but I can point you in a direction. Regarding 2a. When you click the jump button you then call playerjump. This call happens immediately and the computer will then do all that is in the playerjump function before returning control to the user. The...
by dave_probertGA6e24
Thu Sep 12, 2013 8:51 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Using an IF statement
Replies: 8
Views: 5295

Re: Using an IF statement

Hi,

Time to do some debugging...

Code: Select all

on mouseUp
  put fld "fldEmail" into xxxxx
  put "FLD EMAIL:" && xxxxxx into msg
  if xxxxx is "fldEmail" then
...
in the messagebox you should see what it thinks is in fld "fldEmail".

It'll probably help you a bit.

Cheers,
Dave
by dave_probertGA6e24
Thu Sep 12, 2013 6:09 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Using an IF statement
Replies: 8
Views: 5295

Re: Using an IF statement

Hi,

Try this and see what happens:

Code: Select all

on mouseUp
  if fld "fldEmail" is "fldEmail" then
    go to stack url "http://domain/1.livecode"
  else
    go to stack url "http://domain/5.livecode"
  end if
end mouseUp
It might work - or not!
by dave_probertGA6e24
Wed Sep 11, 2013 6:04 am
Forum: Talking LiveCode
Topic: Pulling words from a database
Replies: 4
Views: 2930

Re: Pulling words from a database

Hi, A simple(ish) way might be to assign a 'matching percentage' to each word. Such that a certain number of characters must be correct to assume that it is the correct word. 'ibuprofen' could be correct as long as 6 out of the 8 characters are the same (ie. in the correct sequence overall) 'ibprofe...
by dave_probertGA6e24
Thu Sep 05, 2013 7:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Draw on an Image Area
Replies: 14
Views: 8146

Re: Draw on an Image Area

Hi all, I think gepponline is getting confused with 'points in a graphic' and 'pixels in an image'. Even though a graphic is an image in english terms, the programming context of them is different. gepponline, there is no command (that I know of) that will set a pixel in an image at runtime (current...
by dave_probertGA6e24
Tue Sep 03, 2013 5:28 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Noob Question On Selling iOS Apps
Replies: 6
Views: 4645

Re: Noob Question On Selling iOS Apps

Hi Andy, Welcome to Livecode :) First of all I can say that the first thing to do is get the hang of the Language and it's highlights and also it's drawbacks (yes there are some). To do this I would recommend using the free version (Community) until you feel confident in what you can (and can't) pro...
by dave_probertGA6e24
Wed Aug 28, 2013 10:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Matching multiple cases in a switch
Replies: 1
Views: 2253

Re: Matching multiple cases in a switch

Using the switch statement in the way of your example requires the 'case' parts to return true, and it's basically the same as the if option you presented. I would recommend using the switch based on a specific factor like this: switch the cColor of btn "btn1" case "blue" put "it's blue" into coltxt...
by dave_probertGA6e24
Wed Aug 28, 2013 2:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Graphic Rotating 5 Point Star - Solved
Replies: 5
Views: 3802

Re: Graphic Rotating 5 Point Star

Thankyou Bernd, That's a nice simple addition to it for the text. I didn't know that the textsize of a label could be changed for a graphic - cool. The only thing it would need too is this in the 'create' part in init: set the forecolor of it to 0,0,0 set the showName of it to true Cheers, Dave
by dave_probertGA6e24
Wed Aug 28, 2013 12:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Graphic Rotating 5 Point Star - Solved
Replies: 5
Views: 3802

Re: Graphic Rotating 5 Point Star

Hi David, The built in graphics tools at the moment don't have an easy way of making a star shape. But they are basically polygons with specific points set in their 'points' field - so the 'easy' way to do this is via some simple Maths. I have attached an example of a star drawing function and anima...
by dave_probertGA6e24
Wed Aug 28, 2013 8:04 am
Forum: Talking LiveCode
Topic: go to point in Handler
Replies: 9
Views: 5507

Re: go to point in Handler

Hi All, Basically Nakia is asking if there are 'GOTO' command options within Livecode language. ie. Goto labeledline, etc. Like in BASIC languages. (Hope that makes it more clear for those who are following) I don't know of any command myself, but I would suggest that if a GOTO is needed in the code...
by dave_probertGA6e24
Mon Aug 26, 2013 4:54 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to connect to local MySQL
Replies: 40
Views: 22316

Re: How to connect to local MySQL

Hi Michael,

Look back at an earlier post in this thread - regarding Quotes in Where part ;)

Cheers,
Dave
by dave_probertGA6e24
Mon Aug 26, 2013 4:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to connect to local MySQL
Replies: 40
Views: 22316

Re: How to connect to local MySQL

Michael, As Klaus said :) :) The variable needs to be outside the quotes of your string. You really need to take your time to get the hang of how to check for basic errors in your code. Use the: put "blah blah blah" & cr after msg type of line to sprinkle messages and info about your variables, etc ...
by dave_probertGA6e24
Mon Aug 26, 2013 9:03 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to connect to local MySQL
Replies: 40
Views: 22316

Re: How to connect to local MySQL

Hi Simon, I think it's more of a learning exercise anyway :) If the exercise is just to learn how to talk to a database then I would definitely agree that a simple SQLite DB is the way to go. Local SQLite (running on the iphone) would not give access for other users to common/shared data - which is ...
by dave_probertGA6e24
Mon Aug 26, 2013 6:52 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to connect to local MySQL
Replies: 40
Views: 22316

Re: How to connect to local MySQL

Hi Michael, There are a couple of things that are not too good with this code - one of them could simply be a mistyping error. put "SELECT * FROM" & tTableName & "WHERE Name=Admin" into tSQL I note the lack of spaces after the 'FROM' and before the 'WHERE' - this would result in the string containin...

Go to advanced search