Displaying the card number automatically

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
barrygilligan
Posts: 2
Joined: Wed Apr 30, 2014 9:39 am

Displaying the card number automatically

Post by barrygilligan » Wed Apr 30, 2014 10:18 am

Could somebody help with this please.. I would like to display the card number automatically within a text field. i.e. the card opens and a lablel/field displays the card number, I thought it would be straight foward but I cannot get it to work.

Thx

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Displaying the card number automatically

Post by jmburnod » Wed Apr 30, 2014 11:05 am

Hi Barry,

You have to do that in the stack script

Code: Select all

on opencard
   put the num of this cd into fld "Mylabel"
end opencard
and if you have an opencard message in a card or group script use pass like this:

Code: Select all

on opencard
   do something
   pass opencard
end opencard
Best
Jean-Marc
https://alternatic.ch

barrygilligan
Posts: 2
Joined: Wed Apr 30, 2014 9:39 am

Re: Displaying the card number automatically

Post by barrygilligan » Wed Apr 30, 2014 11:13 am

Many thx , I'll give that a go

Post Reply