Project

General

Profile

Actions

Bug #407

open

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

Added by Brian Flanagan over 4 years ago. Updated over 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.

Actions #1

Updated by Brian Flanagan about 4 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.

Actions #2

Updated by Francois Lionet about 4 years ago

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

Fixed!

Actions #3

Updated by Brian Flanagan over 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.

Actions #4

Updated by Brian Flanagan over 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.

Actions #5

Updated by Francois Lionet over 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. :)

Actions

Also available in: Atom PDF