Search found 421 matches
- Sat Mar 14, 2015 7:18 pm
- Forum: Databases
- Topic: In Search of the Elusive Middleware Example
- Replies: 36
- Views: 29562
Re: In Search of the Elusive Middleware Example
Here is a VERY simple example of using a LiveCode server script to insert information into a database. This script assumes a table named "sampledata" with three columns: name,age, and email. Once you have created a MySQL database, and added a table named "sampledata" with those collumns, save this s...
- Sun Mar 08, 2015 7:56 pm
- Forum: Talking LiveCode
- Topic: Using Little Arrows
- Replies: 14
- Views: 8672
Re: Using Little Arrows
Do you mean the arrow keys? If so, check out the "arrowkey" message in the dictionary. on arrowkey pKey switch pKey case "up" --do up stuff break case "down" --do down stuff break case "left" --do left stuff break case "right" --do right stuff break end switch end arrowkey --Sefro
- Wed Mar 04, 2015 9:07 pm
- Forum: Talking LiveCode
- Topic: Accessing property values
- Replies: 2
- Views: 2348
Accessing property values
Hi all, For as long as I've been using LiveCode, when checking a property of an object in an if statement, Checking the visibility of an image for example, I would do it something like this: If the visible of image "MyImage" is true then dostuff else dootherstuff end if This is relatively easy to re...
- Wed Mar 04, 2015 7:27 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: I'm not understanding the Exists function
- Replies: 7
- Views: 4605
Re: I'm not understanding the Exists function
try this: if exists(img "ncImg" of card "NonC")then delete img "ncImg" end if --Sefro EDIT: As far as I understand it, the exists() function will return true or false, the engine has no idea what to do with this information. In addition to the first example, you could also: put exists(img "ncImg" of...
- Wed Jan 28, 2015 5:48 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Enter multiline text into a text box via script
- Replies: 2
- Views: 2119
Re: Enter multiline text into a text box via script
try this:
CR = carriage return
HTH,
--Sefro
edit: As usual, Klaus was quickest on the draw.
Code: Select all
put "Line one of the text" & cr & "Line two of the text" & cr & "Line three" into field "bar"
HTH,
--Sefro
edit: As usual, Klaus was quickest on the draw.
- Mon Jan 19, 2015 7:10 pm
- Forum: Off-Topic
- Topic: LiveCode Community
- Replies: 7
- Views: 5966
Re: LiveCode Community
As far as I know GM=Stable. I believe that 7.0 build 10018 is LC 7.0 stable.
--sefro
--sefro
- Mon Jan 19, 2015 6:45 pm
- Forum: Off-Topic
- Topic: LiveCode Community
- Replies: 7
- Views: 5966
Re: LiveCode Community
The differences between the versions and download links to all current and past versions of LiveCode can be found here:
http://downloads.livecode.com/livecode/
--Sefro
http://downloads.livecode.com/livecode/
--Sefro
- Wed Jan 14, 2015 7:15 pm
- Forum: Databases
- Topic: Database for one app
- Replies: 11
- Views: 7123
Re: Database for one app
You will probably want to go with MySQL, and probably won't need specialfolderpath. See my reply to this thread:
http://forums.livecode.com/viewtopic.php?f=12&t=22633
--Sefro
http://forums.livecode.com/viewtopic.php?f=12&t=22633
--Sefro
- Wed Jan 14, 2015 7:12 pm
- Forum: Databases
- Topic: Webservice.
- Replies: 10
- Views: 10796
Re: Webservice.
For #1: The first thing you will need is a server with LiveCode Server installed. I used a fresh ubuntu 14.04 installation on digital ocean as described in this link: http://activethought.net/setting-livecode-server/ * If your server is running a different OS see the server guide linked below for in...
- Mon Jan 12, 2015 5:26 pm
- Forum: Databases
- Topic: connecting to mySQL
- Replies: 10
- Views: 7003
Re: connecting to mySQL
Hi Malin, Welcome to the forums. I am not an expert in webservices or databases, but I recently set up a server script to handle fetching high score information for my app, so as not to store my credentials inside the app. The first thing you will need is LiveCode server installed on your server. I ...
- Sun Jan 11, 2015 5:14 pm
- Forum: Games
- Topic: Card problem? deployment settings? Keys problem?
- Replies: 6
- Views: 6424
Re: Card problem? deployment settings? Keys problem?
Wiz,
Have a look at pendingmessages() in the dictionary,and see this thread for some Mark's solution for quitting your application:
http://forums.livecode.com/viewtopic.php?t=1026
--Sefro
Have a look at pendingmessages() in the dictionary,and see this thread for some Mark's solution for quitting your application:
http://forums.livecode.com/viewtopic.php?t=1026
--Sefro
- Mon Dec 15, 2014 7:09 pm
- Forum: Talking LiveCode
- Topic: Bad Combo?
- Replies: 6
- Views: 3866
Re: Bad Combo?
This stack works as expected in ubuntu 14.04 & LiveCode 6.7
- Mon Dec 15, 2014 5:45 am
- Forum: Android Deployment
- Topic: Saving a data stack in android
- Replies: 23
- Views: 13563
Re: Saving a data stack in android
Keith, Welcome! Stacks included in the "Copy Files" pane will end up in specialFolderPath("engine"), you will need to copy it to specialFolderPath("documents") before you will be able to save them. This lesson isn't specifically about saving stacks, but should get you started on your way: http://les...
- Sun Dec 14, 2014 3:13 pm
- Forum: Games
- Topic: LiveCode Game Jam
- Replies: 33
- Views: 31305
Re: LiveCode Game Jam
I'd like to thank everyone who participated in The Very First LiveCode Game Jam! The votes have been cast and tallied, and the results are in. The top 3 rated games in this event were: 1. Space Shooter by Sefrojones 2. Tower Jump 2 by DarkoLandBox 3. GeographyQuest by AndyB These results can be seen...
- Sat Dec 13, 2014 9:54 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Simple: Play audio file [SOLVED]
- Replies: 10
- Views: 6766
Re: Simple: Play audio file (help)
The play command doesn't recognize mp3, you will have to use a player object to play it as far as I know....
edit:
On android, I believe the path to your included sound files will be specialfolderpath("engine")
edit:
On android, I believe the path to your included sound files will be specialfolderpath("engine")