Harry,
Actually it's worse than you thought - the characters keyboarded 'skip' the GetFile() call and will then reappear in your program whenever there's a field to put text in. This is because typing into the GetFile() box doesn't affect the visual choice list at all. You can pick with the mouse or type the file name.
Unfortunately I don't know any way around it. You may just have to let the user pick his report, or write your own combo box lookup from a list of report files. With the combo you can pick any report in advance.
>this little snippet works a treat in FP2.6(DOS)
>
> WAIT WINDOW 'Locating Report. Please Wait...'nowait
> IF NOT EMPTY(REP)
> KEYBOARD REP
> ENDIF
>
> m.repname = UPPER(ALLTRIM(GETFILE('FRX','Report form')))
>
>
>it brings up the getfile dialogue and providing the parameter 'rep' has been passed, navigates its way to the report filename the user selects from the reports database (i.e "rep"). They can then confirm that choice or choose another report if they prefer.
>
>I can't get anything like this working in vfp. The getfile window seems to 'clear typeahead' so that no amount of keyboard strokes make any difference at all.
>
>Is there a way to make file selection friendlier in vfp?
>
>Harry