Home All Groups Group Topic Archive Search About

Left function not working

Author
18 Mar 2006 11:42 PM
mamin123
Hi,
When I add following to my code it is not working.

pSource = Left(pSource, 49)

Left function is causing this issue and I am not sure what is
incorrect.  I do not get any error when I compile this code but when I
execute the code it is not giving any result.

I am importing following libraries

Imports System.Web.SessionState
Imports Toyscamp.shoppingcart.shoppingcartdb
Imports ccauthorization.ccAuthorize
Imports System.Data.SqlClient
=============================
I read somewhere that i have to add
Imports System.VisualBasic but it is giving me syntax error.

I am using VB.Net

Thanks

Author
19 Mar 2006 6:40 AM
Jon Skeet [C# MVP]
<mamin***@yahoo.com> wrote:
Show quote
> When I add following to my code it is not working.
>
> pSource = Left(pSource, 49)
>
> Left function is causing this issue and I am not sure what is
> incorrect.  I do not get any error when I compile this code but when I
> execute the code it is not giving any result.
>
> I am importing following libraries
>
> Imports System.Web.SessionState
> Imports Toyscamp.shoppingcart.shoppingcartdb
> Imports ccauthorization.ccAuthorize
> Imports System.Data.SqlClient
> =============================
> I read somewhere that i have to add
> Imports System.VisualBasic but it is giving me syntax error.
>
> I am using VB.Net

Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Author
20 Mar 2006 3:33 AM
Ken Cox - Microsoft MVP
Are you sure there's a value in pSource?

<mamin***@yahoo.com> wrote in message
Show quote
news:1142725342.099585.196370@i39g2000cwa.googlegroups.com...
> Hi,
> When I add following to my code it is not working.
>
> pSource = Left(pSource, 49)
>
> Left function is causing this issue and I am not sure what is
> incorrect.  I do not get any error when I compile this code but when I
> execute the code it is not giving any result.
>
> I am importing following libraries
>
> Imports System.Web.SessionState
> Imports Toyscamp.shoppingcart.shoppingcartdb
> Imports ccauthorization.ccAuthorize
> Imports System.Data.SqlClient
> =============================
> I read somewhere that i have to add
> Imports System.VisualBasic but it is giving me syntax error.
>
> I am using VB.Net
>
> Thanks
>

AddThis Social Bookmark Button