Results 1 to 5 of 5

Thread: SizeOf ???

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Location
    Denmark
    Posts
    16
    Hello,


    When working with Delphi, asm or any other language there's a macro called SizeOf. But what is the VB replacement for it ?


    Thanks



    Thomas
    Teenage programmer
    VB6 Pro

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    for the size of what, a structure(Len, or LenB), a file(FileLen)
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Location
    Denmark
    Posts
    16

    Re: SizeOf ?

    I need it like this:


    Type MyStruct
    A as string
    B as string
    end type

    SizeOf(MyStruct)









    Thomas
    Teenage programmer
    VB6 Pro

  4. #4
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    Len(MyStruct)
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Location
    Denmark
    Posts
    16

    Thanks

    I didn't think that would work, I thought I tried that once, but guess I didn't as it's working fine now

    Thanks



    Thomas
    Teenage programmer
    VB6 Pro

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