Ecere SDK/eC Forums • View topic - Fetch all recordset from ODBC

Ecere SDK/eC Forums

Ecere Developers Community

Fetch all recordset from ODBC

General help with the eC language.

Re: Fetch all recordset from ODBC

Postby jerome » Thu Dec 06, 2012 12:29 am

Well you could certainly count the number of rows beforehand, SQL lets you do SELECT COUNT(*)...

But if you don't you can use the dynamic Array class and just use Add() to increase the size as you add each row. If you use just the pointer (String **) then you need to re-allocate the memory for the pointer (renew in eC: array = renew array String*[newRowsCount]).

Site Admin
Posts: 623
Joined: Sat Jan 16, 2010 11:16 pm


Return to eC Language

Who is online

Users browsing this forum: No registered users and 0 guests