Project

General

Profile

Actions

Bug #131

closed

Mid$=, Right$=, Left$=, Yet another (weird) problem

Added by David Baldwin almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
02/05/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

My contender for 'Weirdest Bug' award.

This code throws up an internal error:-

S=12345
S2$="000000"
S1$=Str$(S)
SL=Len(S1$)-1
S1$=Right$(S1$,SL)
Right$(S2$,SL)=S1$

If it is changed to this (ie: adding something to the end of line 6, no error:-

S=12345
S2$="000000"
S1$=Str$(S)
SL=Len(S1$)-1
S1$=Right$(S1$,SL)
Right$(S2$,SL)=S1$ //No error now

Or this:

S=12345
S2$="000000"
S1$=Str$(S)
SL=Len(S1$)-1
S1$=Right$(S1$,SL)
Right$(S2$,SL)=S1$ :

Actions #1

Updated by David Baldwin almost 5 years ago

Now, in version 0.9.5, this code is causing a phantom entry in the application.js code.

this.vars=
{
:""
}

Code extracted from both compiled versions:-

this.aoz.setRight$(this.vars.S1$,{name:"S2$",type:2},this.vars.SL); <-- This is the working one.

this.aoz.setRight$(this.vars.S1$,{name:"",type:2},this.vars.SL); <-- Note the name is "S2$" is missing - not working.

Actions #2

Updated by Francois Lionet almost 5 years ago

  • Status changed from New to Resolved
  • Target version set to 0.9.6.1

Fixed!

Actions #3

Updated by David Baldwin almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF