Recent

Author Topic: zMemTable issues  (Read 466 times)

tdb

  • New Member
  • *
  • Posts: 22
zMemTable issues
« on: October 30, 2024, 03:57:14 am »
Couple of issues with Zeus Lib - zMemTable

How do I use the visual controls - I created a zMemTable i.e. dropped on the form.
Set all the properties as required, then created fields I need etc.
When I run the form it crashes when the zMemTable is opened.
As a work around I coded the creation on all fields then opened the table this works all good.

Except small clear box appears on the form top left and overlays the objects underneath.

Is there something I am forgetting to set for the mem table - looked for visible option but not available.
This small square is likely the icon for the zMemTable which I already have on the form.

Thaddy

  • Hero Member
  • *****
  • Posts: 15923
  • Censorship about opinions does not belong here.
Re: zMemTable issues
« Reply #1 on: October 30, 2024, 09:08:29 am »
Connect it to e.g. a TDbGrid. It is not a visual component, but a data provider.
If I smell bad code it usually is bad code and that includes my own code.

tdb

  • New Member
  • *
  • Posts: 22
Re: zMemTable issues
« Reply #2 on: October 30, 2024, 09:28:09 am »
Connect it to e.g. a TDbGrid. It is not a visual component, but a data provider.

Thanks for the reply.

I do connect the zMemTable to a DBGrid and all works fine.
The issue is that on the form top left an invisible box overlays the form see image attached.

Thaddy

  • Hero Member
  • *****
  • Posts: 15923
  • Censorship about opinions does not belong here.
Re: zMemTable issues
« Reply #3 on: October 30, 2024, 09:45:02 am »
That should only be the case during design time. If you run your program it should disappear...
If I smell bad code it usually is bad code and that includes my own code.

tdb

  • New Member
  • *
  • Posts: 22
Re: zMemTable issues
« Reply #4 on: October 30, 2024, 12:52:46 pm »
That should only be the case during design time. If you run your program it should disappear...

No exactly the opposite at design time I can see the zMemTable and I can place it on the form (it is towards the bottom of form).
When I try to open it give 'field not found xxxx' where xxxx is the first field in the table  if I visually check the zMemTable all fields are defined.

If leave the zMemTable on the form and create the zMemTable fields programmatically then I can open the table all is well except for the little square at the top of the form (see picture) if I remove the code the square goes away.

paweld

  • Hero Member
  • *****
  • Posts: 1245
Re: zMemTable issues
« Reply #5 on: October 30, 2024, 01:07:07 pm »
Which version of Zeos are you using? preferably you should also attach a sample project.
Best regards / Pozdrawiam
paweld

tdb

  • New Member
  • *
  • Posts: 22
Re: zMemTable issues
« Reply #6 on: October 31, 2024, 03:14:43 am »
Which version of Zeos are you using? preferably you should also attach a sample project.

Not sure how you find out what version you are currently running I opened the zdataset but no version info in the file.

Anyway I checked my downloads and this should be the version details
8.0.0-stable build at 2024-04-07 12:29:02
Checking Zeus website this is the currently offered version.

Also I created a separate test.pas file with the zMemTable and when I ran it did not cause the issue so I have no idea what to try next.
Searched all the .lfm code and .pas file there is nothing created in the top left.
Also with out the code to create memtable fields all works (except table) but when I add that back I get the small square at the top left!!!

Also one other question with the Delphi memtable you were able to drop the memtable on the form setup the fields then just open and use.
With zMemTable you can do the same but when you open the table if say field not found?

paweld

  • Hero Member
  • *****
  • Posts: 1245
Re: zMemTable issues
« Reply #7 on: October 31, 2024, 07:05:05 am »
Also one other question with the Delphi memtable you were able to drop the memtable on the form setup the fields then just open and use.
With zMemTable you can do the same but when you open the table if say field not found?
Yes, I also have this error.
Report the error in the Zeos forum: https://zeoslib.sourceforge.io/viewforum.php?f=50&sid=4692bfccadb444c2dd7fba7e7a015a7b
Best regards / Pozdrawiam
paweld

tdb

  • New Member
  • *
  • Posts: 22
Re: zMemTable issues
« Reply #8 on: October 31, 2024, 08:45:43 am »
Quote
Yes, I also have this error.
Report the error in the Zeos forum: https://zeoslib.sourceforge.io/viewforum.php?f=50&sid=4692bfccadb444c2dd7fba7e7a015a7b

I checked the Zeos board could not find any previous post about that issue so posted new item, hopefully somebody knows the answer and will respond or Zeus will notice etc.

 

TinyPortal © 2005-2018