Solved

Fixed length string array?

Posted on 2006-11-05
2
220 Views
Last Modified: 2010-04-23
Hello Experts,

I have a fixed length string I would like to put into an array

so for example:

 Dim hello(0) As New VB6.FixedLengthString(15)
 Dim hello(1) As New VB6.FixedLengthString(30)
 Dim hello(2) As New VB6.FixedLengthString(19)

Each string in the array will differ in fixed length...

However visual basic doesn't allow arrays when using fixedlength strings.

Is there any simple way around this?

Thanks Experts.
0
Comment
Question by:DSLX
2 Comments
 
LVL 17

Accepted Solution

by:
ZeonFlash earned 95 total points
ID: 17878817
I'm not sure why you're using old school FixedLengthStrings (hopefully it's for intefacing with an old VB6 object!), but here's how you can do it in .NET:

        Dim hello(3) As VB6.FixedLengthString

        hello(0) = New VB6.FixedLengthString(15)
        hello(1) = New VB6.FixedLengthString(30)
        hello(2) = New VB6.FixedLengthString(19)
0
 

Author Comment

by:DSLX
ID: 17878893
That works, exactly what I was looking for thanks :)
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now