- Code: Select all Expand view
cMainTitle := "MyApp ."
...
DEFINE WINDOW oWnd_pagr MDI FROM 10, 10 TO nVerRes / 3.5, ;
nHorRes / 1.5 TITLE cMainTitle + alltrim( cUserName ) + " . " ;
MENU BuildMenu() PIXEL
I tried and without users name findwindow( 0, cMainTitle ) works fine . But adding user's name in caption the function can't detect . I think , that Window caption in searchs can be compare with the lenght of search string , something left( cWindCaption, len( alltrim( cSearch ) ) ) == alltrim( cSearch ) . How to do that ?
With best regards ! Rimantas .