Project

General

Profile

Bug #131

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

Added by David Baldwin about 4 years ago. Updated about 4 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$ :

#1

Updated by David Baldwin about 4 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.

#2

Updated by Francois Lionet about 4 years ago

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

Fixed!

#3

Updated by David Baldwin about 4 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF