[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

# Re: [femm] [LUA] savefemmfile

- To: femm@yahoogroups.com
- Subject: Re: [femm] [LUA] savefemmfile
- From: David Meeker <dmeeker@ieee.org>
- Date: Mon, 03 Mar 2003 11:08:24 -0500
- In-reply-to: <001f01c2e1e9$e133e7a0$0100a8c0@mshome.net>
- References: <b3t00h+936b@eGroups.com> <001f01c2e1e9$e133e7a0$0100a8c0@mshome.net>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b; MultiZilla v1.3.1 (a)) Gecko/20030210

`Tielman Slabbert wrote:`

> `Hallo`
> `I am still new to FEMM, and would like to know a little bit more about LUA:`
> `I tried to automatically generate a filename, and save the FEMM file using the command savefemmfile("c:\\directory\\subdirectory\\filename.femm")`
> `The directory must stay the same, and my automatically generated filename was an Integer number. (I tried various methods to mix the string with the variable, eg. ...subdirectory\\",filename,".femm")
> However, it did not work, and FEMM only returned an error. It seems as if there is a trick in mixing variables with strings.`
> `I would be very gratefull if anyone could provide me with an answer.`

>     Thanks
>     Ivan Slabbert

`
The operator that is used to catenate various objects together into one string is two periods (i.e. ..) An example of this syntax would be:`

    i=1
    savefemmfile("c:\\temp\\junk" .. i .. ".fem")

`In this example, where the variable i is used to index the file number, and the file is saved to c:\temp\junk1.fem`

    Dave.
    --
    David Meeker
    email: dmeeker@ieee.org
    www: http://femm.berlios.de/dmeeker

- References:
  - runpost()
    - From: "codeass2003 <pattoj@hotmail.com>" <pattoj@hotmail.com>
  - [LUA] savefemmfile
    - From: "Tielman Slabbert" <tielman01@telkomsa.net>

- Prev by Date: [LUA] savefemmfile
- Next by Date: Re: [femm] [LUA] savefemmfile
- Previous by thread: [LUA] savefemmfile
- Next by thread: Re: [femm] [LUA] savefemmfile
- Index(es):
  - Date
  - Thread