8-Aug-00 14:34 you wrote:
.
Hi!
Am Die, 08 Aug 2000 schrieb Khimenko Victor:
8-Aug-00 09:12 you wrote:
Ahh. So it's array, not just pointer. In this case something like type mysqlrowa=array[0..100] of CString; mysqlrow=^mysqlrowa; will do. And you can use row^[0], row^[1], ... , row^[100] (there are no limit in C but in Pascal you NEED some limit - otherwise compiler will complain).
Ok, thats not exactely what I want to do.
Yeah ? How so ?
What about row[10000]?
Make it array[0..10000] then. Surely MySQL have some upper limer for number of rows.
But if there is no direct equivalence, I try out some other ideas.
There are NO direct equivalence. Even more: there are NO "array with unknown number of elements" type in Pascal.
P.S. Looks like you trying to make pascal binding for C library without C or Pascal knowleadge. Why you are doing this at all ? No offence, just curious.
I do not have Pascal knowledge as much as you, but I AM an experienced C-Programmer. Actually, I just want to learn GNU-Pascal, and thats a good entry-point for it, I think (GNU-Pascal does not have a MySql-Unit).
Unfortunatelly it's not always easy to make C<->Pascal binding. For example you can include '\0' character in Pascal strings. And it's equially hard to explain pascal programmer without C knowleadge why it's so problematic to put such string in MySQL as to explain C programmer without Pascal knowleadge why it's so insane to have array without known upper bound :-)