In development environment, every thing is working fine while in runtime environment nfJsonCreate is creating error. Which setting am I missing in runtime which is creating proble. Below is the code where problem Variable ' ' is not found.
Code:
if m.bidim
xtabs = nivel(2)
este = m.este+'['+m.xtabs
endif
for pn = m.nelem to m.nelem+m.ncols-1
elem = m.obt.&arrayName( m.pn )
este = m.este+iif(m.pn>m.nelem,','+m.xtabs,'')
if vartype(m.elem) # 'O'
if m.nelem+m.ncols-1 = 1 and isnull(m.elem) and m.nonullarrayitem
este = m.este+""
else
este = m.este+concatval(m.elem)
endif
else
[highlight #FCE94F]bc = iif(type('m.elem.baseclass')='C',m.elem.baseclass,'?')
if bc = 'Collection'
este = m.este+' { "collection'+ collTagName( m.elem )+'":'
este = m.este+procobject(m.elem ,.t.,m.nonullarrayitem,m.amembersFlag)
este = m.este + '}'+m.xTabs+'}'
else
este = m.este+[{]+procobject(m.elem ,.f.,m.nonullarrayitem,m.amembersFlag)+[}]
endif[/highlight]
endif
endfor