Questions tagged [livecode]

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

livecode
Filter by
Sorted by
Tagged with
1 vote
1 answer
475 views

How to create an array/list?

I would like to put multiple food items into a metaphoric "basket" in LiveCode. I know in Python this is done like this: basket = ["orange", "apple", "tomato", "grapes"] How would this be done in ...
CoopDaddio's user avatar
1 vote
2 answers
408 views

How can I specify LiveCode's exit code?

I'm developing a wrapper around some LiveCode server-side scripts. Is there a way to exit a LiveCode script and specify an exit code? Right now, even unparseable code is given an exit code of 0. I'm ...
Ian Hunter's user avatar
  • 9,665
1 vote
2 answers
667 views

Place Text to Many Label Fields Using Loops and Arrays in Livecode

Using Livecode, I want to place the text "Me" to all ten label fields by using loops and array. I named the first label with "label1", second label with "label2", and so on to the last label with "...
Mai's user avatar
  • 363
1 vote
2 answers
798 views

livecode Installing app on target - Android

I have a very simple test that I am doing in Livecode Community 6.5, on Windows 8.1. I have created a button which shows a dialog window when clicked on. When I run the test in an emulator, the ...
abbyyUser's user avatar
  • 117
1 vote
2 answers
280 views

Livecode/Xcode compatibility

Does anyone know if Livecode 6.6.1 and Xcode 5.1.1 are compatible? If they are not, when can we expect an update from Livecode? Xcode 5.1.1 has been available since April 11 2014.
Alex Alexander's user avatar
1 vote
3 answers
385 views

My LiveCode stack size is too large for my display. Is there away to adjust it so that it fits on my screen?

When working with a large LiveCode stack (e.g. 2048 x 1536), the stack take up more screen space than is available (monitor resolution is 1368 x 768). I can somewhat work around this by ...
LiveCode Support's user avatar
1 vote
2 answers
330 views

I am using LiveCode Community 6.5 and can not use a particular addin

Why can't I use an addin that was previously programmed to work with the application I am modifying. This addin wordreport searches and replaces keywords used to represent variables in a word ...
user3072278's user avatar
1 vote
2 answers
1k views

How to save data in a cards based database stack?

I understand that in livecode you may do a database type application a) as a collection of cards as in HyperCard or b) with an SQL db engine like SQLite. In Hypercard (a) there was no need to save ...
z--'s user avatar
  • 2,236
1 vote
4 answers
796 views

SMTP library demo on LiveCode

I'm trying to build a mobile app that when user presses a button, it sends emails direct to an email address. I found that Sarah's SMTP library demo do this. I try to put on the server the smtp.gmail....
Katerina's user avatar
  • 187
1 vote
1 answer
333 views

How do I program the forward and backward buttons for a browser in the current version of Livecode using the browser widget for desktop applications

I have looked high and low for this answer to what I believe is a simple thing. I am programming a web browser using Livecode (current version with business license) and am having a terrible time ...
karmacomposer's user avatar
1 vote
4 answers
198 views

How to disable maximize button in livecode

I am beginner in livecode, How to disable maximize button, This is my code get shell("gsettings set org.gnome.desktop.wm.preferences button-layout ':close'")
Anu Mohan's user avatar
1 vote
3 answers
378 views

How to count the sum of numbers in a field in Livecode

I have an Scrolling Field and it's congaing number and word separated by space. I want to find the sum of number (eg: 5 USA &CR 5 Uk)
RAHUL.S. KRISHNA's user avatar
1 vote
2 answers
146 views

How to replace certain pattern before and after particular strings in livecode?

I need to do certain replacement after and before particular strings. Example: I need to "replace bad with good in field "MytextField"". But this replacement should be done after begin{document} and ...
Indian's user avatar
  • 49
1 vote
1 answer
368 views

How to play videoClip by Quicktime player in Livecode?

I import video files as control and I create a QT player on my card. In the script this card. I set the filename of player to name of the video file. on opencard set the filename of player "Player" ...
KemChat's user avatar
  • 151
1 vote
1 answer
181 views

How to import image by import as control at runtime in Livecode?

How to import image by import as control at runtime in Livecode? I want to import an image to stack. I don't want to choose an image path. When I sent livecode file to my friend. It's have a problem ...
KemChat's user avatar
  • 151
1 vote
3 answers
305 views

livecode and unicode on the android and greek letter (π)

i have deploy my app to android and every word that have the greek letter (π) have be replaced with rectangle(is the only letter that is missing. Anyone know something about this?can anyone provide ...
johnnyB's user avatar
  • 165
1 vote
2 answers
365 views

When I try to export my app in live code it comes up with an error message

The error message is "There was an error while saving the standalone application device build requires a provisioning file to be chosen" I know it probably trivial to some but I've only just started
user3281242's user avatar
1 vote
2 answers
1k views

livecode retrieve record from sqlite

i have a table in sqlite with table name birthday,and rows >id,name,day,month. i get from my array the system date and convert it to this (day/month). im using the dblib from andre to retrieve it like ...
johnnyB's user avatar
  • 165
1 vote
1 answer
1k views

How to Use C++ Libraries with Livecode

I am looking to use the pHash.org libraries with Livecode for an academic project of mine. What are the steps to getting Livecode to talk to a C++ Library? Most of my code is in Livecode except for ...
R Ghosh's user avatar
  • 612
1 vote
2 answers
2k views

Android drop down menu

How do we create a drop down menu in android which is not focusable when we select an item from drop down list? Previously I created a drop-down menu which is combo box. Everytime I selected an item ...
JunM's user avatar
  • 7,090
1 vote
2 answers
241 views

push and length array operation, iterating through an array

I have the following code snippets in JavaScript myArr = []; myArr.push(3); myArr.push(5); myArr.push(11); // console.log(myArr.length) le = myArr.length; for (var i=0; i < le; i++) { ...
z--'s user avatar
  • 2,236
1 vote
2 answers
143 views

Open MobiledatePicker on focusing on textbox in LiveCode

I would like to add an mobileDatePicker on text entry field,that is whenever text entry field got focus it should a datepicker should open in a popup.Right now i am able to do so with button click "...
Rohit Bhardwaj's user avatar
1 vote
3 answers
1k views

How do I create an array of buttons with a script?

I'd like to create an array of buttons with a script. This includes setting the size and position and assigning a mouseUp hander go them. The mouseUp handler should be on mouseUp go to card "...
z--'s user avatar
  • 2,236
1 vote
1 answer
632 views

Can I change the default color of a progress bar in LiveCode?

Is there a way to change the default color of the progress bar to any color other than green? For instance, I would like it to be red until it gets to 100% and then it turns green.
Monte Goulding's user avatar
1 vote
1 answer
139 views

How to save drawings in Livecode?

I'm a bit of a Livecode newbie so I apologize if this is obvious. But I created a stack. Added fields, buttons, code etc. Then I drew and painted some images. Saved. When I reopened the stack, all my ...
michael's user avatar
  • 11
1 vote
1 answer
138 views

Livecode Browser widget not setting cookies?

It appears from my research that the browser widget in Livecode does not record cookies, nor does there not seem to be other methods at play. Two pieces of evidence: in Livecode, when I return to a ...
JOHN HART's user avatar
1 vote
3 answers
106 views

Livecode commandKeyDown and escapeKey commands bring up an error

I'm using livecode 9.6.0 on an iMac. the commands 'commandKeyDown and 'escapeKey' don't work. The escapeKey doesn't work with keyDown either. Anyone have any ideas?
Malcolm's user avatar
  • 11
1 vote
1 answer
84 views

A code to write in the script of a button that changes the border line of a text entry field to purple in livecode?

I have a button and text entry field in livecode and I want to write a code in the script of the button to change the border color of the text entry filed to purple ? is this code right set the ...
Ayla's user avatar
  • 29
1 vote
1 answer
382 views

JsonToArray and ArrayToJson on LiveCode Server

The functions JsonToArray and ArrayToJson work fine on LC normally, however I recently tried to use these functions on LC Server and they don't work, just get the error Function: error in function ...
Matt Haughton's user avatar
1 vote
1 answer
122 views

How to play a wav file in a livecode generated android application

A wav sound file imported as a control into a livecode application plays as expected in the Windows generated version of the program, but not in the android generated version on a nVidia tablet. The ...
L. McQuerrey's user avatar
1 vote
1 answer
435 views

How to record audio in Livecode?

I am using Livecode Community 7.0.4 and I'm trying to create an audio. I am in windows 10. I created three buttons record, stop and play. And on each button I have these code: //record on mouseUp ...
JunM's user avatar
  • 7,090
1 vote
1 answer
91 views

How to create clickable POI's with mergMK in LiveCode?

I'm trying to make an iOS app with LiveCode and the MergEXT-mapkit extension. As a starting point I am modifying the demo app that comes with the extension. I now have an iOS app with a map which ...
John Allijn's user avatar
  • 1,955
1 vote
1 answer
113 views

How do I process datagram data from mergSocket within LiveCode

I'm writing a simple discovery client/server app using Java (for the server) and a LiveCode app on iOS for the client. The server responds to a broadcast request just fine and I am able to get a ...
DanTheMan's user avatar
1 vote
1 answer
496 views

How to do line continuation with quotes in Livecode?

In a Livecode script I have put "CREATE TABLE containers ( `id` INTEGER NOT NULL, `name` TEXT NOT NULL, `description` TEXT, `location` TEXT, `kind` TEXT NOT NULL, `capacity` ...
tgunr's user avatar
  • 1,548
1 vote
1 answer
308 views

How to manipulate the position of character(s) in a string in LiveCode

So, I have a very specific problem. I have a random word which I have already generated. I also have a separate string that uses the length of that character, 'n' to repeat "_ " n times to field ...
notHalfBad's user avatar
1 vote
2 answers
529 views

How to change the imageSource of image in?

I have an image in LiveCode that I would like to change to another image when a specific button is pressed. So far, I have tried this - set the imageSource of image "The_Hangman" to "/HangMan/1.png" ...
CoopDaddio's user avatar
1 vote
2 answers
533 views

Use "Create" command in LiveCode

I use the create command in livecode to dynamically create several objects (graphic, field, button) depending of some conditions. I use "lock screen" and set up all properties: width, height, textSize ...
Roman Zaytsev's user avatar
1 vote
1 answer
259 views

Creating a file with name given in code in LiveCode

I'm trying to build a program that gets users name at first. This user names are kept in a text file. After user logins, according to the user's name, I want user to be lead his/her specific ...
Ali Kemal Tanrıverdi's user avatar
1 vote
2 answers
467 views

How to count occurance in livecode?

I need to count the number of occurance of word in the array from the field "MytextField". The array consist of more than 9000 lines and the text in field "MytextField" consist of more than 10000 ...
Zam's user avatar
  • 367
1 vote
4 answers
861 views

How to delete a row in datagrid

How to delete a row in datagrid. I am using the following code and it's not working(first two lines are working and the 3'rd line is not working) how i change my code. put the dgHilitedLines of group ...
Shalu's user avatar
  • 290
1 vote
1 answer
111 views

How to create a folder and sub folder

How to create folder using live code. I am using linux operating system my current Directory is "/home/user1/myproject/" I want to create folder inside myproject
RAHUL.S. KRISHNA's user avatar
1 vote
2 answers
1k views

How to use API and decoding json in livecode

I am trying to make a weather app for iOS with LiveCode, which it will use a weather API that will provide information in Json format. But how can I realize it? For example, the api will provide a ...
Xuanwen Zhang's user avatar
1 vote
1 answer
119 views

How to compare two scrolling field

How to compare two scrolling field(I have two fields one containing some text and another containing search string & Replace string these are separated by colon. I want to search each word in the ...
Shalu's user avatar
  • 290
1 vote
1 answer
177 views

mergExt Help needed with installing externals

I can't get a Mac standalone to include the latest (March 2015) Commercial mergJSON external. In this image: https://i.stack.imgur.com/QGI8V.jpg you can see the Windows version correctly includes ...
Jim Lambert's user avatar
1 vote
2 answers
121 views

Creating a handler to increase font size

I am working on a text app, which includes a button to increase text size of selected text in a field. Below is the handler I am using, it works fine when all the selectedText is currently the same ...
MadPink's user avatar
  • 294
1 vote
1 answer
562 views

livecode urlProgress for mobile download file

i am using the bellow code to download a file from my ftp server.The file is downloaded on Mobile devices. i am try to use a progress bar to show up the amount of data downloaded The problem is ...
johnnyB's user avatar
  • 165
1 vote
1 answer
95 views

Disabling touchEnd when pressing buttons

I have a game which is controlled through swipe gestures. Each turn, the user swipes and it moves pieces on the screen. My problem is, when pressing the "Start" button, the game starts and sometimes ...
MadPink's user avatar
  • 294
1 vote
2 answers
179 views

MergEXT MergZXing layer and barcode not reading

Just started working with this awesome external but have a couple of questions. When the control is evoked, is it always the top layer or can I have a background transparent image on top of it so I ...
Skip Kimpel's user avatar
1 vote
1 answer
653 views

How to increase the speed of the native Android scroller for the Data Grid

I'd like to use Android native scroller for a Data Grid displaying about 700 records. The scroller code below is in the card that has the Data Grid on it. The card script is: on openCard dispatch "...
mark's user avatar
  • 222
1 vote
2 answers
216 views

How to set rect on using a native video player when set fullscreenmode to "exactFit" in Livecode?

My project have video player. First step: I create stack and input code: on preOpenstack set the fullScreenMode of this stack to "exactFit" end preOpenstack Second step: I create picture for ...
KemChat's user avatar
  • 151

1 2
3
4 5
13