It looks great. I’ll try it out. Thanks! [import]uid: 98849 topic_id: 24550 reply_id: 99604[/import]
What build are you using?
This is pretty mind boggling, the code I put up (used with sample code mentioned) worked absolutely fine using build 773. [import]uid: 52491 topic_id: 24550 reply_id: 99708[/import]
Hey, Fred, I’m so happy to hear the helper module from Bob Dickinson pinned the culprit for you. Glad also to know that a very experienced engineer like yourself can still be helped by a newbie like me sometimes. We all get hit by some blind spot every now and then, and a little help from a second/third/fourth/… pairs of eyes can make a world of difference. And yeah, pay-it-forward sounds great to me (and to any of us who seek help on Forum).
Cheers,
Naomi [import]uid: 67217 topic_id: 24550 reply_id: 99804[/import]
Naomi asked me, “By the way, do you have the comma_value function above the code for Facebook post – meaning, is the function within scope?”
I replied, “Yes, in scope as a global, but I have tried it, in my desperation to get it working, as a local.”
I’m not sure what happened when I tried it as a local because it should have worked. Maybe there was a typo that I couldn’t see because I was running on my iPad.
(Here’s the embarassing part. I’ve been programming computers since the Commodore 64 days but I’m still a newb with Corona and Lua.)
On my score screen I have a big banner with the score with commas in it. Because of this I assumed that there was nothing wrong with the call. Running the code in the simulator with the library Naomi suggested,
https://developer.anscamobile.com/code/facebook-helpersupport-module
revealed the comma_value call to be nil in my Facebook code. I went back and checked my code for the banner and it was
maingame.comma\_value(theScore)
Once I corrected this all was good. Lessons learned:
- Always look for the simple explanation.
- Question your assumptions.
Thank-you Naomi and Peach. You are the best! Sorry for taking so much of your time. I’ll try to pay it forward when I’m no longer a newb. [import]uid: 98849 topic_id: 24550 reply_id: 99791[/import]
This is excellent news - though Naomi you are hardly a newbie, I think the many, many users you have helped will gladly attest to that fact.
Great stuff [import]uid: 52491 topic_id: 24550 reply_id: 100039[/import]
Thank you, Peach, for your kind words.
Naomi [import]uid: 67217 topic_id: 24550 reply_id: 100150[/import]