CAS 6


Scripting CharString check for empty values.

The CharString.IsEmpty method can be used to check for zero length strings.

 C ← CharString.New ''

 :If C.IsEmpty ''
     CasSession.MessageBox 'Empty value!'
 :EndIf

Previously CharString.Length was used.

 :If (C.Length'').Eq 0
     CasSession.MessageBox'Empty value!'
 :EndIf