[Gambas-user] using 'output to' and error to'
Brian G
brian at westwoodsvcs.com
Mon Jul 13 16:33:49 CEST 2020
When using output to or error to
It seems that it only changes the destination for print "this string and error "this string"
but when using #print file.out, "this string" or print #file.err, "this string" the output is not redirected
Is this deliberate?
example:
Public Sub Main()
Dim mfile As File
mfile = Open Temp() For Write Create
Output To mfile
Print "hello standard"
Print #File.out, "Hello file.out"
End
Always put the second print to the console, and the first to the file.
The same happens for Error to
Error "Hello standard"
print #file.err,"Hello file.err"
Thank You
Brian G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200713/fe2c0fc7/attachment.html>
More information about the User
mailing list