zQuery.Fieldbynumber

Forum related to SQLite

Moderators: gto, cipto_kh, EgonHugeist

Phisatho
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 29.07.2011, 10:53

zQuery.Fieldbynumber

Postby Phisatho » 30.07.2011, 15:26

Hi,
Does the ZQuery component has a FieldbyNumber property (similar to FieldbyName)?
I found one as Fields.FieldbyNumber, but it does not work as I expected.

User avatar
Pitfiend
Senior Boarder
Senior Boarder
Posts: 65
Joined: 12.12.2009, 07:27

Postby Pitfiend » 30.07.2011, 21:06

You don't need a fieldbynumber function, just use .fields[index] attribute where index is a variable, constant or just a number.

Phisatho
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 29.07.2011, 10:53

Postby Phisatho » 30.07.2011, 21:23

Works Perfectly.
Thank You.

PS: Where can I find the 'Proper' documentation for Zeos?

Zeos - while being a great piece of FOS software, the big minus point for me is the documentation. (Or am I missing something?)

A few more simple samples will be in place. Will the developers take note?

User avatar
Pitfiend
Senior Boarder
Senior Boarder
Posts: 65
Joined: 12.12.2009, 07:27

Postby Pitfiend » 31.07.2011, 09:44

To be honest I never used it, maybe I too was missing something (never had a trouble until now). If you check the SVN repository you may found it, but it's not an easier task, you need to build it by yourself from the components themself. In the other hand, some properties are similar to the ones found in the BDE (at least the basic ones).

Also, you can figure what the components do, using the autocomplete feature from delphi itself (works for me, I use Zeoslib on every database app I build).

Anyway, you can also read the components' declaration too, hardest way, but you can get illumination through hard work, maybe you can build proper docs (just kidding).

User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Postby mdaems » 30.08.2011, 12:51

There's not a lot of documentation on zeoslib itself.
In case you did download a zip file there's the doc directory with some files. Most usefull for startes is the parameters.pdf file.
Also have a look at the knowledge base on this forum to get started.
For a more detailed documentation on how to use resultsets and queries I can advise you to read the delphi documentation on this subject.

Mark
Image


Return to “SQLite”

Who is online

Users browsing this forum: No registered users and 1 guest