stupendo44
04-11-2003, 06:25 AM
How can I retain the spaces in my string? I have a editable text box labeled TitleText. I then have a button called Save. In the action for the Save button, I have the following code:
on (release) {
fscommand ("exec", "cmd" add chr(9) add "/c" add chr(9) add "file1.bat" add chr(9) add TitleText;
The file1.bat contains this code:
echo this test wirked > file1.txt
echo %1 >> file1.txt
it is supposed to output into the second line of file1.txt, the contents of the TitleText field. What happens if I have more than one word in the TitleText field, it will just output the first word. I believe a script could be developed to make sure all the spaces are retained. I dunno. I'm sort of on a tight schedule, so a quick response would be great. Thanks,
Stephen
on (release) {
fscommand ("exec", "cmd" add chr(9) add "/c" add chr(9) add "file1.bat" add chr(9) add TitleText;
The file1.bat contains this code:
echo this test wirked > file1.txt
echo %1 >> file1.txt
it is supposed to output into the second line of file1.txt, the contents of the TitleText field. What happens if I have more than one word in the TitleText field, it will just output the first word. I believe a script could be developed to make sure all the spaces are retained. I dunno. I'm sort of on a tight schedule, so a quick response would be great. Thanks,
Stephen