home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / programs / comms_networking / zonk / rawdocs / cmakt < prev    next >
Encoding:
Text File  |  1999-02-12  |  1.4 KB  |  38 lines

  1. $zonkpage 1.07
  2.  
  3. title: Maketag
  4.  
  5. text:{<sh>Syntax:</sh>
  6.  
  7. <lit><zonk maketag <var>temp variable</var> (<var>formatstring</var>) <var>expression</var> [<var>expression</var>...]></lit> 
  8.  
  9. <sh>Description</sh>
  10.  
  11. <var>temp variable</var> is an alphabetic variable name under which the results are stored. Note that when you wish to use this variable anywhere you put a '^' in front of the name. However <i>it does not</i> have a '^' here.
  12.  
  13. <var>formatstring</var> is as for <ref ctagv>zonk tagvalue</r> except that a date style format string can only be used if there is a single <var>expression</var> which *must* be a variable name including a date 'treatas' modifier '@'. See <ref fstrin>format strings</r> for more details.
  14.  
  15. <var>expression</var> is as defined in <ref genc>general concepts</r>.
  16.  
  17. The number of 'top level' expressions (that is the optional repeating part in the syntax description above) must match the number of format elements in the format string. 
  18.  
  19.  
  20. <sh>Examples</sh>
  21.  
  22. <lit><zonk maketag c (%d) 1></lit> 
  23. sets the value of the temporary variable ^c to "1".
  24.  
  25. <lit><zonk maketag c (%d) (^c + 1)></lit> 
  26. increments the value of the temporary variable ^c by 1.
  27.  
  28. <lit><zonk maketag all (%s%s) fred joe></lit> 
  29. sets the temporary variable ^all to the concatenation of the values of 'fred' and 'joe'
  30.  
  31. <lit><zonk maketag mydate (&dy-&mn-&ce&yr) %now@></lit>
  32. sets the temporary variable ^mydate to today's date in the format day-month-year
  33.  
  34.  
  35.  
  36.  
  37.  
  38.