Hi Craig,
>Does anyone know of a way to ascertain in code whether a form is currently in design-mode or is being run inside the VFP IDE?
When you have an object reference, you can use SYS(1272) to find out if the reference points to a running object (get back a string) or an object in design mode (raises error). Wrapping this in TYPE() should deal with the error.
--
Christof