Cast from string "" to type 'Long' is not valid.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • carl34
    New Member
    • Mar 2008
    • 2

    Cast from string "" to type 'Long' is not valid.

    Hi Can someone tell me why am i getting this error?

    Cast from string "" to type 'Long' is not valid. Location: at Microsoft.Visua lBasic.Compiler Services.LongTy pe.FromString(S tring Value) at ItemExchange.Wo rkerX9Process.C reateAdministra tiveReturnRepor t(CJOB& objJob, CExchangeItemDa tas& objExchangeItem Datas, CDelimitedExpor tFile& objAdministrati veReturnReport, ExportFileTypeE num enmReportType

    Kind regards,

    Carl
  • daniel aristidou
    Contributor
    • Aug 2007
    • 494

    #2
    Originally posted by carl34
    Hi Can someone tell me why am i getting this error?

    Cast from string "" to type 'Long' is not valid. Location: at Microsoft.Visua lBasic.Compiler Services.LongTy pe.FromString(S tring Value) at ItemExchange.Wo rkerX9Process.C reateAdministra tiveReturnRepor t(CJOB& objJob, CExchangeItemDa tas& objExchangeItem Datas, CDelimitedExpor tFile& objAdministrati veReturnReport, ExportFileTypeE num enmReportType

    Kind regards,

    Carl
    Well the reason you are getting the error is becuase a string eg "adl" is being used where a integer is required eg "123"
    However the code here is required for us to correct your error

    Comment

    Working...