Search found 11 matches

by Tom
Sun Apr 27, 2008 5:24 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Using tab to get to the next object...
Replies: 1
Views: 2663

Using tab to get to the next object...

I have an app that requires the user to enter a number of fields, select combo box items, etc. I would like the tab key to move the user to the next object as they are filling out the 'form'. How do I control which field the tab key will highlight?

Tom
by Tom
Sat Apr 12, 2008 9:14 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Combo Button selection affects ALL instances of that button
Replies: 1
Views: 2675

Combo Button selection affects ALL instances of that button

The application consists of, among other things, creating new cards for each event.
Each new card (for a new event) contains a number of combo buttons to enable the user to select from the given choices within the combo buttons.
All of these combo buttons are part of a background group, so that when ...
by Tom
Thu Mar 27, 2008 3:48 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Using data from one stack to update another stack
Replies: 2
Views: 3190

Thanks, BvG... now I understand why it didn't recognize the field in the "Summary" stack... it was not the 'default' stack.

So, I assume I can either make it the default stack, continueing to make each stack default as required... flopping back and forth.

OR, I can put in the full description ...
by Tom
Wed Mar 26, 2008 10:23 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Using data from one stack to update another stack
Replies: 2
Views: 3190

Using data from one stack to update another stack

2 substacks: "Detail" and "Summary"
Detail contains one card for each entry.
Summary contains only 1 card.
I want to read a card from Detail and then add a field content from the Detail record into a field in the Summary.
When Summary opens, in an openCard handler (note, ALL of the following is done ...
by Tom
Tue Mar 25, 2008 12:33 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: preOpenStack and preOpenCard
Replies: 1
Views: 2574

Never mind... I found the errors...
by Tom
Mon Mar 24, 2008 8:29 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: preOpenStack and preOpenCard
Replies: 1
Views: 2574

preOpenStack and preOpenCard

I have a sub-stack with one card called "Summary". The 'home' stack has a button as follows:
on mouseUp
open stack "Summary"
end mouseUp

In the stack script of sub-stack, I have a preOpenStack handler as follows:
on preOpenCard
global currentYear
convert the date to dateItems
put item 1 of ...
by Tom
Fri Mar 14, 2008 2:56 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Working with a 'group'
Replies: 5
Views: 5620

I want to use the toolbar...

Malte, still confused.

Let's say I have 3 buttons, A, B and C, all located in group 1024.
I decide I want to add button D to group 1024.

You said to select the group (by clicking on one of the 3 buttons), then select 'edit group'. That enables me to edit any member of ...
by Tom
Fri Mar 14, 2008 1:54 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Working with a 'group'
Replies: 5
Views: 5620

Working with a 'group'

How do I add a new object to an EXISTING group (and therefore still keep the script that went with the existing group)?

Tom
by Tom
Fri Mar 14, 2008 12:42 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Getting error "Chunk: source is not a container".
Replies: 1
Views: 3291

Getting error "Chunk: source is not a container".

I want to have a "Previous Record" and "Next Record" button on a background for a stack. I know that if I just do a plain:
on mouseUp
go previous card -- or go next card for the "Next Record" button
end mouseUp
The stack will wrap to the last card if I'm on the first card of the stack.

But I ...
by Tom
Wed Mar 05, 2008 2:46 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: What is wrong with this code?
Replies: 2
Views: 3244

What is wrong with this code?

on mouseDown
local x=totalDistance,y=totalDuration
multiply x by 3600
divide y by x
set the label of me to y
end mouseDown

totalDistance and totalDuration are both numbers.

The error message is:
Type multiply: destination has a bad format (numeric?)
Object TotalSpeed
Line multiply x by 3600 ...
by Tom
Tue Mar 04, 2008 2:51 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Checking an inputted field for numeric
Replies: 5
Views: 5758

Checking an inputted field for numeric

I need to make sure an entered field is numeric... here's current code:
on mouseDown
local x
ask question "How many total miles for this ride? (nn.nn)"
put it into x
repeat while (x < 0 or x > 999.9)
ask warning "Enter value between .1 and 999.9"
end repeat
Set the Label of me to x
end ...