Dim variables bug (inside "if" statements)

Description: Report bugs of SMBX-38A here.
Forum rules: https://wohlsoft.ru/forum/viewtopic.php?f=64&t=1069
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

Lx Xzit M
Topic author, Moderator
Moderator
Avatar
Lx Xzit M
Topic author, Moderator
Moderator
Reputation: 402
Posts: 757
Joined: 9 Nov 2015
Website

Post #1by Lx Xzit » 25 Aug 2020, 18:36

Variables initialized inside "if" statements doesn't seem to work correctly. Their operations drop random values (probably due a wrong memory address reference?) For example:

Code: Select all

if -1 then
   dim i as integer = 1
   dim j as integer = i+2
   dim k as integer = j-i
   call showmsg("i:"&i&" j:"&j&" k:"&k)
end

It returns:

Code: Select all

i:1
j:1256
k:612
VISIT MY YOUTUBE CHANNEL! LX XZIT
Join our 38A Discord server!

Image

Return to “SMBX-38A Bug reports”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest