Subject |
Re: beginappend() Problem Fixed |
From |
Lee Grant <camilee@nospam.comcast.net> |
Date |
Sat, 1 Jul 2023 16:12:20 -0400 |
Newsgroups |
dbase.getting-started |
Ken,
The only thing I'm not doing, is setting the database object first. I
usually drop both objects from the pallette on the form first, and then
fill them both out, the database object first...and THAT, seems to be
the only thing different.
Here's the problem, I set the properties before saving the form for all
three of the forms, and the one that I do different by dropping both
objects from the pallette onto the form and then filling them both out,
is the only one NOT getting that property assignment. So, I guess we
could list this as a bug, considering that both are getting set before
saving the form officially, it still should see and set the property
like it does for the other two forms.
That's why my custom buttons wouldn't work without hard coding the link
to the rowset, because the form.rowset property was never getting
assigned the way I was doing it. Cool...I'm not going insane. :)
Lee
On 7/1/2023 8:16 AM, Ken Mayer wrote:
<snip>
> If you are doing this by:
>
> a) drag a database object to the surface from the Component Palette and
> set the databaseName to one in the list using the inspector;
> b) drag a query object to the surface from the Component Palette (note
> that the database property is automatically set) and set the sql
> property to something like "select * from tablename", you still get (I
> did a really simple test here):
>
> this.DATABASE1 = new DATABASE(this)
> with (this.DATABASE1)
> left = 3.0
> top = 1.0
> width = 6.0
> height = 1.0
> databaseName = "DBASESAMPLES"
> endwith
>
> this.QUERY1 = new QUERY(this)
> with (this.QUERY1)
> left = 13.0
> top = 1.0
> width = 4.0
> height = 1.0
> database = form.database1
> sql = "select * from fish"
> endwith
>
> this.rowset = this.query1.rowset
>
>
>
> Note the last line of code. If you're not getting that, you're doing
> something odd.
>
> Ken
>
|
|