Are those Bugs??


[ Follow Ups ] [ BasicCard User Forum ]

Posted by alexandre (194.236.154.174) on April 22, 2003 at 10:47:17:

I found two problems.

First -

If we have:

"Public data$ As String
Public i As Integer

For i=1 to 7 step 1
data$(i) = Chr$(34)
Next i"

data$ is never set to anything and is always a empty String but if I declare some value for data$ before like

Public data$ As String = "1234567890"

Then it works. Is this a Bug or is this supposed to be like that???


Second:

If we have

"Public data$ As String
Public i As Integer

For i=0 to 7 step 1
data$(i+1) = Chr$(34)
Next i"

This doesn't work as it should. i+1 seems to be ignored and only i seems to be used thus giving an error in the first loop because data$(0) is an error.
Although if you do this instead:

"Public data$ As String
Public i As Integer
Public r As Integer

For i=0 to 7 step 1
r = i+1
data$(r) = Chr$(34)
Next i"

This works perfectly as it should.

Are those bugs or are they supposed to be like that?? I have tried only in the terminal program so I don't know if the card would behave equally.

Best Regards

Alex




Follow Ups:


[ Follow Ups ] [ BasicCard User Forum ]