|
-
Feb 12th, 2003, 11:49 AM
#1
Thread Starter
Frenzied Member
Fixed length string questions.
VB 6.00 gave error for the following.
VB Code:
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.
-
Feb 12th, 2003, 12:00 PM
#2
According to Help, you should be able to do something like this in .net ...
VB Code:
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
-
Feb 12th, 2003, 12:02 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|