![]() |
|
taginfo |
Longname: | taginfo rmation | ![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Released: | 7.80 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Created: | 7.80 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See also: | measure prop propval length lookup resolve string perl lump_expand Technote: 0080 |
Summary |
A keyword used with function variables: ^[funcname parameter(s)]. This syntax can be used anywhere that a regular 3B2 variable can be used: in show strings, in scripts, in expressions, etc. Function variables are a V8 feature that uniforms variable use and functions into a readable syntax. The 'taginfo' function retrieves the tag information from within a showstring. |
Example extract |
The following show string will display the current value of the th command (text height).
|
Syntax
|
tagname:s |
The required tag name. |
code:t |
The approriate code to retreive the specific information from the list sections below. |
The area in 3B2 that the ttaginfo macro applies to is the info tag in the tbrowse dialogue box. You can view information about the tags e.g number of characters in a text stream or the dimensions of a graphic. The ttaginfo macro retrieves the tag information and passes it to variables for the user to access. |
Retrieves the Raster Graphic File NAME of the image called 'mypic'. |
|
In-Depth |
Text Streams |
|
Object Graphics |
|
Raster graphics |
|
Values for graphic type |
|
Values for raster graphic file type |
|
Page |
|
Colour |
|
Font |
|
Bookmark |
|
Values for Bookmark Type |
|
Values for Bookmark Fit |
|
Namespaces |
|
![]() |
Boolean values are 1(yes) or 0 (no). Number fields are unformatted numeric values. Strings are text, for example: c:\download\picture.bmp |
Example |
This sets up the variables for everything that applies to the tag "body". This will display the number of characters used in the tag "body". ttaginfo_tx_nc is the set variable for the number of characters. See below for further variables.
|
Document created on 11-Nov-2004 (revision 1)