CLEAR ON ERROR ?? MESSAGE() AT 30 DIMENSION x[1] ? "expected '&"+"x'" ?? '&x' at 30 ? "expected '&"+"x[1]'" ?? '&x[1]' at 30 ? "expected '&"+"x.['" ?? '&x.[' at 30 ? "expected '&"+"x['" ?? '&x[' at 30Because is the expected value '&x[':
Steps 0. '&x[' 1. a) : &x is equal to &x[1], x[1] is a logical then no subs have to do b) : on VFP, on a pattern like '&x[nnn]', if (x is a array) and (x[1] is a string) and (nnn<>1) then &x is not substituited with the x[1] valueOf course, to found a workaround is simple:
?? '&x'+'[' at 30BUT IT fixed only the first level of the recursive process.
* with indexes names x1='&x' CLEAR ON ERROR ?? MESSAGE() AT 30 ? 'Expected &x3' ?? '&x1.1.1.1.1.1.1.3' y1='&y' y2='1' ? 'Expected &y3' ?? '&y1.1.1.1.1.1.1.3' AT 30 ? 'Expected &y3' ?? '&y1.1.&y2..1.1.1.3' AT 30 ? 'Expected &y3' ?? '&y1.&y2..1.1.1.1.3' AT 30 * try to replicate with a array DIMENSION Z[2] z[1]='&z' z[2]='[1]' ? 'Expected &z3' ?? '&z[1].[1].[1].[1].3' AT 30 ? 'Expected &z3' ?? '&z[1].[1].&z[2]..[1].[1].3' AT 30Thanks,