Re: [Gambas-user] using echo command within EXEC

2011-01-20 Thread Dimitris Anogiatis
Hey vikram, Try this subroutine. Make a new module and add this in it PUBLIC SUB append2log(text AS String) DIM tmpFile AS File tmpFile = OPEN User.Home &/ "Desktop/test1.txt" FOR APPEND WRITE #tmpFile, text & gb.NewLine, Len(text & gb.NewLine) CLOSE #tmpFile END if for example you call your mod

[Gambas-user] using echo command within EXEC

2011-01-19 Thread vikram
Hi, I am using Gambas 2.21, on Debian Squeeze. I am trying to keep a log of the things my application does, for instance events like forms opening, errors can be logged. I am thinking of using the SHELL with echo command to write to a log file. For example, using SHELL i would use: SHELL "ech