[Implemented] Read Database

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] Read Database

Post by BackupUser »

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.