mirror of
https://github.com/zlgopen/awtk.git
synced 2025-05-09 03:51:08 +08:00
25 lines
294 B
Lua
25 lines
294 B
Lua
|
|
local v = Value.create()
|
|
local a = 100;
|
|
|
|
v:set_int8(100);
|
|
print(v:int())
|
|
|
|
v:set_str("hello");
|
|
print(v:str());
|
|
|
|
v:set_bool(true)
|
|
v:set_bool()
|
|
print(v:bool());
|
|
|
|
print(v.type);
|
|
print(ValueType)
|
|
print(ValueType.INVALID);
|
|
print(ValueType.BOOL);
|
|
print(ValueType.FLOAT);
|
|
|
|
v:destroy();
|
|
|
|
lftk_quit();
|
|
|