Linefeed in Debug
Posted: Thu Aug 30, 2012 11:41 pm
I just started with Purebasic today!!!
Great language by the way.
I have encountered my first noob issue. I want to list all of the ODBC Drivers in my machine and show them in the Debug window. I want each driver listed in a row. I am able to get the list of the drivers but somehow they all appear in a single row. I included the Crh(13) + Chr(10) to no avail.
Here is my code:
This is what I get in the debug Window
Microsoft Access dBASE Driver (*.dbf, *.ndx, *.mdx)Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm,*.xlsb)MicrosoftAccessDriver (*.mdb, *.accdb)
All of them are in 1 row.
Please help!!
Great language by the way.
I have encountered my first noob issue. I want to list all of the ODBC Drivers in my machine and show them in the Debug window. I want each driver listed in a row. I am able to get the list of the drivers but somehow they all appear in a single row. I included the Crh(13) + Chr(10) to no avail.
Here is my code:
Code: Select all
Define.s allDrivers
dbsupport = UseODBCDatabase()
dr = ExamineDatabaseDrivers()
While NextDatabaseDriver()
allDrivers = allDrivers + DatabaseDriverDescription() + Chr(13) + Chr(10)
Wend
Debug allDrivers
Microsoft Access dBASE Driver (*.dbf, *.ndx, *.mdx)Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm,*.xlsb)MicrosoftAccessDriver (*.mdb, *.accdb)
All of them are in 1 row.
Please help!!