Results 1 to 2 of 2

Thread: can i put user-defined type var to collection?

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    32
    if so why i get an error:

    ******************
    Compile error:

    Only user-defined types defined in public object modules can be coerced tp or from a variant or passed to late-bound
    function.
    ******************

    BTW udt variant i defined as public.
    thank You


  2. #2
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    ******************
    Compile error:

    Only user-defined types defined in public object modules can be coerced tp or from a variant or passed to late-bound
    function.
    ******************
    What this means is, your user-defined type must be declared within an object or a module (class module or module) as Public. A UDT from a form cannot be used within a collection in this way.
    -Excalibur

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