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
0
votes
4 answers

How to construct and write an XML file?

This question ia about writing XML data from a LiveCode stack to a file. Chapter 6.7 of the User's guide talks about the XML functions LiveCode provides. I am looking for examples which show how to construct an XML file and write it to a disk…
z--
  • 2,186
  • 17
  • 33
0
votes
2 answers

How do I remove words in one list from another list (Set operation)

I have a list of word forms produced from a text. This list includes proper names (e.g. John, Mary, Edinburgh). In another field I have a list of proper names. I want to get a list of all word forms without the proper names. I actually need …
z--
  • 2,186
  • 17
  • 33
0
votes
2 answers

How do I limit the number of columns of a basic table field?

I have a basic table field. I only need three columns but it displays more. How do I limit it to three? And how do I set the width of the columns?
z--
  • 2,186
  • 17
  • 33
0
votes
1 answer

How do I iterate through an UFT16 encoded string character by character?

I have an UFT16 encoded string theUFT16string. It contains double byte characters. I would like to interate through it Unicode character by Unicode character. I understand that the chunk expressions work by single-byte characters? An example We…
z--
  • 2,186
  • 17
  • 33
0
votes
4 answers

How do I copy a chunk of Unicode text?

I have a field "data" with Unicode text in it which displays properly. I want to copy a chunk of it and put it into another field called "someData". I tried the following script in a button on mouseUp put word 2 of line 1 of the unicodeText of…
z--
  • 2,186
  • 17
  • 33
0
votes
2 answers

Is it possible to display an in-line image?

Article http://runrev.com/newsletter/june/issue135/newsletter4.php shows how to display a table in a text field. Is it as well possible to display in-line images?
z--
  • 2,186
  • 17
  • 33
0
votes
1 answer

How do I make sure only one font and font size is used in a text field?

The default settings of a text field allow content of a different font and font size to be pasted into the field. How do I make sure that pasted content is converted to use a specific font and font size, i.e. the one I choose as default for the…
z--
  • 2,186
  • 17
  • 33
0
votes
3 answers

How do I load a CSV file into a LiveCode stack?

Assuming I have a background with fieldA, fieldB and fieldC I would like to load a CSV file into a stack. The CSV file has three columns A, B and C. How does the script of the 'Load' button look like?
z--
  • 2,186
  • 17
  • 33
0
votes
2 answers

Embedding a TrueType Font in a stack?

Is it possible to embed a TrueType font in a stack and make it available for use in a platform independent way? Or at least in Windows and Android?
z--
  • 2,186
  • 17
  • 33
0
votes
1 answer

How do I insert a Unicode character into a field at the cursor position

I have a handler in a field which I want to use to insert a particular Unicode character when a key is pressed on rawKeyDown theKeyNumber if theKeyNumber is 91 then -- code 91 is '[' -- insert Unicode character -- ɛ …
z--
  • 2,186
  • 17
  • 33
0
votes
2 answers

How do I read an UTF 8 encoded text file into a text field?

How do I read an UTF-8 encoded text file into a text field?
z--
  • 2,186
  • 17
  • 33
0
votes
2 answers

How to put a button into each card?

I'd like to put a 'next' button onto each card of a stack. In Hypercard I could put buttons into either cards or backgrounds. I have not seen yet how it is possible to make a button appear on each card.
z--
  • 2,186
  • 17
  • 33
0
votes
2 answers

Why does setting the text of an image to the text of an image with a paintCompression of rle result in a blank image?

The text of the image appears to be unmodified. A simple test so you can see what I see is to get the Mac Classic question icon from the image library and then select it and: set the text of the selObj to the text of the selObj You should end up…
Monte Goulding
  • 2,380
  • 1
  • 21
  • 25
0
votes
1 answer

Why can't I link my dropbox app using mergDropbox?

I can't seem to get a response from Dropbox when I call any of the mergDropbox commands. I've setup an app on Dropbox, so I have an app key and secret to pass in the mergDropbox setup command but nothing happens when I do. All this works fine in the…
Monte Goulding
  • 2,380
  • 1
  • 21
  • 25
0
votes
1 answer

Can I use iphoneSetDoNotBackupFile on a folder of files rather than individual files?

Do you know if I can use this on a folder and all the files within that folder will not be backed up? (in other words a folder rather than a file) I have a lot of code written accessing PDF files within several folders located in the special path…
Monte Goulding
  • 2,380
  • 1
  • 21
  • 25