|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Left function not workingWhen 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 <mamin***@yahoo.com> wrote:
Show quote > When I add following to my code it is not working. Could you post a short but complete program which demonstrates the> > 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 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 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 > |
|||||||||||||||||||||||