• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

Text List size

Hi, what's the LotusScript syntax for getting the size of a TextList field?

> doc.TextListField

Thanks.
0
pw05
Asked:
pw05
1 Solution
 
qwaleteeCommented:
Dim doc as NotesDocument, item as NotesItem
Set doc = ..... 'whatever you want to set it to
Set item = doc.getFirstItem("nameOfTextListItem_orAnyItem_forThatMatter")
Print "Item occupied" item.valueLength "of storage"

This may not be the value you expect, as it includes overhead... Unicode characters can occupy two bytes... each element in the text list needs two bytes of storage to indicate element length... the text list itself needs two bytes to indicate the number of elements.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now