Hi,
Sunday, May 16, 2004, 2:24:06 AM, you wrote:
Thanks Ozkan
Even after reading the script tutorial I wouldn't have come up with that.
I couldn't get the "Message" line to work though - all that happened was that a
message box came up with the contents "&(showline)".
-----------------------------------------------------------------------
Yes, sorry. I told you what I did rather than answering exactly :)
-------------------
Never mind. I discovered how to save the randomly selected line to a text file which I
could then display by other means.
------------------------------
Great.
------------------------------
One other point.. as I find quote "gems", I add them to the quotes file. Is there
anyway to get Powerpro to calculate the number of lines in the file automatically
rather than have me manually change the script?
--------------------------------------------------------------
It seems easy with this. I take it from Alex's PPST:
; script that detects the line
; on which the file ends
Local numLine
Local strFile = File.Open("C:\win2.txt", "r")
For (numLine = 1 ; File.EOF(strFile) == 0 ; numLine = numLine + 1)
File.ReadLine(strFile)
EndFor
Debug End of file is in line &(numLine - 1)
------------------------ 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/