Linefeed in Debug

Just starting out? Need help? Post your questions and find answers here.
PrietoM
New User
New User
Posts: 9
Joined: Sun Oct 04, 2009 10:58 pm
Location: Trying to jump the border into USA

Linefeed in Debug

Post 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!!
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Linefeed in Debug

Post 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
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
PrietoM
New User
New User
Posts: 9
Joined: Sun Oct 04, 2009 10:58 pm
Location: Trying to jump the border into USA

Re: Linefeed in Debug

Post 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.
Post Reply