LassoScript Utility
Basics Browse Detail

[WAP_MaxColumns]

Tag Link [WAP_MaxColumns] Category Client
Type Substitution Source Available Yes
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type Integer Security None
Implementation LDML Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Description

[WAP_MaxColumns] returns the number of text columns in the screen of the current client's WAP browser.

This information is reported by the WAP browser. Not all browsers may supply this information.

Syntax

[WAP_MaxColumns]

Parameters

No Parameters Required.

Examples

To truncate fields to the width of a WAP browser's screen:

Use the [WAP_MaxColumns] tag to determine the width of the WAP Browser's screen and use the [String_Extract] tag to shorten field data to that length. The results are shown for a 12 character display, cutting off the last character of 'Surname, John'.

[Inline: -FindAll,
    -Database='Contacts',
    -Table='People']
  [Records]
    <br>[String_Extract: -StartPosition=0,
      -EndPos=(WAP_MaxColumns),
      (Field: 'Last_Name') + ', ' + (Field: 'First_Name')]
  [/Records]
[/Inline]

<br>Doe, John
<br>Surname, Joh