Menu

#34 $MemFree in Text File (using $File) not replaced

v5.3
open
nobody
ALL (19)
3
2005-02-12
2005-02-04
Uwe Freese
No

I use a simple Screen like this:

$File("C:\screen.txt",1)
$File("C:\screen.txt",2)
$File("C:\screen.txt",3)
$File("C:\screen.txt",4)

And replace the content of screen.txt with another
program of mine. screen.txt contains e.g.

$Right($MemFree MB RAM,$10%)$Right(Up $UpTime,$20%
) $Time(hh:nn)
...

With 5.2, all Variables were replaced recursively, but
when using 5.3, $MemFree is not working, that means:
The display shows "$MemFree" instead of the number.
When I directly use the line in lcd smartie, it works.

So there seems to be a bug in recoursively replace the
variables.

Discussion

  • Chris Lansley

    Chris Lansley - 2005-02-04

    Logged In: YES
    user_id=1114156

    "With 5.2, all Variables were replaced recursively"

    That's not true - it replaced variables in a specific order
    and not recursively. In 5.2 File was processed before
    $MemFree. In 5.3 $MemFree is processed before $File.

    [In 5.3, $dll() is processed recursively - it's parameters
    and result are completely processed - so a work around would
    be to implement a simple plugin to read a file].

    But - still, I think the result from $File should be
    processed, and so this is a bug.

     
  • Chris Lansley

    Chris Lansley - 2005-02-12
    • priority: 5 --> 3
     

Log in to post a comment.