tables

Fotis Nakos

New Member
Hello guys.
I have try to input numbers to enabled table but my keyboard dont write in the cells.here is some lines from my program

Sub Button2_Click

table7.AddCol(cstring, "aa", 20,false)
table7.AddCol(cstring, "angle", 50,false)
table7.AddCol(cstring, "space", 50,false)
table7.AddCol(cstring, "SPACE*sina", 50,false)
table7.AddCol(cstring, "space*cosa", 50,false)
table7.AddCol(cstring, "x", 50,false)
table7.AddCol(cstring, "y", 50,false)


for q=1 to num1.Value
table7.AddRow(q)
next
table7.Enabled= true

do you know what is the problem?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You can't write directly inside the cells.
You can use a TextBox and a button that will update the selected cell.
B4X:
[SIZE=2][COLOR=#0000ff]Sub [/COLOR][/SIZE][SIZE=2]Globals[/SIZE]
[SIZE=2][COLOR=#0000ff]End Sub[/COLOR][/SIZE]
 
[SIZE=2][COLOR=#0000ff]Sub [/COLOR][/SIZE][SIZE=2]App_Start[/SIZE]
[SIZE=2]Form1.Show [/SIZE]
[SIZE=2]Table1.AddCol(cString,"col1",50)[/SIZE]
[SIZE=2]Table1.AddCol(cString,"col2",50)[/SIZE]
[SIZE=2]Table1.AddCol(cString,"col3",50)[/SIZE]
[SIZE=2]Table1.AddRow()[/SIZE]
[SIZE=2]Table1.AddRow()[/SIZE]
[SIZE=2]Table1.AddRow()[/SIZE]
[SIZE=2][COLOR=#0000ff]End Sub[/COLOR][/SIZE]
 
[SIZE=2][COLOR=#0000ff]Sub [/COLOR][/SIZE][SIZE=2]Button1_Click[/SIZE]
[SIZE=2]Table1.Cell(Table1.SelectedCol,Table1.SelectedRow) = TextBox1.Text[/SIZE]
 
[SIZE=2][COLOR=#0000ff]End Sub[/COLOR][/SIZE]
 

Fotis Nakos

New Member
thanks

Thanks for your help Erel

How i can download the version 4.05 and newers ?
The link that you gave me when i purchase the program doesnt work

Thanks again...
 
Top