I used the command $cdate to dignify a calendar date.
for example:

 Code:
$cdate = "2009/03/01"


and then used it in the below:

 Code:
$x = 0
$FileName = Dir("$home$folder\(current month)\*.*")
  While $FileName <> "" and @ERROR = 0
   $file = "$home$folder\(current month)\$filename"
   $fdate = Substr(GetFileTime($file),1,10)
   IF $fdate > $cdate
     $attach[$x] = "$filename"
     $x = $x + 1
   ENDIF
  $FileName = Dir() ; retrieve next file


picking up files with a date after the $cdate
When I run debug, there is an error in the line with $cdate

Is there anywhere I can look at built-in variables?



Edited by Mart (2013-07-26 08:32 AM)
Edit Reason: Please use code tags when posting code.