Project

General

Profile

Bug #407

Print Using improperly handles ; or , at the end of the line.

Added by Brian Flanagan over 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
High
Target version:
-
Start date:
07/04/2020
Due date:
% Done:

0%

Estimated time:
2:00 h
Affected version:

Description

AOZ is apparently incorrectly assumes that either the ; or , indicates another variable name is to follow.
Hence, the "undefined" errors. Example:

#manifest: "pc"
#splashScreen: false
#speed: "safe"
#fps: false

Screen Open 0,640,400,8,Hires

qty=127 : rate#=12.53
Print Using "### pieces at ";qty;
Print Using "##.## per unit.  ";rate#,
Print Using "Total cost: ####.##";qty*rate#
Print "Line 2"

NOTE: "Line 2" should be on the 2nd line of the display. Everything else should be on the first line.

There should be a larger spacing before "Total cost" due to the comma.

#1

Updated by Brian Flanagan over 3 years ago

  • Assignee set to AOZ Studio Team
  • Priority changed from Normal to High
  • Estimated time set to 2:00 h
  • Affected version changed from 0.9.9.3 to Beta RC2

Re-tested in Beta RC2. This is still a problem.

#2

Updated by Francois Lionet over 3 years ago

  • Status changed from New to Resolved
  • Assignee changed from AOZ Studio Team to Francois Lionet

Fixed!

#3

Updated by Brian Flanagan about 3 years ago

  • Status changed from Resolved to Feedback
  • Affected version changed from Beta RC2 to 1.0.0 (B5)

Only partially fixed in version 1.0.0 (B5).

Semicolon works at end of line now.

Comma does NOT. It causes a type mismatch error.

#4

Updated by Brian Flanagan almost 3 years ago

  • Affected version changed from 1.0.0 (B5) to 1.0.0 (B6a)

Comma at end of Print using still doesn't work in 1.0.0 (B6a).

It causes type mismatch error. Here's another example.

Test=123
Print Using "###";Test,
Print " <<<"

The above SHOULD result in:

123 <<<

...but instead, fails.

#5

Updated by Francois Lionet almost 3 years ago

  • Status changed from Feedback to Resolved

Fixed, and also the lack of dot when you did Print Using "##.## per unit. ";rate#, (it was taking the second dot in account instead of the first).
The example bnow prints fine on one line. :)

Also available in: Atom PDF