object to long datatype converion
Posted: Mon Aug 09, 2010 5:52 am
Hi
I need to cconvert object datatype to long.
I am using the switch statement like this.
Switch(
DownloadTourMaster.CalculateExpectedDuration=0,
0,
DownloadTourMaster.CalculateExpectedDuration > 0,
DownloadTourMaster.TourCount + DownloadTourMaster.MissedCount
)
In above code DownloadTourMaster.CalculateExpectedDuration is the object datatype. Its showing error as runtime that can't assign object or int to > operator.
Please suggest me. Its very urgent.
Thanks
Vikas
I need to cconvert object datatype to long.
I am using the switch statement like this.
Switch(
DownloadTourMaster.CalculateExpectedDuration=0,
0,
DownloadTourMaster.CalculateExpectedDuration > 0,
DownloadTourMaster.TourCount + DownloadTourMaster.MissedCount
)
In above code DownloadTourMaster.CalculateExpectedDuration is the object datatype. Its showing error as runtime that can't assign object or int to > operator.
Please suggest me. Its very urgent.
Thanks
Vikas