Search found 433 matches

by sefrojones
Sun Mar 15, 2015 12:42 am
Forum: Databases
Topic: In Search of the Elusive Middleware Example
Replies: 36
Views: 8617

Re: In Search of the Elusive Middleware Example

No problem at all. Is it working consistently for you now? As I said, it's a pretty simple script, it probably has some errors. I am not a pro, but I thought this would show that it is possible for LiveCode server to interact with a database without hard coding the database credentials into your app...
by sefrojones
Sat Mar 14, 2015 7:18 pm
Forum: Databases
Topic: In Search of the Elusive Middleware Example
Replies: 36
Views: 8617

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...
by sefrojones
Sun Mar 08, 2015 7:56 pm
Forum: Talking LiveCode
Topic: Using Little Arrows
Replies: 14
Views: 2627

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
by sefrojones
Wed Mar 04, 2015 9:07 pm
Forum: Talking LiveCode
Topic: Accessing property values
Replies: 2
Views: 769

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...
by sefrojones
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: 1274

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...
by sefrojones
Wed Mar 04, 2015 7:09 am
Forum: Bug Triage
Topic: Possible shell bug in 6.7 & 7.x
Replies: 4
Views: 1376

Re: Possible shell bug in 6.7 & 7.x

That threw an error for both shell commands, but the slight edit below got it working in 6.7 and up: put quote &"c:\program files\bitcoin\daemon\bitcoin-cli.exe"& quote into tCmd Any idea why my script would be working in previous versions, but not beyond 6.6.5? Would this be considered a bug, or is...
by sefrojones
Wed Mar 04, 2015 4:57 am
Forum: Bug Triage
Topic: Possible shell bug in 6.7 & 7.x
Replies: 4
Views: 1376

Re: Possible shell bug in 6.7 & 7.x

Been a while since I've had to deal with Windows, but is there any reason you need an embedded space, i.e., would this work? put shell("dumpprivkey" && newAddy) into newPrivKey Unfortunately that does not work either. I tried every variation I could think of to include the space, including the one ...
by sefrojones
Tue Mar 03, 2015 5:04 am
Forum: Bug Triage
Topic: Possible shell bug in 6.7 & 7.x
Replies: 4
Views: 1376

Possible shell bug in 6.7 & 7.x

Hi everyone. I am seeing a discrepancy in behavior of the shell function. I have not used the shell function for anything other than interacting with my bitcoin node, so it may be user error, but I don't think so. In LiveCode versions up to and including 6.6.5 in Windows 7, this code: on NewKeyPair ...
by sefrojones
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: 525

Re: Enter multiline text into a text box via script

try this:

Code: Select all

put "Line one of the text" & cr & "Line two of the text" & cr & "Line three" into field "bar"
CR = carriage return


HTH,

--Sefro

edit: As usual, Klaus was quickest on the draw. :)
by sefrojones
Mon Jan 19, 2015 7:10 pm
Forum: Off-Topic
Topic: LiveCode Community
Replies: 7
Views: 2536

Re: LiveCode Community

As far as I know GM=Stable. I believe that 7.0 build 10018 is LC 7.0 stable.

--sefro
by sefrojones
Mon Jan 19, 2015 6:45 pm
Forum: Off-Topic
Topic: LiveCode Community
Replies: 7
Views: 2536

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
by sefrojones
Wed Jan 14, 2015 7:15 pm
Forum: Databases
Topic: Database for one app
Replies: 11
Views: 2171

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
by sefrojones
Wed Jan 14, 2015 7:12 pm
Forum: Databases
Topic: Webservice.
Replies: 10
Views: 3918

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...
by sefrojones
Mon Jan 12, 2015 5:26 pm
Forum: Databases
Topic: connecting to mySQL
Replies: 10
Views: 2224

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 ...
by sefrojones
Sun Jan 11, 2015 5:14 pm
Forum: Creating Games
Topic: Card problem? deployment settings? Keys problem?
Replies: 6
Views: 2396

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

Go to advanced search