As a VB refugee I am having some problems understanding the fundamentals of random access read/write operations in B4A.
In VB I would construct a user-defined data type including fixed-length strings that would always give rise to a database divisable by the record-length. I can't understand how to do this in B4A.
A singlerecord might be:
varInt
varBoolean
varFloat
varString (maxlen 10)
varString (maxlen 30)
Q. How are the variables initialised in B4A to give a fixed length record?
Q. How is such a record written or read ?
Q. How is the number of such records determined when opening such a database?
I can't find an example in the documentation. Any chance of a short code sample that demonstrates the above ?
Thanks R
In VB I would construct a user-defined data type including fixed-length strings that would always give rise to a database divisable by the record-length. I can't understand how to do this in B4A.
A singlerecord might be:
varInt
varBoolean
varFloat
varString (maxlen 10)
varString (maxlen 30)
Q. How are the variables initialised in B4A to give a fixed length record?
Q. How is such a record written or read ?
Q. How is the number of such records determined when opening such a database?
I can't find an example in the documentation. Any chance of a short code sample that demonstrates the above ?
Thanks R