Thursday, October 21, 2010

VB: How do I return the number of characters in the string and the location of a period?

Would anyone know how to go about doing this in VB.net?

Given a string, return the number of characters in the string and the location of a period “.” in the string (-1) if it is not there.VB: How do I return the number of characters in the string and the location of a period?
dim st as string=';this.that';

dim intLen as integer=st.Length

dim intPeriod as integer=st.indexof(';.';)

No comments:

Post a Comment