Statements>Dispatch
Introduction Installation Beginning Admin Quick Ref FTP Server SMTP Server Database Security
Statements Objects String Parsing Events Queues Samples Special names Error Handling Accessories   Back
Caravan Business Server>Help>Statements>Dispatch
Syntax
<CARAVAN>
dispatch <file property>
</CARAVAN>
Text Dispatch keyword is used to flush a file to the browser in a more efficient way. No more statements are executed after 'dispatch'
Sample Example
<HTML>
<BODY>
<CARAVAN>
  file x="c:\test\bigfile.txt"
  dispatch x(file)
</CARAVAN>
</BODY>
</HTML>

Note: Please note that this is similar to, but not same as:
<HTML>
<BODY>
<CARAVAN>
  file x="c:\test\bigfile.txt"
  x(file)
</CARAVAN>
</BODY>
</HTML>
In this case the file embedded into the stream, which is more resource intensive for huge files.
Quick Reference
Home       Back