Search found 17 matches

by Weaksafety
Thu Nov 06, 2014 4:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Add a calendar event in iOS
Replies: 0
Views: 2050

Add a calendar event in iOS

Hi!

A quick question for which I've searched a lot without finding an answer: in my iOS application I'd like to create a calendar event for a given date/time/description etc.

However, by looking at the dictionary I've only found functions to pick a date, but nothing to interact with the calendar ...
by Weaksafety
Fri Oct 31, 2014 9:44 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What is a "display group"?
Replies: 2
Views: 3547

What is a "display group"?

Hi,

I've been trying to embed a browser into a mobile app for iOS.

Looking at this lesson, http://lessons.runrev.com/m/4069/l/22836-how-do-i-use-the-browser-control everything is pretty clear except for one thing.

At some point it says "First, create a display group with the name Browser". The ...
by Weaksafety
Mon Sep 29, 2014 10:58 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Showing an imported image into an imagearea
Replies: 3
Views: 3840

Showing an imported image into an imagearea

Hi,

Let's say I have a few images that are already imported as controls in my stack, with their visible set to false.

I created a group with an image field, that should behave like a pop-up (so it becomes visible upon clicking a button) and display just one of the pre-imported images; the name of ...
by Weaksafety
Sat Sep 13, 2014 4:30 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Importing XML fails..randomly!
Replies: 3
Views: 3610

Re: Importing XML fails..randomly!

Thanks a lot to both of you!

Ok, lessons learned. Yes, I'm definitely new at this so I didn't check for errors.. ooops :roll: it'll go at place #1 of my list.
The random error might be provoked by the space, then. I guess it'll just take a couple of edits and I should be good to go.

Many thanks ...
by Weaksafety
Fri Sep 12, 2014 10:42 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Importing XML fails..randomly!
Replies: 3
Views: 3610

Importing XML fails..randomly!

Hi everyone,

this one is really making my head spin. There goes:

I've written a small app that queries an API and gets a xml with local weather, which then parses and structures into a card.

Everything was working fine initially, except that after a while I started getting "xmlerr: can't parse ...
by Weaksafety
Sun Jul 27, 2014 1:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Create an object in a DIFFERENT card
Replies: 3
Views: 3312

Re: Create an object in a DIFFERENT card

Brilliant Klaus, thanks! I didn't think one could "move" from the current card and still keep a script alive in executing commands, especially if it was placed onto a button in a specific card!

How about those temporary variables? Do I need to declare them at stack level for the script to work? (I ...
by Weaksafety
Sun Jul 27, 2014 11:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Create an object in a DIFFERENT card
Replies: 3
Views: 3312

Create an object in a DIFFERENT card

Hi,

I've got a stack with a lot of different cards, each having the same customproperty with a specific value.

I'm trying to write a recursive function, that has to be assigned to a button in a specific card, that does this:
- creates an invisible field in each card
- puts the customproperty ...
by Weaksafety
Wed Jul 02, 2014 10:23 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Confused with local variable usage
Replies: 4
Views: 3743

Re: Confused with local variable usage

Thanks, I'm still doubtful on one thing though: how can I update the value of a local variable, declared at the card level, from an object on the same card?
Do I need to create a function on the card that's tasked to update the value, or is there a quicker way?
:D
by Weaksafety
Wed Jul 02, 2014 9:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Confused with local variable usage
Replies: 4
Views: 3743

Confused with local variable usage

Hi,

I'm trying to set a local variable in a card script, so that I can update its value and get it as needed.

On the card script I've written:
local thisVar = 23

on tryThis
answer thisVar
end tryThis

In the same card there's a button that does this:
on mouseUp
put 21 into thisVar
tryThis ...
by Weaksafety
Wed Jun 25, 2014 10:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Bypassing the 5Mb limit for PDFs on Android
Replies: 6
Views: 5529

Re: Bypassing the 5Mb limit for PDFs on Android

Oh. I hadn't tried to deploy the app to my tablet yet, I see from the dictionary that printing to pdf is indeed not possible from android.

It appears that Quartam PDF Library can indeed support Android, I'll give it a try - However even if that works, is there any smart way to get around the limit ...
by Weaksafety
Wed Jun 25, 2014 2:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Bypassing the 5Mb limit for PDFs on Android
Replies: 6
Views: 5529

Bypassing the 5Mb limit for PDFs on Android

Hi,

I'm trying to print some cards of my stack to a pdf, which is basically an illustrated book (lots of images on lots of pages).

The aim is to send via email a custom pdf that only has the pages that the user selects on the mobile app.

There's a problem: Android Mail only supports attachments ...
by Weaksafety
Thu Jun 19, 2014 7:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't find card in recursive function if card name's default
Replies: 4
Views: 3590

Re: Can't find card in recursive function if card name's def

Thanks a lot to both!
I just modified my script with Klaus' suggestion and it worked like a charm :D
by Weaksafety
Wed Jun 18, 2014 10:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't find card in recursive function if card name's default
Replies: 4
Views: 3590

Can't find card in recursive function if card name's default

Hiya all,

I've written a recursive function to set a custom property of all cards in my stack. Here's a snippet of the longer function:

put the cardnames of this stack into tCardList
repeat with cardIndex = 1 to the number of lines in tCardList
put line cardIndex of tCardList into tCard
if ...
by Weaksafety
Thu Jun 05, 2014 10:48 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What's the best way to set up this stack? (Hidden pages)
Replies: 3
Views: 2941

Re: What's the best way to set up this stack? (Hidden pages)

Thanks Simon.
Let me say that I appreciate immensely your approach of giving hints instead of a solution, that's what's needed to get people thinking and learning.

Your suggestion of using custom properties is great, however I won't be able to use it since this project will be more of a brochure ...
by Weaksafety
Wed Jun 04, 2014 10:28 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What's the best way to set up this stack? (Hidden pages)
Replies: 3
Views: 2941

What's the best way to set up this stack? (Hidden pages)

Hi again,

I'm trying to find the best way to setup a new project. Since I'm really new to programming I'd love to have a methodological point of view from your experience :)
Basically, the project will be a digital book for android and ipad. It's going to have more than 100 pages, so readability is ...