Getting user's name and address

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
CAsba
Posts: 432
Joined: Fri Sep 30, 2022 12:11 pm

Getting user's name and address

Post by CAsba » Tue Oct 11, 2022 3:27 pm

How would I get the user's name, address, etc., store the info, then put the lines of info into a document ?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Getting user's name and address

Post by dunbarx » Tue Oct 11, 2022 6:10 pm

Hi.

You can always just ask them for it.

Once you have the information, you would probably create a series of cards, each one having the data displayed in fields set up the way you prefer. You will want to put the the whole suite of controls into a group, and set its "backGroundBehavor". In that way every time you create a new card, all the controls are copied there. The fields will contain only data local to the card they live on.

You can add a "Find" function to navigate to the card of interest.

If you have many thousands of cards then a better way is to create a single card, similarly formatted. But now you store the data for each individual in a custom property, or perhaps a hidden field, and have a "Find" function load the proper data into the card.

The user would not be able to distinguish between the two methods. But LC does not like thousands of cards; it does no harm but it slows down.

Craig
Last edited by dunbarx on Tue Oct 11, 2022 6:39 pm, edited 1 time in total.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Getting user's name and address

Post by dunbarx » Tue Oct 11, 2022 6:38 pm

Just read the part about putting information into a document.

What kind of document? A text file? A PDF? A page in your stack that you might print?

Craig

CAsba
Posts: 432
Joined: Fri Sep 30, 2022 12:11 pm

Re: Getting user's name and address

Post by CAsba » Sat Oct 15, 2022 11:36 am

Hi dunbarx,
The document would be a page to be printed.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Getting user's name and address

Post by dunbarx » Sun Oct 16, 2022 1:02 am

OK.

So what about the silly comment, "just ask them"? :D

Anyway, if you do have an idea how to gather the data, and load that data into one of more fields arranged the way you want it, then you can set up all the usual parameters, page setup, print area, font control over the output, everything. Each of those has its own command or property.

Then simply use the "print" command. You should read its rather detailed entry in the dictionary, and do not miss all of the "related" topics.

Craig

Post Reply