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 #9645 is a reply to message #9630] Wed, 23 May 2007 16:03 Go to previous messageGo to previous message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
After testing for a while it seems that reading data from the datagrid doesn't work because there is no row selected.

Here is what i'm doing:

1.
I start my application, it reads some data from an sql-table and shows them in a sqlarrayctrl which is placed in my first topwindow.

2.
Then i open a editdialog (2nd topwindow) which tries to get the data from datagrid. The result is empty.

3.
I tried to get the selected row by using datagrid.GetCursor to check what going on and the result is -1 which means there is no row selected. This is the reason why there is no data as a result of using datagrid.Get(1) for example.

I think the problem is that i try to get the data after opening a new topwindow (my editdialog).

Anybody additional ideas?

Michael
 
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 07:15:47 CEST 2024

Total time taken to generate the page: 0.02869 seconds