Strings and Shorts from vb.net to vb6 component ??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • al

    Strings and Shorts from vb.net to vb6 component ??

    Hi,

    How should i pass Short and String datatype parameters from vb.net to
    vb6 component. Should I use conversion function or it will work just
    fine with no conversion.

    MTIA,
    Grawsha
  • Armin Zingler

    #2
    Re: Strings and Shorts from vb.net to vb6 component ??

    "al" <grawsha2000@ya hoo.com> schrieb[color=blue]
    >
    > How should i pass Short and String datatype parameters from vb.net
    > to vb6 component. Should I use conversion function or it will work
    > just fine with no conversion.[/color]

    Short and String shouldn't make problems. Short is Integer in VB6 as you
    probably know.

    In general:
    Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.



    --
    Armin

    How to quote and why:



    Comment

    • Ken Tucker [MVP]

      #3
      Re: Strings and Shorts from vb.net to vb6 component ??

      Hi,

      Strings should pass fine. A VB.NET short is the same as a VB6
      integer.

      Ken
      -----------------
      "al" <grawsha2000@ya hoo.com> wrote in message
      news:66edfd3c.0 405202302.1f934 70d@posting.goo gle.com...[color=blue]
      > Hi,
      >
      > How should i pass Short and String datatype parameters from vb.net to
      > vb6 component. Should I use conversion function or it will work just
      > fine with no conversion.
      >
      > MTIA,
      > Grawsha[/color]


      Comment

      • al

        #4
        Re: Strings and Shorts from vb.net to vb6 component ??

        "Ken Tucker [MVP]" <vb2ae@bellsout h.net> wrote in message news:<uMRWFCyPE HA.3988@tk2msft ngp13.phx.gbl>. ..[color=blue]
        > Hi,
        >
        > Strings should pass fine. A VB.NET short is the same as a VB6
        > integer.
        >
        > Ken
        > -----------------
        > "al" <grawsha2000@ya hoo.com> wrote in message
        > news:66edfd3c.0 405202302.1f934 70d@posting.goo gle.com...[color=green]
        > > Hi,
        > >
        > > How should i pass Short and String datatype parameters from vb.net to
        > > vb6 component. Should I use conversion function or it will work just
        > > fine with no conversion.
        > >
        > > MTIA,
        > > Grawsha[/color][/color]

        I thought I should make conversion since short in vb6 is 8-bit integer
        while it is 16-bit in vb.net and the same thing with string type.


        grawsha

        Comment

        • Armin Zingler

          #5
          Re: Strings and Shorts from vb.net to vb6 component ??

          "al" <grawsha2000@ya hoo.com> schrieb[color=blue]
          >
          > I thought I should make conversion since short in vb6 is 8-bit
          > integer while it is 16-bit in vb.net and the same thing with string
          > type.[/color]

          Short does not exist in VB6. Short in VB.Net is 16-bit, and 16-bit in VB6 is
          Integer.

          VB6 VB.Net
          8 bit Byte Byte
          16 bit Integer Short
          32 bit Long Integer
          64 bit - Long


          --
          Armin

          How to quote and why:



          Comment

          Working...