aferra Posted June 7, 2016 Report Share Posted June 7, 2016 Para quem está usando essa classe, preciso de um help ante em dbf fazia assim dbSelectArea("area") <area>->( dbGotop() ) aArray := {} DBEVAL( {|| AADD( aArray,{ <area>->cod, <area>->nom } ) } ) com a tdolphin tive que fazer com while , tem algum macete para usar da mesma maneira que o dbf? while Eof() AADD( aArray,{ <area>->cod, <area>->nom } ) skip ENDDO Quote Link to comment Share on other sites More sharing options...
devairlp Posted June 7, 2016 Report Share Posted June 7, 2016 Ola, faça assim local oQry := oserver:query(" Select nome, endere, nro, cidade, uf From cadastro ") pode ser de duas formas primeira array := oQry:fillarray(,{"nome","nro","cidade" }) voce coloca os campos que quiser. segunda opção array := oQryAG:fillarray() todos os campos da sua consulta vai estar na array aferra 1 Quote Link to comment Share on other sites More sharing options...
aferra Posted June 7, 2016 Author Report Share Posted June 7, 2016 Grato bem melhor e mais elegante...obrigado. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.