Hi Guys,
How I can create a array with a mariadb query result to use in fastreport?
Thanks in advance.
Array and MariaDB
Re: Array and MariaDB
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
- nageswaragunupudi
- Posts: 10729
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 10 times
- Contact:
Re: Array and MariaDB
If you have already opened a Rowset with the query, you may do as advised by Mr. Cristobal in the above post.
There is even a simpler way:
aStates is a 2-dimensional array of the result of the query.
There is even a simpler way:
Code: Select all | Expand
aStates := oCn:Execute( "select * from states" )
aStates is a 2-dimensional array of the result of the query.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India