7.5

Table Of Contents
Example with version 7.0
define(&x, integer, inttostr(@(1, 1, 10)))
if(&x = 1)
setstyle(&bluefont)
elseif(&x = 2)
setstyle(&redfont)
else()
setstyle(&default)
endif()
Related topics:
l "If (function)" (page 554)
InStream... EndInStream (procedure)
Ceate an alias for a resource file (image, data file, attachment, etc.). You can then reference the resource file using the alias
instead of the path. This eliminates the need to repeat a path in more than one place in your code, and thus makes your code
easier to maintain. For example, if you change the resource, you need only modify the path in the instream() command,
rather than everywhere you reference the original resource.
You cannot use the instream() command inside any function you define using function @name().
Syntax
instream external resname
path
endinstream()
If you want to create a reference to a text document (for example a sample data file), replace "external" by "cleartext.”
Argument
resname
String value specifying the alias to use to refer to this resource file.
path
String value specifying the path of the resource file.
©2010 Objectif Lune Inc - 428 -