>Correct and full code:
>I**F aDV[nField]==["] && wgcs
> * Remove surrounding quotes
> ** aDV[nField] = SUBSTR( aDV[nField], 2, LEN(aDV[nField])-2 ) && wgcs
> **ENDIF
>>Keep getting the error subscript outside defined range on the following code:
>>
>>if adv(nfield0==["]
Why don't you try
If empty(aDV[nField])