Im am trying to scan the contacts table and simply print the contact.name. This is my script. But the getSize function does not seem to work ? Any suggestions.
var contactList = new SCFile("contacts");
var i = 1;
var LastRecord = contactList.getSize();
print ("Contact name :\n" + contactList.contact_name);
print ("Record number :\n" + i + " of " + LastRecord);
for (var i=0; LastRecord > i; i++)
{
print ("Contact name :\n" + contactList.contact_name);
print ("Record number :\n" + i + " of " + LastRecord);
}
return i;


Reply With Quote

Bookmarks