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
1
vote
3 answers

How to get a word under cursor in Livecode

how to get a word under cursor in Livecode. Now i am using following code but it's now working. it's working after I selecting the text. put the selectedText of field "MytextField" into Ftext eg(small big happy) here 3 words if cursor is in small…
Shalu
  • 290
  • 2
  • 16
1
vote
4 answers

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 "DGP" into theLine answer theLine …
Shalu
  • 290
  • 2
  • 16
1
vote
1 answer

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
  • 221
  • 1
  • 3
  • 8
1
vote
1 answer

How can I parse Json in livecode?

I am trying to make a weather app using a API provided by http://www.weather.com.cn I have three elements on my stack, "weatherdata" field, "city"field and a button. The idea is there is a "cities.txt"file saved in the desktop stored the city name…
Xuanwen Zhang
  • 45
  • 1
  • 6
1
vote
2 answers

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 link…
Xuanwen Zhang
  • 45
  • 1
  • 6
1
vote
1 answer

Scorlling filed is empty but it display some string why?

I have two Scrolling field and one containing some text and another containing some words. eg. (s1:s2) separated by colon my objective is to find how many words in the second Scrolling are appearing in first Scrolling field. (eg: if s1 is appearing…
Shalu
  • 290
  • 2
  • 16
1
vote
1 answer

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 first Scrolling field with search string in second…
Shalu
  • 290
  • 2
  • 16
1
vote
1 answer

How to stop a serious memory leak

I am attempting to build a simulated sonar waterfall display by deleting the bottom line of pixels of an image and appending a new line at the top to simulate the sonar display. This causes the LC memory to expand 3meg a second. Routine waterfall…
1
vote
2 answers

replacement not working properly in livecode

Iam using this code for replacing, but in some instance(begining of the line where there is no space). How to overcome this? Shall we use regular expression (\n\|\s) in that code? put the htmlText of field "myTextField"" into myHtml set the…
Zam
  • 367
  • 2
  • 17
1
vote
2 answers

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 before end{document}. None of the word replace…
Indian
  • 49
  • 7
1
vote
2 answers

Livecode repeat command

I have the bellow code and I want to complete the following. I have a group with some fields. I have 2 Variables. Variable 1 with names from fields and variable 2 with the values. I want to set the text for the fields in the group to variable…
johnnyB
  • 165
  • 1
  • 12
1
vote
2 answers

Why do you need to use the send command to make a timer work in LiveCode

from the LiveCode dictionary: # A simple timer using send example local sTime on mouseUp put 0 into sTime send "timerIncrement" to me in 1 seconds end mouseUp on timerIncrement add 1 to sTime put sTime send "timerIncrement" to me in…
wickyd
  • 277
  • 1
  • 11
1
vote
1 answer

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 the mergJSON DLL and the revxml DLL. But the Mac…
1
vote
3 answers

Livecode standalone program takes 30 seconds to load

I've run into an issue with a program I created using Livecode, and now I'm looking for some help from the experts. My Google-fu is strong, yet the answer eludes me... So here's the deal. I made a very basic note-taking program for Windows only,…
1
vote
1 answer

Moving editable items between two lists?

Can't post pictures yet let me know if needed Thank you for any help! The object of this is to be able to edit a list on one card and move it to a list on another card. I am also trying to have the item moved also include an editable time, an…
SirDerp
  • 15
  • 4