Obtain the data corresponding to a tag.
Source position: utility.pas line 162
function GetTagData( |
TagValue: LongWord; |
DefaultVal: LongWord; |
TagList: PTagItem |
):LongWord; |
TagValue |
|
A tag value to search for |
TagList |
|
The tag list to search. |
The ti_Data value for the first matching TagItem, or 'default' if a ti_Tag matching 'Tag' is not found.
Searches a tag list for a matching tag, and returns the corresponding ti_Data value for the TagItem found. If no match is found, this function returns the value passed in as 'default'.
// Find out the value for the WA_Left tag window^.Left := GetTagData(WA_Left, 320, wintags);
If the input TagList doesn't exist (e.g. for some reason equals nil), then the return value will be nil. This way you can check for broken code, whereas returing the default would allow code that is possibly buggy to still seem to work. (Until you tried to do anything special at least).
|
Scan a tag list for a specific tag. |
|
|
Builds a "flag" word from a tag list |
|
|
Iterate through a tag list. |