cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Javascript - Length Function

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Any reason why you want to use javascript? The following works for formcalc

var str = "hello"

$host.messageBox(Len(str))

Regards

Thashin

Edited by: Thoshin Naicker on Sep 10, 2008 12:50 PM

Former Member
0 Kudos

HI

This javascript works

var str = "hello";

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

Regards

Thashin

Former Member
0 Kudos

Thashin

Thanks.

Answers (0)