Author Topic: PRINT USING partly broken  (Read 3121 times)

0 Members and 1 Guest are viewing this topic.

Offline RhoSigma

  • QB64 Developer
  • Forum Resident
  • Posts: 565
    • View Profile
PRINT USING partly broken
« 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.
« Last Edit: January 22, 2019, 03:55:50 am by RhoSigma »
My Projects:   https://qb64forum.alephc.xyz/index.php?topic=809
GuiTools - A graphic UI framework (can do multiple UI forms/windows in one program)
Libraries - ImageProcess, StringBuffers (virt. files), MD5/SHA2-Hash, LZW etc.
Bonus - Blankers, QB64/Notepad++ setup pack

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: PRINT USING partly broken
« Reply #1 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.
Granted after becoming radioactive I only have a half-life!

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: PRINT USING partly broken
« Reply #2 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...
Logic is the beginning of wisdom.

FellippeHeitor

  • Guest
Re: PRINT USING partly broken
« Reply #3 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).
« Last Edit: January 13, 2019, 09:17:20 am by FellippeHeitor »

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: PRINT USING partly broken
« Reply #4 on: January 13, 2019, 12:21:21 pm »
My feedback:
No trouble in QB64x32 on Win10 64bits

version 1.2 dev  git e490b1a...

Programming isn't difficult, only it's  consuming time and coffee