![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

Hi!
On Mon, 16 Dec 2002, Roger Dube wrote:
> The question is.. when my turnkey opens the file "automatically" by
> clicking on the file itself, where can my turnkey "find" the filename so it
> can process it properly?
If I am not mistaken, the program is launched as if you had typed in the
command line "program-name file-name". You should be able to get the file
name as the second command line argument (or argv(1) in C parlance). I
don't have SF right in front of me here, but I think you should be able to
get the argument without much trouble.
It seems that there is an ARGC and ARGV in Swift, but they're not
documented in the FPM or Swift User's Manual, so you'll have to
interrogate your system source to figure out how to use them!
Jos'h
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe sftalk" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/sftalk -- check them out!
Search the archives! Visit http://www.forth.com/search for details.
Received on Mon Dec 16 2002 - 13:06:27 PST
This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:28 PST