Page 1 of 1

Linefeed in Debug

Posted: Thu Aug 30, 2012 11:41 pm
by PrietoM
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:

Code: Select all

Define.s allDrivers

dbsupport = UseODBCDatabase()

dr = ExamineDatabaseDrivers()

While NextDatabaseDriver()
  allDrivers = allDrivers + DatabaseDriverDescription() + Chr(13) +  Chr(10)
Wend

Debug allDrivers
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!!

Re: Linefeed in Debug

Posted: Thu Aug 30, 2012 11:54 pm
by MachineCode
Welcome. "Debug" only shows one line, by design. So, do it like this instead:

Code: Select all

Define.s allDrivers

dbsupport = UseODBCDatabase()

dr = ExamineDatabaseDrivers()

While NextDatabaseDriver()
  Debug DatabaseDriverDescription()
Wend

Re: Linefeed in Debug

Posted: Fri Aug 31, 2012 2:25 am
by PrietoM
Thank You MachineCode!!!

The more I use Purebasic the more I like it!!!

I am gonna have to say Goodbye to Realbasic, soon.