Results 1 to 2 of 2

Thread: IDispatch is not working inside a Type

  1. #1
    Member
    Join Date
    Aug 2015
    Location
    Keralam, India
    Posts
    121
    Rep Power
    21

    IDispatch is not working inside a Type

    IDispatch is not working inside a Type
    Type tList
        pList As IDispatch  '\\ It works if i put this outside the type block.
        Function _Create()
            Me.pList = NewCom("Scripting.Dictionary")
        End Function
    End Type
    Dim myList As tList
    
    Result - Error
    Description - Something is incorrect. A keyword is not supposed to be present in the current position. See error Additional Info area for indications about which keyword is producing this error.
    Line Code : Me.pList = NewCom("Scripting.Dictionary")
    Do i miss something ?

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Hello,

    this functionality is currently not supported. As help file for the topic TYPE (or UDT User Defined Types) mentions, supported as numeric, string, variant types + other user defined types and unions.

    iDispatch is not currently available.

    I just did adjustment to the docs to make it more explicit, will be present in next release.


    Petr
    Attached Images Attached Images
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. iDispatch variable cause thinBasic crash
    By DirectuX in forum thinBasic General
    Replies: 1
    Last Post: 25-01-2020, 12:49
  2. Some inside at ... Microsoft
    By ErosOlmi in forum Technology
    Replies: 0
    Last Post: 28-02-2008, 22:37
  3. Inside an HD
    By ErosOlmi in forum Technology
    Replies: 2
    Last Post: 06-05-2007, 00:40

Members who have read this thread: 1

Posting Permissions

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