forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


@equal bug
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Fri May 16, 2003 4:40 pm    Post subject: @equal bug Reply with quote

Boy did this drive me crazy Stupid i hope no one else has posted on
this or i'm gonna kill myself for not remembering.

Run the code below, you may want to edit the loop to be shorter though.
Basically a string starting with "e" and any number upto 5119 returns
true with @equal to 0, 00, 000 or any other string of zeros even if you
use quotes. But not if you use @chr(34). I assum there is some logical
Delphi error code reason or something but i sure wasn't happy about it.

Code:

  %x = 0   
repeat 
  if @equal(e%x,000)
      info =
    %x = @succ(%x)
  else
      info not =
    %x = @succ(%x)
  end
until @equal(%x,5119)


BTW - If someone has posted on this don't feel obligated to tell me, I'd rather not know Wink .

moke
Back to top
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri May 16, 2003 5:08 pm    Post subject: Reply with quote

What does the if @equal(e%x,000) line do? Confused
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri May 16, 2003 5:14 pm    Post subject: Re: @equal bug Reply with quote

moke wrote:
But not if you use @chr(34).


The @chr(34) functions makes a 'real' quote, not a 'vds' one...

Works
Code:
%z  = "000"
if @equal(%z,000)
  info Equal
  else
  info Not equal
  end


Works not
Code:
%z  = @chr(34)000@chr(34)
if @equal(%z,000)
  info Equal
  else
  info Not equal
  end

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Fri May 16, 2003 5:25 pm    Post subject: Reply with quote

Skit

I'm aware of that Smile . The issue is that vds is telling me that

e1 = 000
or
e123 = 000
or
e5119 = 000
or
e1 = 0

moke
Back to top
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri May 16, 2003 5:28 pm    Post subject: Reply with quote

Which VDS are you using? Cause I also encounter the problem if I use 3.5. With 4.5 it works just normal...
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Fri May 16, 2003 5:31 pm    Post subject: Reply with quote

I should've mentioned that, I'm using 3.5.
Back to top
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri May 16, 2003 5:34 pm    Post subject: Reply with quote

Seems like a bug to me... Let's hear what the others say...
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri May 16, 2003 5:43 pm    Post subject: Reply with quote

Seems it *was* a bug. I tried it in VDS 2.x and 3.x and it returned
true every time. Tried it in VDS 4.x and a 5 Beta, and it returns
false. So it was a bug, but seems it was resolved as of the 4.x
version.

-Garrett
Back to top
View user's profile Send private message
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Fri May 16, 2003 5:53 pm    Post subject: Reply with quote

I prefer to say it IS a bug in 3.x Smile but not in 4.x. I chose not to
upgrade to 4.x because of other bugs. Of course when 5 is available I'll
be happy to check it out. Fortunately, i can work around it and i've only
lost some time and maybe a little bit of my mind Smile.

moke
Back to top
View user's profile Send private message Send e-mail
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Fri May 16, 2003 6:09 pm    Post subject: Reply with quote

Wow, this is getting a little stranger add "-" or "+" in front of the e# and you still see the bug or compare e1 to e5 and it is still equal.

Code:

  if @equal(-e1,000)
      info =
  else
      info not =
  end

or
Code:

  if @equal(-e1,e7)
      info =
  else
      info not =
  end


moke
Back to top
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri May 16, 2003 8:49 pm    Post subject: Reply with quote

moke wrote:
I prefer to say it IS a bug in 3.x Smile but not in 4.x. I chose not to
upgrade to 4.x because of other bugs. Of course when 5 is available I'll
be happy to check it out. Fortunately, i can work around it and i've only
lost some time and maybe a little bit of my mind Smile.

moke


Is, was, whatever, the bug is no longer an issue since VDS 3 has been
superceeded by a new version. Basically, call it what you want, it's been
resolved and is no longer an issue in VDS.

-Garrett
Back to top
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Sat May 17, 2003 8:10 am    Post subject: Reply with quote

Garrett wrote:

Is, was, whatever, the bug is no longer an issue since VDS 3 has been
superceeded by a new version. Basically, call it what you want, it's been
resolved and is no longer an issue in VDS.


Haven't we been down this road before?? People reporting bugs should be taken seriously, not put down Rolling Eyes

Try playing a little with moke's examples, and I think that you'll find out that this certainly is an issue, in VDS4
as well as VDS3....

E.g.
Code:
%A = "+e1"
%B = "000"

  if @equal(%A,%B)
      info bug
  else
      info no bug
  end



Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat May 17, 2003 9:02 am    Post subject: Reply with quote

Dr. Dread wrote:
Garrett wrote:

Is, was, whatever, the bug is no longer an issue since VDS 3 has been
superceeded by a new version. Basically, call it what you want, it's been
resolved and is no longer an issue in VDS.


Haven't we been down this road before?? People reporting bugs should be taken seriously, not put down Rolling Eyes


At the time Moke did not present any more information that would point
to this being a bug beyond version 3.x and he was stating that he still
considers it a bug since he's using version 3.0. I'm not trying to put him
down, but to clarify at that point that it is not considered a bug anymore
because the bug he had pointed out did not exist in version 4.x and
above. I do not wish to have misinformation being put out, so I wanted
to insure that it was known that it no longer was an issue in more current
versions.

As for the new code he has posted, I have not had a chance to try it yet,
so I can't comment on the new code yet.

-Garrett
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat May 17, 2003 9:12 am    Post subject: Reply with quote

Using the new code Moke posted, VDS 4.x also gets it wrong. VDS ?.?
did not get it wrong. So the bug is present in 4.x but not in ?.?

Doesn't help those who can't upgrade yet, but at least the issue was
resolved in version ..... Oooops! I can't say anything about that here. Twisted Evil

-Garrett
Back to top
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Sun May 18, 2003 12:13 pm    Post subject: Reply with quote

All right. I just see no reason why a serious bug report should be swept off the table just like that.
Especially when all it would take was just to try running moke's last examples to see that it
evidently still is a bug. I know nothing 'bout VDS5, but as long as v.5 is still vaporware then the
@equal function stays an issue in VDS

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group