B
bsz27
Guest
Hi!
I'd like to play around a little bit with Sudoku solving algorithms.
Therefore I created a form with 9x9 textboxes with the object names from tb11 to tb99.
Now I want to have a fill-function that selects the desired textbox and fills it with the value:
Function tbFill(i As Integer, j As Integer, v As Integer)
If 0 < i < 10 Then
If 0 < j < 10 Then
If 0 < v < 10 Then
'But how to select tb with index IJ?
'tbIJ.text = v
End If
End If
End If
End Function
The problem is that I couldn't find out how to dynamicly select the name of an (TextBox) object?
Can sb please help me?
kind regards,
Bernhard
Continue reading...
I'd like to play around a little bit with Sudoku solving algorithms.
Therefore I created a form with 9x9 textboxes with the object names from tb11 to tb99.
Now I want to have a fill-function that selects the desired textbox and fills it with the value:
Function tbFill(i As Integer, j As Integer, v As Integer)
If 0 < i < 10 Then
If 0 < j < 10 Then
If 0 < v < 10 Then
'But how to select tb with index IJ?
'tbIJ.text = v
End If
End If
End If
End Function
The problem is that I couldn't find out how to dynamicly select the name of an (TextBox) object?
Can sb please help me?
kind regards,
Bernhard
Continue reading...