Implemented as DatabaseColumIndex()
Restored from previous forum. Originally posted by Paul.
It would be nice to be able to use the column names when reading data from a column instead of the column number...
GetDatabaseString(0), GetDatabaseString(1), etc
becomes...
GetDatabaseString("Names"), GetDatabaseString("Address")
Using the current method, if a column gets inserted in between 0 and 1, the entire program has to be changed to accomodate the shift, whereas using names, the columns can still be found regardless of position.
[Implemented] Read Database
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm