PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
[RESOLVED] Compile error: Invalid use of property-VBForums
Results 1 to 3 of 3

Thread: [RESOLVED] Compile error: Invalid use of property

  1. #1

    Thread Starter
    Lively Member Arispan's Avatar
    Join Date
    Apr 2010
    Location
    Greece, Near Athens
    Posts
    98

    Resolved [RESOLVED] Compile error: Invalid use of property

    Hello everyone,

    I'm making a big project (my biggest project) but I get a "Compile error: Invalid use of property" message.

    Here's my code:
    vb Code:
    1. Private CForm As Form
    2. Public Sub Initialize(Child As Form)
    3. CForm = Child 'This line gives the error
    4. End Sub
    When I call my "Initialize" sub from another form, I get this error.
    Can someone help me ?
    Attached Images Attached Images  
    Last edited by Arispan; Jul 9th, 2010 at 06:51 AM.
    MOBO: Asrock X58 Extreme
    CPU : Core i7 950 @ 3.07Ghz
    Ram : 8GB
    Hard Drive : 1.5 TB (1 TB, 500GB)
    Graphics : ATI Radeon HD 5670
    Dual Boot : Windows XP Home, Windows 7 Ultimate x64


    _____________________
    If a reply has helped you, please consider rating it.

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Compile error: Invalid use of property

    Try: Set CForm = Child

  3. #3

    Thread Starter
    Lively Member Arispan's Avatar
    Join Date
    Apr 2010
    Location
    Greece, Near Athens
    Posts
    98

    Re: Compile error: Invalid use of property

    Thanks baja_yu! Now everything works fine !

    P.S. I think my thread just broke a record ("the fastest solved thread in vforums").
    Last edited by Arispan; Jul 9th, 2010 at 08:23 AM.
    MOBO: Asrock X58 Extreme
    CPU : Core i7 950 @ 3.07Ghz
    Ram : 8GB
    Hard Drive : 1.5 TB (1 TB, 500GB)
    Graphics : ATI Radeon HD 5670
    Dual Boot : Windows XP Home, Windows 7 Ultimate x64


    _____________________
    If a reply has helped you, please consider rating it.

Tags for this Thread

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width