Hello Jussi, first thanks for concerning. I tried to send you the complete project, but gambas-user-listing said: too big.
Yes I am using Gambas3, Rev.4128, and Ubuntu 10.04.2LTS with Gnome. I have not stored the pictrue in the DB, only path+name, and then load it with yyy.Picture[..path..]. That works perfectly with an PictureBox created in the IDE. I am not sure, if an object has the same properties as a control, but I will try it out. Are you familiar with SkyDrive? I made a folder containing the complete project, and have sent you an invitation on your gmail-adress. Thnks again, Dag-Jarle 2011/9/21 Jussi Lahtinen <[email protected]> > 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 < > [email protected]> 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 <[email protected]> > > > > > 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 < > > > [email protected]> 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 > > > > [email protected] > > > > 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 > > > [email protected] > > > 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 > > [email protected] > > 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 > [email protected] > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
