What you are describing is not valid C. C requires that all variable
declarations be at the beginning of a block before any other statements.
-gm
----------
>From: "Miller, Gary" <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: Weird compile errors!
>Date: Mon, Oct 25, 1999, 16:18
>
>
> 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!
>
> Gary Miller
> Consultant, CIBER Inc.
> (703) 610-6564
> [EMAIL PROTECTED]
>