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.
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.
- 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.
- Status changed from New to Resolved
- Assignee changed from AOZ Studio Team to Francois Lionet
- 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.
- 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.
- 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