Skip to content

Commit 19e178b

Browse files
committed
IUP sample : When a variable is used by value to set the value to a control, IupSetStrAttribute() have to be used instead of IupSetAttribute().
1 parent 26f0f8c commit 19e178b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/GUI/IUP/textbox.bas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include once "IUP/iup.bi"
1+
#include once "IUP/iup.bi"
22
const NULL = 0
33
const NEWLINE = !"\n"
44

@@ -11,7 +11,7 @@ function on_click_ok cdecl(byval handler as Ihandle ptr) as long
1111

1212
print "OK clicked! content of textbox: <" + text + ">"
1313

14-
IupSetAttribute(label, IUP_TITLE, _
14+
IupSetStrAttribute(label, IUP_TITLE, _
1515
"Thanks. You entered <" + text + ">." + NEWLINE + _
1616
"val() result: " & val(text) & ". " + NEWLINE + _
1717
"IupGetInt() result: " & IupGetInt(textbox, IUP_VALUE) & "." + NEWLINE + _

0 commit comments

Comments
 (0)