print

Coding + IDE + Code-Editor + Syntax + User-Functions + Anything else

print

Postby Slowdown » Sun Apr 03, 2011 7:35 pm

I have,
Code: Select all
TestIt = ReadList(Application.Path & "\\EntryTxt.xml")

'  use Prn for debugging instead of the MsgBox
Sub Prn(PrintIt As String)
   Print PrintIt & "\n"
En Sub


If i use Prn(TestIt) the output works but if i use Print(TestIt) i get
a syntax error telling that a string is expected.
Don't understand it completely, is it because i declare PrintIt as String that the sub spits out the results
without error's ?

Slowdown
p.s. signatures don't work
edit typo
Last edited by Slowdown on Wed Apr 06, 2011 7:20 pm, edited 2 times in total.
Slowdown
 
Posts: 465
Joined: Sat May 01, 2010 7:11 pm
Location: Netherlands

Re: print

Postby berndnoetscher » Wed Apr 06, 2011 6:53 pm

Hi Slowdown,

The print statement expects a string only, which is a mistake. I fixed it, so other data types are allowed as well.

Anyway, you must know that currently the print statement is not completely working as in kbasic.

Activated signatures as well.

Thanks
berndnoetscher
Site Admin
 
Posts: 344
Joined: Thu Mar 25, 2010 9:57 am

Re: print

Postby Slowdown » Wed Apr 06, 2011 7:17 pm

Seems that i found a work around ;)
Activated signatures as well.

Thanks Bernd.
Kind regards,
Slowdown

OSX 10.8.x, VBox Xp, Ubuntu 32/64 bit, EOS 64 bit
Slowdown
 
Posts: 465
Joined: Sat May 01, 2010 7:11 pm
Location: Netherlands

Re: print

Postby berndnoetscher » Thu Apr 07, 2011 11:09 am

Slowdown wrote:Seems that i found a work around ;)
Activated signatures as well.

Thanks Bernd.


Yes, it works as long as user defined functions do not check the types, which will change in near future.
Anywhere else data types are checked. It is the only missing.
berndnoetscher
Site Admin
 
Posts: 344
Joined: Thu Mar 25, 2010 9:57 am


Return to Questions & Answers

Who is online

Users browsing this forum: No registered users and 0 guests

cron