Page 1 of 1
Lesson 3 Help Needed
Posted: Fri Sep 13, 2013 4:28 pm
by Pip
Still working away at lesson 3 & can not get the contacts card to display the database in the contacts field.
Keep getting an error in the script of the "databaseType" group but have checked it & the script is the "Lesson3Complete.Livecode" sample stack.
Screen shot of the script is attached, any guidance would be great, thanks.
Re: Lesson 3 Help Needed
Posted: Fri Sep 13, 2013 6:11 pm
by Klaus
Hi Pip,
where (in what script) is your "databaseconnect" handler?
Best
Klaus
Re: Lesson 3 Help Needed
Posted: Sat Sep 14, 2013 2:05 am
by Pip
Thanks Klaus
The card script was missing the "on openCard", all fixed now & can at last see the databased loaded in to contacts field.
Re: Lesson 3 Help Needed
Posted: Sat Sep 14, 2013 11:23 am
by Klaus
Hi Pip,
great, I love happy-ends
Best
Klaus
Re: Lesson 3 Help Needed
Posted: Wed Sep 18, 2013 2:20 pm
by Pip
Now have SQLite database working but when I select the Direct MySQL all the names disappear from the contacts field.
Have check the card script several times & can't see whats wrong & no error is returned, just a blank field.
Card script is attached, thanks for any help.
Re: Lesson 3 Help Needed
Posted: Wed Sep 18, 2013 2:48 pm
by elanorb
Hi Pip
Your code look ok from here, I would suggest putting a break point on line 30 to see if the code is getting to the part of the if statement you expect.
It might just be that the label of your Direct MySQL option button doesn't exactly match what you have in the if statement so the code is not being executed.
If that doesn't help please attach your stack or email it to me,
elanor@runrev.com, and I would be happy to take a look.
Kind regards
Elanor
Re: Lesson 3 Help Needed
Posted: Thu Sep 19, 2013 2:28 am
by Pip
Thanks Elanor
The label of the direct MySql didn't match the script, all fixed now.
Pip