mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 19:18:53 +08:00
25 lines
292 B
Lua
25 lines
292 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();
|
|
|
|
tk_quit();
|
|
|