[Gambas-user] A question to a control

Dag-Jarle Johansen dag.jarle.johansen at ...626...
Tue Sep 20 06:10:41 CEST 2011


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.lahtinen at ...626...>

> 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.johansen at ...626...> 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 at 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Budget.src.7z
Type: application/x-7z-compressed
Size: 9423 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110920/09c0295a/attachment.7z>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Budget-2011-09-19.sql.7z
Type: application/x-7z-compressed
Size: 3164 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110920/09c0295a/attachment-0001.7z>


More information about the User mailing list