Results 1 to 3 of 3

Thread: Fixed length string questions.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Location
    Huntingdon Valley, PA 19006
    Posts
    1,151

    Fixed length string questions.

    VB 6.00 gave error for the following.
    VB Code:
    1. Private Function X(Value As Integer) As String*2
    It wanted to terminate statement after As String, indicating that a Function is not allowed to return a fixed length string.

    Is this true? A Function cannot return fixed length string?

    BTW: I read a year or more ago that VB Net does not allow fixed length strings in any context. Is this still true? Is there a way around this in VB net? Any indication that VB net might be enhanced to allow fixed length strings?
    Live long & prosper.

    The Dinosaur from prehistoric era prior to computers.

    Eschew obfuscation!
    If a billion people believe a foolish idea, it is still a foolish idea!
    VB.net 2010 Express
    64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    According to Help, you should be able to do something like this in .net ...
    VB Code:
    1. Dim MyFixedLengthString As New VB6.FixedLengthString(2)

    I don't know for sure though.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    As for the original question...Apparently not.

    :shrug:
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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