QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: RhoSigma on January 12, 2019, 04:08:50 pm

Title: PRINT USING partly broken
Post by: RhoSigma on January 12, 2019, 04:08:50 pm
'--- broken syntax ---
PRINT "Number:"; USING " ######.##"; 12345.67 'doubles the 'Number:' output (ie. it prints "Number:Number:  12345.67")

'--- working syntax ---
PRINT USING "Number: ######.##"; 12345.67 'this is ok (ie. it prints "Number:  12345.67")

Don't know since which built, just found out today using the latest dev built. I'm sure it was working in former versions, probably it was introduced when fixing the last PRINT USING issue with TAB usage (if I remember right). It's the same wrong behavior in both x32 and x64 versions.
Title: Re: PRINT USING partly broken
Post by: Cobalt on January 12, 2019, 05:01:36 pm
works with August 17th DB but causes doubling at October 30th Build.

Must state in my opinion that looks like unhealthy code, but what ever floats some peoples boats, as its QB45 correct.
Title: Re: PRINT USING partly broken
Post by: johnno56 on January 13, 2019, 08:23:59 am
Works fine for me... Linux Dev build 2018-08-02-01-44-32_b872d5c (got the version from the 'tarball' filename. I couldn't find any "about" info in the IDE or amongst the files...
Title: Re: PRINT USING partly broken
Post by: FellippeHeitor on January 13, 2019, 08:58:05 am
Thanks for reporting, RhoSigma.

I got it fixed on my local version and the fix will be available in the dev channel soon (I'll let you know here).
Title: Re: PRINT USING partly broken
Post by: TempodiBasic on January 13, 2019, 12:21:21 pm
My feedback:
No trouble in QB64x32 on Win10 64bits

version 1.2 dev  git e490b1a...