[Gambas-user] Dynamic objects

M0E Lnx m0e.lnx at ...626...
Tue Mar 24 14:02:41 CET 2009


I have no experience with mysql at all, but you can easily create this textbox

PUBLIC SUB Read_DBASE()
DIM sList as string
DIM sResults as String[]
DIM tb as TextBox
DIM sItem as String
DIM i as integer
dim y as integer

' This is where you get your values from mysql and let's assume you
put them into a raw string (sList)

' After that you creat an array with the results
sResults = split(sList," ") ' or however your values may be separated

FOR i = 0 to sResults.Max
tb = new TextBox(me) as "Textbox"
WITH tb
.Text = sResults[i]
.width = 100
.height = 24
.x = 4
.y = y
END WITH
y = y + tb.height + 4
NEXT

END




More information about the User mailing list