>I use the codebook framework (actually Mere Mortals) so all of my views, etc are opened from within a subclassed data environment and cursor class. So in my subclass of the dataenvironment that opens the cursor I added this function to override the default
>
>FUNCTION OPENTABLES
>
>v_objcompkey = 0 && keys will always be 1 or greater so no data is returned
>DODEFAULT()
>ENDFUNC
>
>Of course opening the view from the project manager or the command window will always prompt for the variable name, but now within my program.
Thanks Bob for the trick. I knew you were using Codebook, that's why I asked!
José