Lesson 3 - sqlite test error

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Locked
stellify
Posts: 7
Joined: Mon May 06, 2013 12:28 am

Lesson 3 - sqlite test error

Post by stellify » Fri Sep 06, 2013 6:42 pm

Hi

Looking for a little help with lesson 3, I'm following the steps along as closely as I can.

But when I get to to test and display the database connection (at 16:30 in the video) nothing is displayed in the "contact" field.

I have the contacts.sqlite file in my documents folder,

When I check the project browser there is a new main stack with the title "execution error" and the following code:

Code: Select all

on preOpenCard
  send "revDisplayError" to me in 1 tick
  pass preOpenCard
end preOpenCard

on revDisplayError
  if the mode of stack "revErrorDisplay" is not 0 then
    send "preOpenCard" to cd 1 of stack "revErrorDisplay"
    send "openCard" to cd 1 of stack "revErrorDisplay"
  end if
  palette "revErrorDisplay"
end revDisplayError

on openCard
  close stack "execution error"
end openCard
Appreciate any pointers as to how I should go about debugging this.

Thanks

Mark

Locked

Return to “Summer School 2013”