[Gambas-user] DataControl

Fabien Bodard gambas.fr at ...626...
Mon Oct 22 23:46:10 CEST 2007


Le Monday 22 October 2007 23:14:43 António Pereira, vous avez écrit :
> Hi list members,
>
> I put a DataControl inside a form and set the field name but nothing
> appears at run time. Is that a bug or my mistake ?
>
> Regards,
>

yes
many


first in a main module:

private hcon as new connection
Public sub Main()

hcon.type="mysql"
hcon.login="root"
hcon.password=""
hcon.host="localhost"
hcont.name="mydb"

MyForm.show

End


then in 'MyForm'

add a datasource component (it's a container)

set the 'table' property field

try to add a data browser( for the begining)
set the fields concerned in properties

set the module as main,

run





> António Pereira
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user






More information about the User mailing list