Snip...
>Thanks Cetin and Rod
>
>But...
>
>Rod...
>
>The reason I'm in the debugger watch window in the first place is because the string
DTOC(DATE())+" "+AMPM(TIME()) is "undefined" so I was trying to figure out why. It's still confusing that it prints from the command window but not through the program. I also discovered that
TYPE( AMPM(TIME())) is "U" if that helps.
>
>Cetin...
>
>I need to generate documentation using a "Template" that is based on Clipper, so it uses the line
DTOC(DATE())+" "+AMPM(TIME()) in several places. I was hoping to accomodate this syntax so I don't have to rewrite the templates.
>
>Thanks again
Larry,
Debugger won't access a UDF, normal behaviour. Try this one create a very simple function (ie just: return 5). Include it in a prg (or be the prg itself w/o set proc to). Set proc to that prg and call in debugger watch. You would get "Exp.. not evaluated". Now why failing in prg, that's the problem. In debugger instead of watch use trace for that. In first line of AMPM add a wait window or suspend to see if ever it's called.
Cetin