![]() |
|
![]() | ||
|
Subject:
Visual Basic Question, parsing out a Variable that is comma deliminated.
Category: Computers > Programming Asked by: pmclinn-ga List Price: $10.00 |
Posted:
31 Oct 2002 21:21 PST
Expires: 30 Nov 2002 21:21 PST Question ID: 95038 |
![]() | ||
|
Subject:
Re: Visual Basic Question, parsing out a Variable that is comma deliminated.
Answered By: webadept-ga on 31 Oct 2002 21:46 PST Rated: ![]() |
Hi, The VB Split and Join functions support only one delimiter, and since you are always using a comma for you delimination, there should be no problems with using that command. This article will show you exactly how to do that. VB CodeGuru http://www.codeguru.com/vb/articles/2119.shtml Query +"VB" +Split +Function thanks, webadept-ga |
pmclinn-ga
rated this answer:![]() Your answer works and I did not have to add in module overhead. Thank you! This solution is fast and efficient! The only thing missing, that would of given you a 5 star rating, was how the "output" would look. |
![]() | ||
|
Subject:
Re: Visual Basic Question, parsing out a Variable that is comma deliminated.
From: vamsikris-ga on 31 Oct 2002 22:50 PST |
Hi, I have a very simple way to solve the problem.Try this code in the event handler u want to execute your task. I have user text control array for display.I think that should not be problem Dim mystring As String mystring = "1,vamsi,krishna,7248038" temp = mystring i = 0 Do If InStr(1, temp, ",") <> 0 Then a = Mid(temp, 1, InStr(1, temp, ",") - 1) Text1(i) = a temp = Mid(temp, InStr(1, temp, ",") + 1) Else a = temp Text1(i) = a Exit Do End If i = i + 1 Loop Until Len(temp) = 0 Hope your problem will be solved regards Vamsi Krishna India |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |