Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » How to access other classes variables?
Re: How to access other classes variables? [message #9641 is a reply to message #9638] Wed, 23 May 2007 09:36 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
michael wrote on Wed, 23 May 2007 07:40

There is another problem.

I have defined an object of class1 with global scope:

class1 global;


Then i use it in class2 like this:

String a_string = global.datagrid.Get(1);


datagrid is a sqlarrayctrl and a member of class1.

But i can't get any data from the datagrid, a_string is always empty.

Any tips?

Michael


I've never used sqlarrayctrl. Anyway, are you sure you have correctly initialized class1 and populated datagrid?
Moreover, I suggest you to post your test package to easily catch the error.

Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Constructor with parameter
Next Topic: How to use string array with functions?
Goto Forum:
  


Current Time: Tue May 07 21:49:59 CEST 2024

Total time taken to generate the page: 0.02010 seconds