Results 1 to 4 of 4

Thread: type error?

  1. #1

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Resolved type error?

    ---------------------------
    Microsoft Visual Basic
    ---------------------------
    Compile error:

    Forward reference to user-defined type
    ---------------------------
    OK Help
    ---------------------------
    Code:
    Public Type TileType
        Blocked As Boolean
    --->Warp As WarpType
        ID As Long
    End Type
    
    Public Type WarpType
        Map As Long
        X As Long
        Y As Long
    End Type
    i dont get what the error is saying
    Last edited by nareth; Dec 12th, 2004 at 09:22 AM.

  2. #2
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: type error?

    Warptype needs to be declared before Tiletype
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

  3. #3

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: type error?

    ... normally it doesnt matter like functions ...

  4. #4
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: type error?

    I had this the other day myself. C'est La vie
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width