7.4

Table Of Contents
showbarcodeupce('123456',0)
Resources
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.
Code Sample Example
This example creates the alias 'photo' that refers to the resource file c:\images\employees\JAdler.bmp.
Example
instream external photo
c:\images\employees\JAdler.bmp
endinstream()
%You can then reference the resource using the alias
showbitmap('photo',72,1,1)
©2010 Objectif Lune Inc - 610 -