home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / SCRPTEXM.PAK / CODESPP.DAT < prev    next >
Encoding:
Text File  |  1997-05-06  |  710 b   |  30 lines

  1. CODESPP.DAT: Script code library file.
  2.  
  3. MAIN FILE: CODELIB.SPP
  4.  
  5. NOTES: Enter library entries. The first line of each entry must be the
  6.   entry marker, immediately followed by a description. The code begins
  7.   on the line following the description, and extends until the next
  8.   marker or EOF.
  9.  
  10. <*>Example entry: Parse the script path
  11. declare sppDirs = new array[];
  12. declare sTmp = new String();
  13. declare position = 0;
  14. declare i = 0;
  15. sTmp.Text = scriptEngine.ScriptPath;
  16. do {
  17.   sTmp = sTmp.Trim();
  18.   position = sTmp.Index(";");
  19.   sppDirs[i] = sTmp.SubString(0, position - 1).Text;
  20.   sTmp = sTmp.SubString(position);
  21.   i++;
  22. } while (position);
  23.  
  24. <*>Example entry 2
  25. SomeScriptCode(){
  26.  
  27.  
  28. }
  29.  
  30.