[dba-VB] Parsing strings

Stuart McLachlan stuart at lexacorp.com.pg
Fri Apr 11 18:45:55 CDT 2008


Left,Mid,Right etc  are not function of the string object, they are functions in the 
Strings module of the Microsoft.VisualBasic namespace.

i.e., fully qualified it is Microsoft.VisualBasic.Strings.Right() 

On 11 Apr 2008 at 13:26, jwcolby wrote:

> I am trying to parse a string.  I notice that the string object has many 
> methods but it does not seem to have the left, mid and right functions 
> that vba has.
> 
> If I want to split a file name into name and extension how would you do 
> it?  I am just use the existing string functions that we all know and 
> love but am wondering if there is a better (.Net) way.
> 
> Thanks,
> -- 
> John W. Colby
> www.ColbyConsulting.com
> _______________________________________________
> dba-VB mailing list
> dba-VB at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/dba-vb
> http://www.databaseadvisors.com
> 





More information about the dba-VB mailing list