Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Map report error 9


LGDR
 Share

Recommended Posts

Hello,

I have a bug with the tutorial : (Map Report)
http://www.touchofdeathforums.com/smf2/index.php/topic,62302.0.html

with eclipse 3.0 .

**Client:**

**Error '9': Subscript out of Range**

```
HandleDataSub(SMapReport) = GetAddress(AddressOf HandleMapReport)

```
How to fix please ? thanks you
Link to comment
Share on other sites

Did you do this step of the tutorial?

> **At the end of modHandleData, add this:**
> ```
> Private Sub HandleMapReport(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)
>     Dim Buffer As clsBuffer
>     Dim MapNum As Integer
>
>     Set Buffer = New clsBuffer
>     Buffer.WriteBytes Data()
>    
>     frmMapReport.lstMaps.Clear
>    
>     For MapNum = 1 To MAX_MAPS
>         frmMapReport.lstMaps.AddItem MapNum & ": " & Buffer.ReadString
>     Next MapNum
>    
>     frmMapReport.Show
>    
>     Set Buffer = Nothing
> End Sub
>
> ```
Link to comment
Share on other sites

@Synergy:

> I'd suggest going through and redoing the whole tutorial, you probably missed something.

I redid the tutorial and its not working.  :confused:

**Client:**

**Error '9': Subscript out of Range**

```
HandleDataSub(SMapReport) = GetAddress(AddressOf HandleMapReport)

```
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...