Lesson 3 Help Needed
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Lesson 3 Help Needed
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.
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
Hi Pip,
where (in what script) is your "databaseconnect" handler?
Best
Klaus
where (in what script) is your "databaseconnect" handler?
Best
Klaus
Re: Lesson 3 Help Needed
Thanks Klaus
The card script was missing the "on openCard", all fixed now & can at last see the databased loaded in to contacts field.
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
Hi Pip,
great, I love happy-ends
Best
Klaus
great, I love happy-ends
Best
Klaus
Re: Lesson 3 Help Needed
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.
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
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
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
Elanor Buchanan
Software Developer
LiveCode
Software Developer
LiveCode
Re: Lesson 3 Help Needed
Thanks Elanor
The label of the direct MySql didn't match the script, all fixed now.
Pip
The label of the direct MySql didn't match the script, all fixed now.
Pip