|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Fri Jul 30, 2010 4:16 pm
[3.22] Missing Properties on Variable Object |
This likely occurs on all versions in the 3.x line.
There is no way (that I can recall at least) to access the variable type programmatically through Lua. Although it most cases it may not matter this is valuable information.
There is also no way to access the sorted property of db records/string lists programmatically. Consider the following code.
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<alias name="test2" language="Lua" copy="yes">
<value>echo(zs.var.foo)
boo = zs.getvar("foo")
echo (zs.numvar)
echo("----------------")
print(boo.class)
echo(boo.name)
echo(boo.index)
echo(boo.isvalid)
echo(boo.value)
echo(boo.enabled)
echo(boo.fullname)
echo(boo.priority)
echo(boo.comment)
echo(boo.nested)
--echo(boo.sorted)
--echo(boo.isnested)
--echo(boo.issorted)
--echo(boo.case)
</value>
</alias>
<var name="foo" type="Record" sorted="1" copy="yes">
<value>boo=doo|foo=goo|koo=ioo|loo=hoo|moo=foo|soo=eoo|zoo=goo</value>
<json>{"boo":"doo","foo":"goo","koo":"ioo","loo":"hoo","moo":"foo","soo":"eoo","zoo":"goo"}</json>
</var>
</cmud> |
|
|
_________________ Asati di tempari! |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jul 30, 2010 4:55 pm |
Added to wish list for a future version.
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|