Jump to content
Fivewin Brasil

Exemplo pesquisa com data


rosa

Recommended Posts

que tipo de data vc esta usando,,, se for com a classe:

TMonthCal()

eu fiz assim,, quem me ajudou e agradeco na pesquisa o Luiz Fernando da Empresoft:

variavel SELDATE := date()

oCal:= TMonthCal():New( oDlg1,400)

* oCal:bSelect := { |lChange| IF( !lChange, ( seldate:= oCal:dVar,filagend(seldate,obrw)),NIL)}

oCal:bSelect := { |lChange| IF( !lChange, ( seldate:= oCal:dVar,filagend(seldate,obrw)),;

(obrw:GoTop(),obrw:refresh() ))}

*----------------------------------

Function filagend(seldate , objeto)

Local mdata1:= seldate

if file(cdir+'\texto\'+dtos(mdata1)+'.txt')

notas := decrypt(memoread(cdir+'\texto\'+dtos(mdata1)+'.txt'))

else

notas := ''

endif

c3:varput(notas)

c3:refresh()

pesq:=space(40)

o118:varput(pesq)

o118:refresh()

dbSelectArea( "agenda" )

cChave := "'"+dtos(mdata1)+"' = dtos(data)"

agenda->(adssetaof(cchave))

objeto:refresh()

objeto:SetFocus()

agenda->(dbgotop())

return (mdata1)

uma obs: estou usando ads,,, se precisar estamos aqui

Luis Antonio

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...