05-11-2025, 09:51 PM
(05-11-2025, 06:58 PM)cage Wrote:(05-11-2025, 12:33 AM)TempodiBasic Wrote: And as last post here a demo of the 21 game in which you must get 21 towards the Ai of the program.How to you retrieve textbox text from a textbox. I haven't been able to find any information on that subject.
21 game Inform PE
It is an argument of Inform PE wiki in the section Textbox
if the ID of selected texbox is NameTB you can get the text typed into textbox in this manner
Code: (Select All)
Dim Shared NameTB As Long
....
...
Dim Nametyped as String
...
Nametyped = Text(NameTB)
or
Code: (Select All)
Dim Shared NameTB As Long
....
...
Dim Nametyped as String
...
Nametyped = RawText$(NameTB)