ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Little bit of Java in VB? (https://www.excelbanter.com/excel-programming/308368-little-bit-java-vbulletin.html)

Soulblade

Little bit of Java in VB?
 
Hi

Those of you that know Java (not the liquid), please help me out.

Remeber in Java one can build up a string seperated by a character o
your choice (eg; #, *, &, etc.) You then use stringTokenizer t
identify this character and to seperate the words.

Is there a way to do this in VB?

Thanx in advanc

--
Message posted from http://www.ExcelForum.com


Chip Pearson

Little bit of Java in VB?
 
I'm not familiar with Java, but you might want to use the Split
function. E.g.,


Dim S As String
Dim Arr As Variant
Dim N As Integer
S = "abc|def|ghi"
Arr = Split(S, "|")
For N = LBound(Arr) To UBound(Arr)
Debug.Print Arr(N)
Next N


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"Soulblade " wrote in
message ...
Hi

Those of you that know Java (not the liquid), please help me

out.

Remeber in Java one can build up a string seperated by a

character of
your choice (eg; #, *, &, etc.) You then use stringTokenizer to
identify this character and to seperate the words.

Is there a way to do this in VB?

Thanx in advance


---
Message posted from http://www.ExcelForum.com/




Soulblade[_2_]

Little bit of Java in VB?
 
Hmm. Looks like the thing I'm looking for.

Thanks a lot

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 02:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com