If APP_GLOBAL is defined publicly before the toolbar is clicked on, the same code should work in the Click of the Toolbar.
>I created a application framework which uses the userlogin option.
>
>I want to access the userlogin class via a button on the toolbar.
>
>The File menu access it with the following command:
>
>IIF(APP_GLOBAL.ReleaseForms(),IIF(APP_GLOBAL.SetCurrentUser(.T.),.T., APP_GLOBAL.Release()),.T.)
>
>How can I do a similar command from a toolbar button so I can prompt for the user?
>
>Thanks,
>
>Dennis
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05