Questions tagged [livecode]

The LiveCode programming language (formerly the "Revolution" programming language) is a cross-platform rapid application development language.

LiveCode allows developers to create applications that run in any of the supported environments, using a compile-free workflow. The scripting language is based on the Hypertalk language originally developed by Apple for Hypercard. Since version 6 an open source version (GPL) is available.

644 questions
2
votes
2 answers

Create a new color from two RGB values

Is it possible to combine two RGB values to create another color in livecode? Example: First color: (0,0,255) //BLUE Second color: (255,0,0) //RED In this case, I would like to store the result of the two colors into a variable. Let's say, put "0,…
JunM
  • 7,040
  • 7
  • 37
  • 58
2
votes
2 answers

Test to see if a file already exists

I have an iOS game, I am trying to save settings (which are generally stored within an array) to file. currently,I have the file opened and read in the openStack handler; I have the file written in the shutdown handler... but, in the openStack…
MadPink
  • 294
  • 1
  • 10
2
votes
1 answer

Livecode command keystrokes

Is there a way to drag a stack window while developing on the MAC OS other than at the bar at the top of the window? If I can't see the top bar and try to drag somewhere in the middle of the stack window, it activates that group, object, etc. The…
2
votes
2 answers

200 error: missing username when logging in using Parse and LiveCode

I am trying to login to Parse through LiveCode but keep getting this error: {"code":200,"error":"missing username"} I have been able to create users, even validate user's email (through the REST API in Parse) but when I try to login I keep getting…
bob
  • 21
  • 3
2
votes
1 answer

How to fix variable line height in data grid with SQLite database when using callbacks

I'm working with the data grid with SQLite database using a feature called callbacks as described in this lesson: displaying-large-amounts-of-data I'd like to make some changes to the sample stack included in that lesson (you can download the stack…
mark
  • 222
  • 1
  • 9
2
votes
1 answer

Show an image on web page using livecode

I just created a page to show an image using livecode. I created an the image path first, with this code: put "localhost/windy.png" into iconPath And then, show the image with this code: put url("binfile:" & iconPath) But, gives blank page.. Need…
Lupita Noyra
  • 221
  • 2
  • 3
  • 12
2
votes
1 answer

Possible is to download the file vdo from url to iPad? - Livecode

I want to create player on mobile. Possible is to download the file vdo from url to iPad and set filename of player to file it for play vdo ?
KemChat
  • 151
  • 3
  • 11
2
votes
1 answer

Trying to "build" a query using LiveCode to get docs from Mongo

I'm continuing practicing with LiveCode and MongoDB. I made a stack with a button with a script connecting to my local MongoDB instance. This script "builds" a query. When my code produces this: C:\mongodb\bin\mongo.exe localhost:27017/BatGar --eval…
Javier
  • 75
  • 5
2
votes
1 answer

Using MergJSON to move data from a data grid to a Mongo db

After I successfully implemented the retrieval of documents from my local mongo server, I began trying the opposite, sending data stored in a data grid (DG) to the server, so I created a card with: a DG (DG_02) with two columns, _id and Nombre, a…
Javier
  • 75
  • 5
2
votes
1 answer

Maps in livecode

I want to display maps in a window of livecode. The maps I am thinking are from google maps. If possile I like to restrict the area that is covered by the map. I am trying this from a long time. Can some one please help me out in this…
abMyn
  • 31
  • 1
  • 7
2
votes
1 answer

Mongo LiveCode MergJSON can't decode documents

Back with more questions regarding Mongo and LiveCode, this time with a question specific to MergJSON. This is the situation: In previous posts I asked some questions on how to connect and get a result from a query, questions that where…
Javier
  • 75
  • 5
2
votes
2 answers

How do you dynamically validate field input in LiveCode?

I have a form in LiveCode that gathers customer details. One of those fields is for their phone number. How do I stop them typing anything other than valid phone number characters?
2
votes
2 answers

How do I drag and drop items within a LiveCode application?

I am building a LiveCode stack and want to add drag drop into my app. In particular, I would like to be able to click on one image and drag it to a second location. I would also like to provide feedback to the user that they are in fact dragging. A…
2
votes
1 answer

toggle 1 line - complete line view + view one complete line in separate card

I'd like to toggle the display of the data grid between a 1-line view, complete line view with all the lines listed and a view of one complete line in a separate card. The thing that has to be fixed is following: Viewing of one complete/full line in…
mark
  • 222
  • 1
  • 9
2
votes
2 answers

why check box does not move when stack is resized?

I made a stack that displays lines of text that change their width when the stack is resized. The Category columns is changing its position on resizing but the check box does not. What am I missing in the code? What changes have to be made? See the…
mark
  • 222
  • 1
  • 9