transfering text?? please help!!

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

smash
Posts: 99
Joined: Tue Aug 19, 2008 5:18 am

Post by smash » Sun Aug 24, 2008 1:29 am

oh and in the combo box on card 2 called Compleat Show Entries (2)

the choices are
test 1
test 2

i have not named the combo box as such yet, but the label is called Preliminary.

sorry trying to give you as much information as i can
tanya

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sun Aug 24, 2008 8:02 am

Hi Smash,

If the available choices in the combobox are "test 1" and "test 2" then you need to adjust the if statement in the menuPick handler accordingly.

Code: Select all

on menuPick thepick
  if thepick = ****** then
    put joinTable(fld "bridlenumber",fld "horsesname",fld "ridersname") into field "result" of card 3 of stack "Compleat Show Entries"
  end if
end menuPick 
In above script, I have put a few asterisks, which you need to replace by one of the coices available in the combobx.

Just to be sure, do you have the menuPick script in the script of the combobox or somewhere else?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Sun Aug 24, 2008 10:09 am

Hi Mark,

I took a look at Tanya's stack and adjusted some stuff to make it very simple for her.

What she's actually looking at is having a data entry page to add a bridle number, horse name and rider name into the list of entrants in horse riding tests, where there are three "levels" (preliminary, novice and elementary) each which have four possible tests.

So she has a data entry card to add the entrant's details, and then picking one of the menu options will enter that info into the list on the appropriate card.

By judicious naming of the cards (eg "Entries1.1","Entries1.2",etc) it can be kept very simple by putting "Entries" & theMenuPick into theCardName and going to theCardName.

It would be more robust in a commercial situation to choose some of the other techniques perhaps, but (especially as the horse/rider/bridle are all one-liners) I think we're just clouding the issue for Tanya by adding complexity, so it's baby steps at this stage.

smash
Posts: 99
Joined: Tue Aug 19, 2008 5:18 am

Post by smash » Sun Aug 24, 2008 11:10 am

wow sparkout, thank you so much, i really made a ballsup of trying to explain things.
thank you so much mark for trying to explain things to this REALLY SIMPLE OLD GAL, i wish i was joking, but sadly it is true.
*leaning over and giving mark a special kiss on the check*
i do appreciate all you tried to do for me mark
thank you, you really are a great person to come on here and try to help me like you did.
THANK YOU

now sparkout, if i could work out if you were male or female LOL
if male i would be sticking my tongue down your throat *then passing you a bucket* in case you need to spew LOL
if female, the biggest hug in the world, you did a great job at getting me started, so i can build my confidence at understanding all this "stuff"

THANK YOU BOTH FOR BEING SUCH A GREAT SUPPORT TEAM, i dont think any forum has such great knowledgable help, like there is in here.
i am sure you will be hearing more of me, as i go up to the next stages.

thank you both so very much

Post Reply