>Does it have to be called from a form? Can't I call it from a .prg, for example as an initial logon screen that checks for user_id and password and initializes an auditing/log file? Would this be an appropriate use?
That's correct, Lincoln. You would use a modal form here so the user MUST log in or exit before he goes on to any other part of the program.
>So if called from a form it uses the datasession of the calling form?
Correct again!
>I'm not sure I understand this. Are you saying I should not use the "DefineWindow/OpenWindow" process/property for a TexBox to edit a memo field but should creat a modal form(using default datasession)instead?
"DefineWindow" and "OpenWindow" are Fox2x commands. They aren't BAD, but I prefer to use a form or container class rather than call a window which needs coding every time. Also, what happens if multiple copies of a form try to open windows all with the same name?
I have a modal form class with an editbox and OK/Cancel buttons. I pass it the table and field name and it defaults to the calling form's data session. Just add 1 line of code to a button on the calling form
HTH
Barbara