Oseitutuakrasi
New Member
- Joined
- Jun 7, 2023
- Messages
- 23
- Office Version
- 365
- Platform
- Windows
Dear All,
In a procedure, I have dimensioned a variable and initialized it:
Dim u as integer
u = 8
Msgbox u gives me 8. OK.
Now in a Textbox if I enter a character (say u), I want that character to have the value of the "u" that I have initialized (that is 8)
That is:
Sub Textbox1_Change()
Dim u as integer
u = 8
Msgbox u (Result 8)
' I enter u in the textbox, then
Msgbox Textbox1.Text ' I get "u" instead of 8
End Sub
Is it possible to make the 'u' in the textbox take on value of the 'u' a have initialized.
I have tried functions like Evaluate(Textbox1.Text), Val(Textbox1.Text); CInt etc, etc
If this is possible at all, any help please?
In a procedure, I have dimensioned a variable and initialized it:
Dim u as integer
u = 8
Msgbox u gives me 8. OK.
Now in a Textbox if I enter a character (say u), I want that character to have the value of the "u" that I have initialized (that is 8)
That is:
Sub Textbox1_Change()
Dim u as integer
u = 8
Msgbox u (Result 8)
' I enter u in the textbox, then
Msgbox Textbox1.Text ' I get "u" instead of 8
End Sub
Is it possible to make the 'u' in the textbox take on value of the 'u' a have initialized.
I have tried functions like Evaluate(Textbox1.Text), Val(Textbox1.Text); CInt etc, etc
If this is possible at all, any help please?