Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Tips for VB/VB.net

About String Functions

  1. The uniform random variables generated by VB is pretty good. At least it's acceptable according to the test in R.

  2. String functions that return a string can be used with a dollar sign at the end, which is a faster version of the corresponding function.

  3. The function trim gets rid of leading and trailing spaces.

  4. The function instr supports both case sensitive and case insensitive comparisons.

  5. The function split can split a string into a string array.

Comments