ViewSwitch()

Opens a view from a view, copies the information from the old view to the new, and then closes the old view. The ViewName parameter is required if the ViewType parameter is used, and vice versa.

Token ID

AFTKN_CHANGE_VIEW or 629

Syntax

VOID ViewSwitch( [ANSISTRING Filename]; 
                 [ENUM ViewType]; 
                 [ANSISTRING ViewName])

Parameters

Filename As ANSISTRING

Open a view by file name. With this parameter, do not use ViewType and ViewName. (Optional)

ViewType As ENUM

Open a view by menu name and type. With this parameter, do not use Filename. (Optional)

274

Appointment

1

Calendar

276

Mail

278

Note

7

Outbox

288

PhoneMessage

277

Task

ViewName As ANSISTRING

Menu name such as "Mail" or "Appointment w/attach" (see the ViewType parameter). (Optional)