Which Arrays with mobileGetContact ?

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
Gille
Posts: 17
Joined: Fri Jan 19, 2018 8:52 pm

Which Arrays with mobileGetContact ?

Post by Gille » Wed Feb 21, 2018 7:11 pm

Hi,

With mobilePickContact I can read data from the address book.

With mobileGetContact I can evaluate the individual fields such as lastname, firstname.

Which fields are there still?
I'm looking for the name of the array phone number for business, personal, mobile

thank you in advance
:shock:

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Which Arrays with mobileGetContact ?

Post by FourthWorld » Wed Feb 21, 2018 7:34 pm

See the Dictionary entry for mobileGetContactData for a complete list of array elements returned from that function.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Gille
Posts: 17
Joined: Fri Jan 19, 2018 8:52 pm

Re: Which Arrays with mobileGetContact ?

Post by Gille » Wed Feb 21, 2018 8:42 pm

great
Thanks alot!

Greetings from Germany
Gille
:shock:

Gille
Posts: 17
Joined: Fri Jan 19, 2018 8:52 pm

Re: Which Arrays with mobileGetContact ?

Post by Gille » Wed Feb 21, 2018 8:45 pm

but how do I get to the phone numbers?

thank you in advance
:shock:

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Which Arrays with mobileGetContact ?

Post by FourthWorld » Wed Feb 21, 2018 9:01 pm

I found the mobilePickContact command among the "See Also" list in the Dictionary entry for mobileGetContactData.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Gille
Posts: 17
Joined: Fri Jan 19, 2018 8:52 pm

Re: Which Arrays with mobileGetContact ?

Post by Gille » Wed Feb 21, 2018 9:31 pm

I do not know what you mean.
I want to read the phone numbers.

Best regards
:shock:

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Which Arrays with mobileGetContact ?

Post by bogs » Wed Feb 21, 2018 9:41 pm

What he means is that those entries and links in the dictionary will tell you what you want to know.
Selection_006.png
Never underestimate the value of the 'see also' section.
Image

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Which Arrays with mobileGetContact ?

Post by FourthWorld » Wed Feb 21, 2018 9:47 pm

Bogs is right, Gille. I was trying to give you both a fish and a fishing pole, so you get the answer to the question you have now and a good means of finding answers for new ones later on.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Which Arrays with mobileGetContact ?

Post by bogs » Wed Feb 21, 2018 9:58 pm

And of course, it is better than being beaten about the head and shoulders with a fish :wink:

All kidding aside, the links in 'see also' can lead you on to a lot of information you wouldn't normally think to look up by guessing the words you need.

In most other IDEs, autocomplete in the editor *kind* of encourages this, but of course is targeted more at words that look like what you are already typing. I think that is where 'see also' really flys best, it shows you keywords that are relevant to what your looking at.
Image

Gille
Posts: 17
Joined: Fri Jan 19, 2018 8:52 pm

Re: Which Arrays with mobileGetContact ?

Post by Gille » Wed Feb 21, 2018 10:05 pm

hi her good,

i like fishing ...
Only you always need a good bait :D

But today I do not catch anything. I'm so sad... :?
:shock:

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Which Arrays with mobileGetContact ?

Post by bogs » Wed Feb 21, 2018 10:40 pm

Huh, I'm surprised, maybe the problem is that Richard and I are working from older dictionaries. I believe in the newer Lc, instead of "See also" it now says "Related". Is that what is throwing you off?

Or it may be the differences in the categories, now that I was flipping through the new dictionary entries. I'll quote it from one of the older dictionaries I use, my apologies if the above is the problem you were having.
Dictionary wrote:
Selection_008.png
(lower on the page)
Telephone Numbers - The telephone numbers of the contact are stored in integer indexed arrays starting at one under the key phone. This allows any number of telephone numbers to be stored against a particular category. There are ten categories of phone numbers:
• mobile - The mobile telephone number.
• iphone - The iPhone telephone number (iOS only).
• main - The main telephone number (iOS only).
• home - The home telephone number.
• work - The work telephone number.
• homefax - The home FAX number (iOS only).
• workfax - The work FAX number (iOS only).
• otherfax - The other FAX number (iOS >= 5.0 only).
• pager - The pager number (iOS only).
• other - An alternative telephone number.
Hope that helps to clear it up for you. Another (probably better) source for you to look through would be Max's Wiki, which often times goes into a great deal more depth than even the older dictionaries.

*Edit - There seems to be a great deal of info missing from the newer dictionary, curious if you actually looked at what came up in there Richard. Max's wiki appears to also be missing a lot of it, but I suspect that might be because much of the base of the page was made up from the dictionary itself.

Either that, or the function itself has been seriously truncated?
Image

Gille
Posts: 17
Joined: Fri Jan 19, 2018 8:52 pm

Re: Which Arrays with mobileGetContact ?

Post by Gille » Wed Feb 21, 2018 10:57 pm

My prayers were heard! :D

It is a bit difficult for us Germans, as for example "business"
Company, Business etc. is used.

You are the best!

I'm closing time now - it's 11 o'clock in the evening.

Do it well and see you soon

Your Gille
:shock:

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: Which Arrays with mobileGetContact ?

Post by jameshale » Thu Feb 22, 2018 12:37 am

Well done bogs.
Seems the current ldoc for this function has been severely truncated.
Bug reported http://quality.livecode.com/show_bug.cgi?id=21003

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Which Arrays with mobileGetContact ?

Post by bogs » Thu Feb 22, 2018 4:33 am

Glad I could help Gille, sorry it took me so long to figure out the disconnect we were all having :)

@ James, thanks for reporting it, if you ever go through the older docs (Lc 7.x and before), you'll find a lot that just comes out weirdly missing as versions get newer. It is almost like parts got lost during certain version updates, and it is pretty hard to keep track of.

And of course, it is hard to tell what was changed for practical reasons (some function changed, like 'specialFolderPath' over the years), or what was truncated due to... space? coding mistake? fire next door? No one knows for sure. Just weird :?
Image

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”