Not sure everything is set up correctly, I can't find pictures from your database. Also I get error from variable yyy which is type control, there is no property named picture! So, I declared it as object for testing.
You are using Gambas 3? You didn't get errors? Jussi PS. Next time if possible send whole project folder instead of just .src, otherwise project configuration is missing! On Tue, Sep 20, 2011 at 07:10, Dag-Jarle Johansen < dag.jarle.johan...@gmail.com> wrote: > Hi Jussi, > > I get > > panTB (? RS!parent) > TB1_Refresh (yyy.name) > Button (RS!typ) > > What should be the correct Elements to me. > I send you the project and a sql-dump (PHP-Admin) of the DB. > > Thanks in advance, > Dag-Jarle > > > > 2011/9/19 Jussi Lahtinen <jussi.lahti...@gmail.com> > > > Cannot see error in this part of the code. > > What happens if you add "Debug yyy.Name;;RS!typ" under 'Case > "PictureBox", > > "Button"'? > > Does it get executed? > > > > Send the project with sample database if possible. > > > > Jussi > > > > > > > > On Mon, Sep 19, 2011 at 15:59, Dag-Jarle Johansen < > > dag.jarle.johan...@gmail.com> wrote: > > > > > Hi, > > > > > > I have defined > > > > > > PRIVATE YYY as Control > > > > > > and want to set some data from a Database, like this > > > For I=0 to RS.Count -1 > > > For Each yyy In panTB.Children > > > If yyy.Name = RS!CtrlName Then > > > Select Case RS!typ > > > Case "PictureBox", "Button" > > > yyy.Tooltip = RS!Tooltip > > > yyy.Picture = Picture[RS!graphik] > > > > > > Case "TextBox" > > > yyy.Tooltip = RS!Tooltip > > > Case Else > > > yyy.Text = RS!CtrlInhalt > > > yyy.Tooltip = RS!Tooltip > > > End Select > > > > > > Endif > > > Next > > > Next > > > RS is Result, and the content is ok, just one record. I get NO PICTURE > on > > > the Button, but as everybody knows, Buttons can have Pictures. > > > Where is my stupid error this time? > > > > > > I am grateful for any help. > > > > > > Thanks in advance and regards, > > > Dag-Jarle > > > > > > > > > ------------------------------------------------------------------------------ > > > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > > > Learn about the latest advances in developing for the > > > BlackBerry® mobile platform with sessions, labs & more. > > > See new tools and technologies. Register for BlackBerry® DevCon > > today! > > > http://p.sf.net/sfu/rim-devcon-copy1 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > > Learn about the latest advances in developing for the > > BlackBerry® mobile platform with sessions, labs & more. > > See new tools and technologies. Register for BlackBerry® DevCon > today! > > http://p.sf.net/sfu/rim-devcon-copy1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user