Statements

In the Mobile Channels scripting environment, there are five classes of statements:

The assignment statement is of the following form:

<variable> = <expression>

obtains the root URL for the page channel. The platform strings returned by

platStr = Request.ServerVariables("Platform")

are shown in the following table.

String Platform
“WIN32_CE” Windows CE
“WIN32_WINDOWS” Windows 95/Windows 98
“WIN32_NT” Windows NT

Similarly, the Request.QueryString statement returns the value of a specified argument passed to the page as part of the URL. For example, if the URL for a page is named “mctp://MSNBC/ch2?city=seattle,” then the statement

theCity = Request.QueryString("city") 

Assigns “seattle” to the theCity variable.