Skip to Content

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

Problem with Javascript - Length Function

Hi:

I am facing a problem.

The following javascript code doesnt work.

var str="Test Message.";

xfa.host.messageBox(str.length);

I am not sure why this is not working, any clues?

Thanks

Vijai

replied

HI

This javascript works

var str = "hello";

xfa.host.messageBox(""+str.length);

Regards

Thashin

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