Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Difference between Cstr and ToText

I am searching all over internet, what is the difference between Cstr and totext?

If they are same, then which one to use when?

Tags:
Former Member
replied

Hi Iti

There is a difference. If you are familliar to Visual Basic family of functions then Cstr() will not be a new function for you.

Since Crystal Reports supports Visual Basic syntax it also supports this function. Whereas ToText() is from Crystal Reports implementation though it is available in both Visual Basic and Crystal syntax.

I don't remember if I had used Totext() as part of Visual Basic anytime.

The functionality of both functions remains same though.

Regards

Nikhil Sabnis

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question