You are not logged in.
Pages: 1
In general, regardless of language, when saving an input in a textbox what's the variable? I tried $0 and $1.
Example in Prima (Perl):
Prima::Simple->write('/work/prima/mytest', "$0");
Markku
Offline
$0 is your program and $1 to whatever are the arguements.
rasat --hellyeah --getRdone something
$0 /usr/bin/rasat
$1 --hellyeah
$2 --getRdone
$3 someting
Try storing it at top the top (or as soon as you can) as something different like:
arg_one=$1
then call on it as $arg_one.
Offline
Thanks, I didn't know the details of these variable numbers.
Didn't answer the question but I think its the "wierdness" of Prima. It seems when dealing with reading and writing text files it runs "around the bush". The documentation, examples are of no practical value for a newbie like me.
Example to save a text, all samples open/read the file and then save/write the same file. The new entries will never be saved, only the original content if any. This is why I asked what variable stores the new entries in the textbox or inputbox before saved in the text file.
Markku
Offline
how is that 'regardless of language'?
I've never heard of Prima, so I can't say how you use it. In swing, there is a JTextArea.getText() method, I know this off the top of my head. There must be something similar for your toolkit.
Dusty
Offline
oh, didn't read your original post right.
It might be something like $* if its similar to bash
Offline
how is that 'regardless of language'?
I thought there is a common storage variable like $0 for all languages.
Thanks, I took a look online about the TextArea, there seems to be a class. Hhmm, why could not Prima doc say about it in the samples.
I will also try $*.
Markku
Offline
Pages: 1