PDA

View Full Version : can't load registers from file when filename is in a [tregX]



Chrickel
September 15th, 2003, 05:34 AM
Did somebody manage to load registers from a (XML-) file where the filename is build by the numbuilder-plugin?

After having pressed some 0-9 buttons on my remote, the filename generated by the numbuilder-plugin is stored in the register [treg1] (ex. C:\000123.xml).
The "file exists" function works fine, so I don't think that there is a problem with wrong slashes. But the "load registers" function just doesn't do anything when I use [treg1] as the filename.
Even with [treg1] as a part of the filename (ex. C:\[treg1].xml with "000123" generated in [treg1] by numbuilder) doesn't work.

I'm using latest girder 3.2.9b.

Thank you for helping me.

Chrickel

miked
September 19th, 2003, 09:58 AM
I'm definitely not an expert on this subject, but I think you'll have to generate a script to do what you want.

Something like:



filename = 'C:\' .. treg1 .. '.xml'


I'm not sure if you can use variables in parameters like what you're trying to do -- c:\[treg1].xml. Running a short variable manipulation script with the above line should create a variable named filename that concatenates treg1 in between the c:\ and the .xml.