Gentee Programming Language > Documentation > GT language | Download documentation |
In order to work with GT data, you should use variables of the gt type. Such a variable is a tree of objects of the gtitem type. Each of them stores information about the corresponding object with GT data. To be able to use all these methods, you need to enable the library gt.ge from the subdirectory Lib of the Gentee installation folder.
Operations defined for the variable of gt type are listed below. The second column contains possible statements where typename is a variable or an expression of the specified type.
Operation Syntax Return type Comments += gt Adding GT data to an existing GT object. foreach Using in the foreach operator. The description of an additional variable of the gtitems type is required. The foreach operator is used for variables of the gtitem type and goes through all child items of this object. gtitems gtis
...
foreach gtitem cur, gti.items( gtis )
{
...
}
gt.find | Find an object |
gt.get | Get the text of an object |
gt.getval | Get a numerical value |
gt.modify | Modify the data of an object |
gt.process | Process a text |
gt.read | Read GT data |
gt.root | Root item |
gtitem.child | Get a child object |
gtitem.del | Delete an object |
gtitem.get | Get the text |
gtitem.find | Searching for an attribute |
gtitem.getattrib | Get the value of an attribute |
gtitem.getattribclear | Get the value of the attribute |
gtitem.getfullname | Get the full name |
gtitem.getgt | Get an object of the gt type |
gtitem.getobj | An object of the predefined type |
gtitem.gettreeitem | Get a tree item |
gtitem.getvalattrib | The numerical value of an attribute |
gtitem.insert | Processing and inserting data |
gtitem.ischild | A check for embedded objects |
gtitem.iscomment | Comment or not |
gtitem.isroot | Whether it is a root object |
gtitem.key | Get the value of a key |
gtitem.list | Get a list item |
gtitem.listcount | The number of items in a list |
gtitem.modify | Modify the data of an object |
gtitem.modifyattrib | Modify the attribute of an object |
gtitem.modifyattribnot | Change the attribute to 0 or 1 |
gtitem.move | Move an object |
gtitem.name | Object name |
gtitem.parent | Object owner |
gtitem.tostr | Convert into a string |
gtitem.value | The text of an object |
gtitem.valueattrib | The text of an attribute |
gttext | Insert a function into the text |
![]() |
![]() Copyright © 2004-2006 Gentee Inc. All rights reserved. ![]() |