Wednesday, May 12, 2004, 8:21:23 AM, you wrote:
Hello group
I'm a very happy but basic Powerpro user.
Can anyone advise me if Powerpro can be used to randomly select a single line from a
text file, and then save that line to a text file. If so, could you please explain how.
What I'm trying to do is display a random quote-of-the-day from a text file on my
computer.
------------------------------------------------------------------------------------------------
Try this simple script
----
;Change 30 with the munber of lines in your text file
local qlines = random(30)
;Change below path to your text file.
local showline = readline ("f:\Documents\quotesfile.txt",qlines)
Message 10 &(showline)
Quit
------------------------------------------------------------------------------------
Save it with the name "quotations.powerpro" and run it as ".qotation"
--
Ozkan
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/