Assingning UserDefined Datatypes (Lset)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Assingning UserDefined Datatypes (Lset)

  1. #1
    RSundar Guest

    Assingning UserDefined Datatypes (Lset)


    In the Genereal Declarations of standard module
    Type UsersRecord
    User As String * 12 ' User Name '
    Group As String * 12 ' Group Name '
    ActYn As String * 1 ' Active Yes/No Flag '
    Node As String * 15 ' Node Name '
    FILL1 As String * 60
    End Type
    Type UsersRemap0
    Record As String * 100 ' Remap whole rec '
    End Type

    In the procedure Code
    dim aBuf as UsersRecord
    dim bBuf as UsersRemap0

    Lset aBuf= bBuf

    This gives me type mismatch error.The Vb on line Help says it
    is correct. Is there a way to workaround using Api calls for string manipulation
    Any help from someone.




  2. #2
    Colin McGuigan Guest

    Re: Assingning UserDefined Datatypes (Lset)

    RSundar wrote in message <38ce70f4@news.devx.com>...
    >
    >In the Genereal Declarations of standard module
    >Type UsersRecord
    > User As String * 12 ' User Name '
    > Group As String * 12 ' Group Name '
    > ActYn As String * 1 ' Active Yes/No Flag '
    > Node As String * 15 ' Node Name '
    > FILL1 As String * 60
    >End Type
    >Type UsersRemap0
    > Record As String * 100 ' Remap whole rec '
    >End Type
    >
    >In the procedure Code
    >dim aBuf as UsersRecord
    >dim bBuf as UsersRemap0
    >
    >Lset aBuf= bBuf
    >
    >This gives me type mismatch error.The Vb on line Help says it
    >is correct. Is there a way to workaround using Api calls for string

    manipulation
    >Any help from someone.


    This works fine for me (VB6, SP3)

    If it continues to not work, you can always make bBuf into a regular string
    instead of a UDT.


    --
    Colin McGuigan




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center