[Gambas-user] Simple Log Viewer (Gambas Log Viewer)
Charlie Reinl
na2492 at ...9...
Sun Oct 10 11:46:39 CEST 2004
>
>Hi,
>I have created a very simple log viewer with gambas and I need a little
>help.
>My first question is: as I can improve it?
>
>One question still remains: how can I read another log file (e.g.
>error.log) ?
>
>Suggest me code, please :-(
>
>Thanks in advance,
>Vale
>
Salut,
try that, you forgot the 'IF Dialog.OpenFile() THEN RETURN'
PUBLIC SUB Button3_Click()
Dialog.Title = "Select a log file"
Dialog.Path="/usr/local/apache2/logs/access_log"
Dialog.Filter = ["*.log","*.*"]
IF Dialog.OpenFile() THEN RETURN
TextArea1.Text=File.Load(Dialog.Path)
END
Amicalement
Charlie
* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de *
More information about the User
mailing list