gettingstarted
[Top] [All Lists]

Re: Mysterious Window Appearance & SQL error

To: gettingstarted at lists dot realsoftware dot com
Subject: Re: Mysterious Window Appearance & SQL error
From: GAmoore at aol dot com
Date: Sat, 29 May 2004 02:51:59 EDT
Delivered-to: gettingstarted at lists dot realsoftware dot com
List-help: <mailto:gettingstarted-request@lists.realsoftware.com?subject=help>
List-id: Getting Started <gettingstarted.lists.realsoftware.com>
List-post: <mailto:gettingstarted@lists.realsoftware.com>
Well, I have about five hours trying to fix these two things ... and I am 
suspecting there is something wrong here beyond my control - perhaps evil 
demons 
inhabiting the compiler.

1. I try to create a database table and I keep getting SQL error #7 - 
"missing comma or parentheses" 
on this :
      db.SQLExecute("create table classes( id   integer not null,   primary 
key (id))")

Compare with this directly from the online reference :
       db.SQLExecute("create table invoices(id integer not null, Cust_ID 
integer not null, Amount double, Date date, primary key (id))")

I don't see anything missing. In fact, I used that EXACT code from the 
reference too ("invoices") and immediately after the call, checked it in the 
debugger and even the example code gives the error! 



2. the window appears out of nowhere with nothing calling it and no way to 
track it down

I have searched the entire project for references to that window and not 
found any. I have checked the Open events of the App, and that Window. Here is 
the 
code which calls it the first time :
   winSplash.left = (Screen(0).Width - winSplash.Width)/2
   winSplash.top = (Screen(0).height - winSplash.height)/2
   winSplash.ShowModal

It appears centered, then later it appears again, but the second time its not 
centered
(left = 10, top = 50).

How can you tell which method called the window to appear?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>