Josh,
 
    It seems to me that the problem you have is with the answer file command.  I don't know what you are trying to do there.  If the file is always going to be in the same place, you could just do something like this.
 
put url "file:c:\windows\desktop\test.txt" into fld "test"
 
As for the web stuff, I have never used that.  It looks like it should work.  However, if you can't get it to work, try asking the Revolution list.
    Also, I am working on your chat stack.  It will take a while longer than I thought it would.  I am going to have to make a server type thing.  However, I don't think it will be too hard.  I have an idea of how to do it.  It will just take time.
 
Scott Slaugh
 
 
----- Original Message -----
From: Josh Dye
Sent: Tuesday, October 23, 2001 3:20 PM
Subject: URL Questions...

Hello,
    I am tring to get a "Chat" program working. What I need Rev to do is something like this...
 
answer file "Open file:" with "c:\chat.txt"
put url ("file:" & it) into fld "chat1"
 
    So, I want it to open a file and put the text of that text file into a fld on command. (Or on MosueUp, if you wish...) But, I canno't get it working. Do any of you know any commands that will enable me to do that?
 
    Remember, I don't want to have to click the file I want to open. I want Rev to open it without me having to do anything but clicking a button.
 
    I know the second command line works, becuase, I tried opening the file manually, and it worked. It put the text of that file into that fld. But, I need it to do it without me having to click anything but the button. (Like I said earlier...)
 
 
    ALSO, I want to do something like this...
 
get fld "ChatEnterText"
    put it into url "file:\\ws1\chat.txt"
 
    I have not tried that yet, but I hope that works. If you have any ideas on how to do that a differant way, please tell me so. Thanks!
 
 
 - Josh Dye

Reply via email to