Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,557 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,914 people online right now. Registration is fast and FREE... Join Now!




Function to return a String Array in VB5

 
Reply to this topicStart new topic

Function to return a String Array in VB5

tnordahl
9 Apr, 2008 - 02:14 AM
Post #1

New D.I.C Head
*

Joined: 9 Apr, 2008
Posts: 2

Hi.
I use VB5 and have sofar been able to get it to work with a lot of VB6 stuff (USB, MSWinsock v.6) but now I seem to be stuck.
The original problem is the Split function which is not in VB5, but bieing a great beliver in "work arounds" I found a replacement courtesy of C. Eswar Santhosh. He has improved the Split and created the SplitString function which uses string arrays.

While I can declare string arrays in VB5 "Dim a() as String"

I can't decalre a function to return a string array "Function a(b)as String()"

I could modify my own GPS string parser instead of using SplitString, but thats no fun.

I'm was thinking - a Function to fill a Global Byte Array, and return the delimiter locations in a csv string - but then I have to parse that string and chop up the byte array and load it into a string array. (Yuckkk)

Since I'm basically autodidact, I find that I often miss very simple solutions that everybody else seems knows about. Therefore, I call upon you Vizards of VB for help.

Tom
User is offlineProfile CardPM
+Quote Post

tnordahl
RE: Function To Return A String Array In VB5
9 Apr, 2008 - 03:51 AM
Post #2

New D.I.C Head
*

Joined: 9 Apr, 2008
Posts: 2

This has been resolved

Tom
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 11:24PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month