At 02:18 PM 10/25/99 -0600, you wrote:
>
> Boolean bValid;
> CharPtr pString;
> FormPtr pForm = FrmGetActiveForm();
> Word wFldIndex = FrmGetObjectIndex( pForm, wFieldID);
> FieldPtr pField = FrmGetObjectPtr( pForm, wFldIndex);
> ErrNonFatalDisplayIf( !pField, "Field ID not found on current
>form.");
>
>Compiles fine. But if I declare the Boolean and CharPtr variables after the
>ErrNonFatalDislpayIf() call, then I get syntax errors. Weird!
>
Is this in a file with a .cpp extension and C++ extensions turned on?