Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Sep 19, 2019 12:00 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Debug / Watch inside of a Class
PostPosted: Sun Feb 13, 2011 1:00 pm 
Offline

Joined: Sat Dec 04, 2010 9:14 pm
Posts: 918
Hello all,

I am trying to develop a class to work with the DB. There are errors with the DB I know for sure, and so I am trying to find what they are while in still in the Class.

While in the class:
I cannot read in the Watches what the db.ErrorMessages or db.Error values are so I tried msgbox and print.
I cannot get a msgbox to work
I cannot get a print statement to work

I was able to get these to work by stopping all db work (after an INSERT command), and then using a msgbox within a form on form open. This shows the error, but still does not help me to know the problem while still in the class.

Next, I added a string variable (s), and wrote the db.errormessage to it - hoping s would show up on the watches. S does show, but no value.

dim s As String

db.InsertRecord("defaults",rec)
s=db.ErrorMessage


My question is, how can I get this variable to show up while in the class?

Thank you
Tim


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group