hi friends,
i have one string field in which i am converting time value and value of that string is "-1:00:00" but i want that in my report it checks that if that field contains negative value than converts it in positive please help me out.

Recommended Answers

All 2 Replies

hi friends,
i have one string field in which i am converting time value and value of that string is "-1:00:00" but i want that in my report it checks that if that field contains negative value than converts it in positive please help me out.

Take a look at crystal-report functions - http://www.crystalreportsbook.com/Chapter06_XI.asp

but i tried in this way in my code and works fine
earlytime = earlytime.Substring(1, 7)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.