topic
stringlengths
1
63
text
stringlengths
1
577k
small cash
Any one can write to me an small sample to make a mini TPV with a browse ? I made buttons of products when I click on it must insert a record on listbox ( cod,desc,price,cat) regards
small test
Silvio: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=15631&start=0&hilit=mejor+manera">viewtopic.php?f=6&t=15631&start=0&hilit=mejor+manera</a><!-- l -->
small test
someone have a small test to print an invoice no fastreport ?
small test
Hi, What is the problem with Fast Report?
small test
we use fwh right ? why we must use third part for create a report ? If I want a third part I use easyreport as good instead I want include report( designer and system) on exe application often other dll why not help me to create a system to make a designer on fwh script ?
small test
Easyreport is not updated any more. Fast Report is a great tool and it works fine. There is not need to reinvent the wheel!!!. I supposed you created a Visual Report engine.
small test
do you remember gxreport ? where is now gxreport ? if we must create app ( on fwh ) and for fwh only this way we can go to moon!!! I have also the source code of fastreport , it born for delphi not for fwh!!!! it is a son of zreport made on delphi... and then someonr called it fastreport I have the source code of 1.0 or 2.0 I not remember now ... We must create a visual report on fwh source , where we all user of fwh can modify , a work for the community. Fast report is not free , I cannot pay for have fastreport license...
small test
Gxreport died as the same reason of Canal five (Paco Garcia) and EasyReport: nobody pays for them and they are not kept up to date. Now the future is not a Report Generator. Fast Report will continue as it is made in Delphi and it has many users. The future is Fiveweb in order to provide Software as Service, not desktop .exes. See for example Google applications or <!-- m --><a class="postlink" href="http://www.gesio.com/">http://www.gesio.com/</a><!-- m --> <!-- m --><a class="postlink" href="http://www.youtube.com/usandogesio#p/u/2/NXx4-4suQLc">http://www.youtube.com/usandogesio#p/u/2/NXx4-4suQLc</a><!-- m -->
small test
FiveWeb ? and if the custome want print an invoice specific How believe you made ? With Fast Report ? Listen here in Italy , I work at school, the goverment created an application with powerbuilder this app use fast report If we want converte the print into word we cannot , fast report converte it on rtf , but do you tried to converte from fast report into rtf an invoice with many box, line and bitmap ? why U not try ? if you can move it you are only a DIO...
small test
Latest versions of Fast Report export much better than previous ones. But if you don´t purchase the product you don´t get the update. See list of updates at <!-- m --><a class="postlink" href="http://www.paritetsoft.ru/frh_ver.html">http://www.paritetsoft.ru/frh_ver.html</a><!-- m -->
small test
I know this link very good But we must use it ? Why not we creat a Fivewin Report designer ?
small test
Silvio, minimum you need 1 [i:h5y82wdb]man year[/i:h5y82wdb] for this task. I think this is the problem. But try FR. I am very satisfied. [quote:h5y82wdb]convert an Invoice to word [/quote:h5y82wdb] You should never allow to convert an Invoice to word for fiscal reasons. Best regards, Otto Best regards, Otto <!-- m --><a class="postlink" href="http://en.wiktionary.org/wiki/man-year">http://en.wiktionary.org/wiki/man-year</a><!-- m --> man-year (plural man-years) 1.One person's working time for a year, or the equivalent, used as a measure of how much work or labor is required or consumed to perform some task.
small test
Dear Otto, I'm trying to make understand to all that we all have to claim support for everything from Fivetech directly, without using third-party classes and libraries. I know very well that you can make a small designer with FWH, and have a lot of satisfactions. I tried to do a little visual report designer starting with the class rpreview. I felt alone I cannot never finish it and I need the help of you all. Meanwhile, I also created a special function to read commands from a text file, it work well, and on our application we can only enter the command PrintReport (Namefile.Frp) and it print on screen or to printer the form: I tried to use multiple stores at once, just for now I must be satisfied to enter commands to print boxes and line graphs because I still have not finished the visual report designer. as you can see on this picture [img:2yap5tc9]http&#58;//img29&#46;imageshack&#46;us/img29/4282/mailfd&#46;jpg[/img:2yap5tc9] I resolve also the problem to create areas of print, with inserting commands as INITBAND or ENDBAND at text file with right parameters to print for a sample the body of a invoice. Only I must finish the visual report designer then it 'll save on text file all lines,box,image,text, fields, barcode controls we must use fw source code to have the support of fivetech, without using third-party classes and libraries.
small test
Why don´t you hire Fivetech services to assist you?. I am very satisfied with Fast Report, as I was not with Easy Report.
small test
people as You writing the word "end" to fwh
small test
I am afraid that people that do not want to pay for products cause the "end" of them.
small test
PERHAPS YOU NON UNDERSTOOD .. I am Freelance programmer , not work at Software firm...as you I must pay 800 USD for have a license of FAST REPORT and study it for 1 year before to create an invoice ? you're mad!!!!
small test
thanks FranciscoA, I made now a function to read txt file easy I have on test two dbf Ripara.dbf and Ricambi.dbf Ripara is the header of invoice and the ricambi is the body on txt file I can insert many function , a type of script and my Interpeter function print a invoice only I must use now function as oPrn:Box( 400*n, 1350*n, 800*n, 2810*n ) or oPrn:Line(500*n, 050*n, 501*n, 400*n ) to create the form graphics then I made a mall visual report where I draw line and box but this visual is on working also but this visual save graphics form in this type 103=TEXT|184|192|210|296|System|-12|0|.F.|.F.|.F.|.F.|0|0|0|0|test one 104=BOX|144|97|256|2401|0|0|8421376|||.T.|System||-12|0|.F.|.F.|.F.|.F.|0|0|0|0| 105=LINE|136|49|261|159|1|0|0 these lines we can insert on text file then we can translate my function interpeter into a class someone can help me ? I'm searching friend to fibish the visual report
smart card
have you some sample to use a smartcard ?
smart card
Hi Silvio, do you have a solution for [url=http&#58;//en&#46;wikipedia&#46;org/wiki/PC/SC:2srl8bx9]PS/SC[/url:2srl8bx9] already?
smart card
no
sms
Can we send an sms from a fivetech program
sms
Si lo puedes hacer, pero para eso necesitas contratar el servicio de mensajería. y te apoyas en la clase curl para comunicarte con la api de la empresa de mensajería. Aquí hay mas información [url:2jmgxn1d]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=41894&p=251196&hilit=sms&sid=8ca25ee2b1d3be485ed4e14b074b1ddd&sid=65ca16ee51d33d245b97b5bc05cbab0f#p251171[/url:2jmgxn1d]
smtp
Hola, me gustaria saber si alguien tiene la clase tsmtp de Luis Krause, con los mensajes traducidos al castellano. Gracias Pablo H
smtpserver
try to send mail via smtp error : session did not complete successfully STAGE : ST_INIT IP ADDRESS : could not establish connection to server1.activedata.ca WSA ERROR CODE : 10060 can you held me function SendMail() local oOutMail, cIP, oOutMail1 oDlg:SetMsg( "Sending Internet email..." ) WSAStartup() * oOutMail1 := TSmtp():New( cIP := GetHostByName( "mail.lpsi.qc.ca" ) ) oOutMail := TSmtp():New( cIP := GetHostByName( "mail.lpsi.qc.ca" ) ) * MsgInfo( cIP ) oOutMail:bConnecting = { || oDlg:SetMsg( "Connecting to mail.lpsi.qc.ca" ) } oOutMail:bConnected = { || oDlg:SetMsg( "Connected" ) } oOutMail:bDone = { || oDlg:SetMsg( "Message sent successfully" ) } oOutMail:SendMail( "[email protected]",; // From { "[email protected]" },; // To "It is working!!!",; // Msg Text "Testing FiveWin Class TSmtp enhancements",; // Subject {} ) // attached files * { "testsmtp.prg", "testsmtp.zip" } ) // attached files * { "[email protected]" },; // To return nil
smtpserver
Error code WSA 10060 means Connection timed out. A connection attempt failed because the connected party did not properly respond after a period of time, or the established connection failed because the connected host has failed to respond. oOutMail := TSmtp():New( cIP := GetHostByName( "mail.lpsi.qc.ca" ) ) Have you provided the Port number, username password required to connect to your email server For eg oOutMail := TSmtp():New( cIP := GetHostByName( "mail.lpsi.qc.ca" ), 25, .t., "username", "Password") It is better to use CDO for sending emails. Regards [b:kud0wqc8]Anser[/b:kud0wqc8]
smtpserver
try to send mail via smtp error : session did not complete successfully STAGE : ST_INIT IP ADDRESS : could not establish connection to server de bell WSA ERROR CODE : 10060 can you held me donne la meme erreur (same error) function SendMail() local oOutMail, cIP, oOutMail1 oDlg:SetMsg( "Sending Internet email..." ) WSAStartup() * oOutMail1 := TSmtp():New( cIP := GetHostByName( "mail.lpsi.qc.ca" ) ) oOutMail := TSmtp():New( cIP := GetHostByName( "smtphm.sympatico.ca",25,.t.,"[email protected]", "xxxxxxxx" ) ) * MsgInfo( cIP ) oOutMail:bConnecting = { || oDlg:SetMsg( "Connecting to mail.lpsi.qc.ca" ) } oOutMail:bConnected = { || oDlg:SetMsg( "Connected" ) } oOutMail:bDone = { || oDlg:SetMsg( "Message sent successfully" ) } oOutMail:SendMail( "[email protected]",; // From { "[email protected]" },; // To "It is working!!!",; // Msg Text "Testing FiveWin Class TSmtp enhancements",; // Subject {} ) // attached files * { "testsmtp.prg", "testsmtp.zip" } ) // attached files * { "[email protected]" },; // To return nil richard wilson Posts: 28 Joined: Sat Mar 04, 2006 3:32 pm Location: canada Top Re: smtpserver New post
smtpserver
Are you able to send email using an email client with the given credentials ? This is to ensure the credentials,server, Port number etc are correct. Did you try CDO ?
smtpserver
setting : I am working in remote with desktop windows ts 2012 did I have to set up other thing to send mail with smtp
smtpserver
Richard Are you trying SMTP in a clients environment ? .. Many larger corporations will not allow SMTP thru their routers and firewalls due to security concerns and only allow SMTP from certain machine names such as multi function printers. I became so frustrated with SMTP I changed over to CDO if I want to send messages and even CDO is not reliable in every environment. Rick Lipkin
snipTv - Snipkeeper at work
[url:2g6xk2f6]http&#58;//www&#46;atzwanger&#46;com/snipTv/sniptv&#46;html[/url:2g6xk2f6] regards, otto
snipTv - Snipkeeper at work
Congratulations, fine job Otto.
snipTv - Snipkeeper at work
Excellant Mr Otto
snipTv - Snipkeeper at work
[quote="Otto":2mb2ecmk][url:2mb2ecmk]http&#58;//www&#46;atzwanger&#46;com/snipTv/sniptv&#46;html[/url:2mb2ecmk] [/quote:2mb2ecmk] Nice job Otto! Patrick
snipTv - Snipkeeper at work
Otto, that look really nice, very good. Do you want to publish this tool ?
snipkeeper
I reanimated my “snipkeeper” program and use it to keep all my Modern UI (metro style) templates. <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=16682&p=89405&hilit=snipkeeper#p89405">viewtopic.php?f=3&t=16682&p=89405&hilit=snipkeeper#p89405</a><!-- l --> Best regards, Otto [img:p84ar4wp]http&#58;//www&#46;atzwanger-software&#46;com/fw/mui1&#46;jpg[/img:p84ar4wp] [img:p84ar4wp]http&#58;//www&#46;atzwanger-software&#46;com/fw/mui11&#46;jpg[/img:p84ar4wp] [img:p84ar4wp]http&#58;//www&#46;atzwanger-software&#46;com/fw/mui12&#46;jpg[/img:p84ar4wp]
snipkeeper
Dear Otto, It's a great tool. I have used it from some years ago, in the samples folder. Thanks for sharing. Best regards.
snipkeeper
Otto the main download can't be dowload (the first one)
snipkeeper
[url:igp9srhx]http&#58;//www&#46;atzwanger-software&#46;com/fw/SamplesPreview&#46;zip[/url:igp9srhx] not working
soap y dato de retorno
since that version found this function SendHttpRequest? Because I get an error compiling the example. Thank you Saludos
soap y dato de retorno
The function "SendHttpRequest" is included in the program itself. Please let us know what is the compilation error you are getting. If you are building with xHarbour you get unresolved external error HB_AT. I just modified the program to include a translation for HB_AT. Please copy the revised program. You can now build it with xHarbour also. This program should work with earlier versions of FWH also. I tested successfully with bcc7 + Harbour and xHarbour, MSVC32, MSVC64 and borland64. This program compiles and works correctly with all compilers.
soap y dato de retorno
Rao, thansk. all work ok. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> salu2 carlos vargas
soap y dato de retorno
Estimados, tengo un problema Esta web, me permite recuperar el tipo de cambio del dia, y del mes. usando soap, con vfp, ambos funcionan de perlas, pero con harbour, solo puedo recuperar el del dia. [url:8ucfwpsi]https&#58;//servicios&#46;bcn&#46;gob&#46;ni/Tc_Servicio/ServicioTC&#46;asmx[/url:8ucfwpsi] el del mes, no lo puedo recuperara, parece que ese metodo retorna un xml con los datos, y el ole de harbour no lo reconoce. algien que me pueda echar una mano. [code=fw:8ucfwpsi]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #00C800;">LOCAL</span> oSoap<br />   <span style="color: #00C800;">LOCAL</span> aTableTC := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, nValue<br />   <span style="color: #00C800;">LOCAL</span> dDateIni, dDateEnd<br /><br />   dDateIni := DMY2DATE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, nMonth, nYear <span style="color: #000000;">&#41;</span><br />   dDateEnd := EoM<span style="color: #000000;">&#40;</span> dDateIni <span style="color: #000000;">&#41;</span><br /><br />   WaitOn<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Recuperando tipo de cambio del mes de "</span> + CMonth<span style="color: #000000;">&#40;</span> dDateIni <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" del año "</span> + HB_NToS<span style="color: #000000;">&#40;</span> nYear <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   CursorWait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> oSoap := win_oleCreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"MSSOAP.SoapClient30"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != <span style="color: #00C800;">NIL</span><br />      oSoap:<span style="color: #000000;">MSSoapInit</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"https://servicios.bcn.gob.ni/Tc_Servicio/ServicioTC.asmx?WSDL"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">FOR</span> x := dDateIni <span style="color: #0000ff;">TO</span> dDateEnd<br />         nValue := oSoap:<span style="color: #000000;">RecuperaTC_Dia</span><span style="color: #000000;">&#40;</span> nYear, nMonth, Day<span style="color: #000000;">&#40;</span> x <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">IF</span> nValue > <span style="color: #000000;">0</span><br />            AAdd<span style="color: #000000;">&#40;</span> aTableTC, <span style="color: #000000;">&#123;</span> x, nValue <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">ENDIF</span><br />      <span style="color: #00C800;">NEXT</span><br />   <span style="color: #00C800;">ELSE</span><br />      MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error: SOAP Toolkit 3.0 not available."</span> + FINL + win_oleErrorText<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   WaitOff<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   oSoap := <span style="color: #00C800;">NIL</span><br /><br />   hb_gcAll<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> aTableTC<br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #B900B9;">/*definición de constante necesaria para compilador XCC*/</span><br />#ifdef __XCC__<br />   <span style="color: #00D7D7;">#define</span> WINVER <span style="color: #000000;">5</span><br />#endif<br /><br /><span style="color: #B900B9;">/*llamada a encabezados de api de xharbour y windows SDK*/</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapiitm.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapierr.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbdate.h"</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"shlobj.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"windows.h"</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> DMY2DATE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   int iDay   = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   int iMonth = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   int iYear  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br /><br />   hb_retd<span style="color: #000000;">&#40;</span> iYear, iMonth, iDay <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:8ucfwpsi]
soap y dato de retorno
Mr Carlos Please try this approach: [code=fw:5qsq920e]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// soap test</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">static</span> cURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"https://servicios.bcn.gob.ni/Tc_Servicio/ServicioTC.asmx?op=RecuperaTC_Dia"</span><br /><span style="color: #00C800;">static</span> cHost &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"servicios.bcn.gob.ni"</span><br /><span style="color: #00C800;">static</span> cSoapAction &nbsp; := <span style="color: #ff0000;">"http://servicios.bcn.gob.ni/RecuperaTC_Dia"</span><br /><br /><span style="color: #00C800;">static</span> oHttp<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> d, d1, d2<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aRates &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;SET DATE ITALIAN<br />&nbsp; &nbsp;SET CENTURY <span style="color: #0000ff;">ON</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'MSXML2.XMLHTTP'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CATCH<br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Microsoft.XMLHTTP'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> oHttp == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"Fail"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;msgRun<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Reading Exchange Rates"</span>,<span style="color: #ff0000;">"PLEASE WAIT"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>|| aRates := ReadRates<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span>^ <span style="color: #000000;">2017</span>/<span style="color: #000000;">09</span>/<span style="color: #000000;">01</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;XBROWSER aRates <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"EXCHANGE RATES"</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ReadRates<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> d, d2 := EOM<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aRates &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> d := dDate <span style="color: #0000ff;">to</span> d2<br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aRates, <span style="color: #000000;">&#123;</span> d, SendHttpRequest<span style="color: #000000;">&#40;</span> makeSoapRequest<span style="color: #000000;">&#40;</span> d <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> aRates<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> MakeSoapRequest<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">local</span> cXml<br /><br /><span style="color: #0000ff;">TEXT</span> INTO cXml<br /><?xml version=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"utf-8"</span>?><br /><soap:<span style="color: #000000;">Envelope</span> xmlns:<span style="color: #000000;">xsi</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema-instance"</span> xmlns:<span style="color: #000000;">xsd</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema"</span> xmlns:<span style="color: #000000;">soap</span>=<span style="color: #ff0000;">"http://schemas.xmlsoap.org/soap/envelope/"</span>><br />&nbsp; <soap:<span style="color: #000000;">Body</span>><br />&nbsp; &nbsp; <RecuperaTC_Dia xmlns=<span style="color: #ff0000;">"http://servicios.bcn.gob.ni/"</span>><br />&nbsp; &nbsp; &nbsp; <Ano>YEAR</Ano><br />&nbsp; &nbsp; &nbsp; <Mes>MONTH</Mes><br />&nbsp; &nbsp; &nbsp; <Dia>DAY</Dia><br />&nbsp; &nbsp; </RecuperaTC_Dia><br />&nbsp; </soap:<span style="color: #000000;">Body</span>><br /></soap:<span style="color: #000000;">Envelope</span>><br />ENDTEXT<br /><br />&nbsp; &nbsp;cXml &nbsp; &nbsp; := StrTran<span style="color: #000000;">&#40;</span> cXml, <span style="color: #ff0000;">"YEAR"</span>, &nbsp;cValToChar<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">YEAR</span><span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cXml &nbsp; &nbsp; := StrTran<span style="color: #000000;">&#40;</span> cXml, <span style="color: #ff0000;">"MONTH"</span>, cValToChar<span style="color: #000000;">&#40;</span> MONTH<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cXml &nbsp; &nbsp; := StrTran<span style="color: #000000;">&#40;</span> cXml, <span style="color: #ff0000;">"DAY"</span>, &nbsp; cValToChar<span style="color: #000000;">&#40;</span> DAY<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> cXml<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SendHttpRequest<span style="color: #000000;">&#40;</span> cRequestXML <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cContentType &nbsp; := <span style="color: #ff0000;">"text/xml; charset=utf-8"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cUserAgent &nbsp; &nbsp; := <span style="color: #ff0000;">"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cXml &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := cRequestXML<br />&nbsp; &nbsp;<span style="color: #B900B9;">//</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cResponseBody, nStatus, cStatusText<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nResult &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'POST'</span>, cUrl, .F. <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//, "61420255" )</span><br /><br />&nbsp; &nbsp;oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Connection:"</span>, <span style="color: #ff0000;">"Keep-Alive"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Host"</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cHost <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SOAPAction"</span>, &nbsp; &nbsp; cSOAPAction <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oHttp:<span style="color: #000000;">setRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"User-Agent"</span>, &nbsp; &nbsp; cUserAgent <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Content-Type"</span>, &nbsp; cContentType <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Content-Length"</span>, LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> cXml <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span> cXml <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CATCH<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Could not send the XML documnent."</span> +CRLF+ <span style="color: #ff0000;">"The reason could be either the internet connection failed or its a server problem"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; QUIT<br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;cResponseBody := oHttp:<span style="color: #000000;">ResponseBody</span><br /><br />&nbsp; &nbsp;oHttp:<span style="color: #000000;">getAllResponseHeaders</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nStatus &nbsp; &nbsp; &nbsp; := oHttp:<span style="color: #000000;">Status</span><br />&nbsp; &nbsp;cStatusText &nbsp; := oHttp:<span style="color: #000000;">StatusText</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nStatus == <span style="color: #000000;">200</span><br />&nbsp; &nbsp; &nbsp; nResult &nbsp;:= ReadResult<span style="color: #000000;">&#40;</span> cResponseBody <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> nResult<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ReadResult<span style="color: #000000;">&#40;</span> cXml <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> Val<span style="color: #000000;">&#40;</span> BeforAtNum<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"</RecuperaTC_DiaResult>"</span>, AfterAtNum<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<RecuperaTC_DiaResult>"</span>, cXml, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:5qsq920e] Result: [url=https&#58;//imageshack&#46;com/i/poa6N9ocp:5qsq920e][img:5qsq920e]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/924/a6N9oc&#46;png[/img:5qsq920e][/url:5qsq920e]
soap y dato de retorno
Excellent Mr. Rao. It is possible to use the method RecuperaTC_Mes ?, this allows to obtain the data of the whole month in a single call. but I could not get the data, I get an empty object. although the objective of obtaining the data has already been fulfilled. Getting the data from RecuperaTC_Mes is a curiosity. very grateful for the help.
soap y dato de retorno
Microsoft SOAP toolkit 3.0 was deprecated by Microsoft almost ten years back. This can not even be downloaded officially from Microsoft. We can download from 3rd party sites and install but not recommended. I am also not sure which of the present OS supports this toolkit. Net framework provides an improved library for this but not available for our use. This is now history and not good for present and future use. Even with that toolkit we need to loop for each date. That is clear from the soap documentation for this application on their web-site.
soap y dato de retorno
Rao, thank you, you test with to call to RecuperaTC_Mes <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->, export to xml file. now, the next pass is export xml file to hash or array. salu2 carlos vargas [img:2mh61lb3]https&#58;//i&#46;imgur&#46;com/VxSSuk9&#46;png[/img:2mh61lb3] [code=fw:2mh61lb3]<div class="fw" id="{CB}" style="font-family: monospace;"><br />/ soap test <span style="color: #000000;">2</span><br /><span style="color: #B900B9;">// </span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">static</span> cHost &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"servicios.bcn.gob.ni"</span><br /><span style="color: #00C800;">static</span> cURL1 &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"https://servicios.bcn.gob.ni/Tc_Servicio/ServicioTC.asmx?op=RecuperaTC_Dia"</span><br /><span style="color: #00C800;">static</span> cURL2 &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"https://servicios.bcn.gob.ni/Tc_Servicio/ServicioTC.asmx?op=RecuperaTC_Mes"</span><br /><span style="color: #00C800;">static</span> cSoapAction1 := <span style="color: #ff0000;">"http://servicios.bcn.gob.ni/RecuperaTC_Dia"</span><br /><span style="color: #00C800;">static</span> cSoapAction2 := <span style="color: #ff0000;">"http://servicios.bcn.gob.ni/RecuperaTC_Mes"</span><br /><span style="color: #00C800;">static</span> oHttp<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> aRates := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; SET DATE ITALIAN<br />&nbsp; &nbsp; SET CENTURY <span style="color: #0000ff;">ON</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'MSXML2.XMLHTTP'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Microsoft.XMLHTTP'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; END<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> oHttp == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"Fail"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; msgRun<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Reading Exchange Rates 1"</span>,<span style="color: #ff0000;">"PLEASE WAIT"</span>, <span style="color: #000000;">&#123;</span>|| aRates := ReadRates1<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span>^ <span style="color: #000000;">2017</span>/<span style="color: #000000;">09</span>/<span style="color: #000000;">01</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; XBROWSER aRates <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"EXCHANGE RATES"</span><br /><br />&nbsp; &nbsp; msgRun<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Reading Exchange Rates 2"</span>,<span style="color: #ff0000;">"PLEASE WAIT"</span>, <span style="color: #000000;">&#123;</span>|| ReadRates2<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">2017</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ReadRates1<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> d, d2 := EOM<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> aRates := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">for</span> d := dDate <span style="color: #0000ff;">to</span> d2<br />&nbsp; &nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aRates, <span style="color: #000000;">&#123;</span> d, SendHttpRequest1<span style="color: #000000;">&#40;</span> makeSoapRequest1<span style="color: #000000;">&#40;</span> d <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> aRates<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> procedure ReadRates2<span style="color: #000000;">&#40;</span> nMonth, nYear <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cRates := <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp; cRates := SendHttpRequest2<span style="color: #000000;">&#40;</span> makeSoapRequest2<span style="color: #000000;">&#40;</span> nMonth, nYear <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> SavedResult<span style="color: #000000;">&#40;</span> cRates <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">"save xml file with rates"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> MakeSoapRequest1<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cXml<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">TEXT</span> INTO cXml<br />&nbsp; &nbsp; &nbsp; &nbsp; <?xml version=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"utf-8"</span>?><br />&nbsp; &nbsp; &nbsp; &nbsp; <soap:<span style="color: #000000;">Envelope</span> xmlns:<span style="color: #000000;">xsi</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema-instance"</span> xmlns:<span style="color: #000000;">xsd</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema"</span> xmlns:<span style="color: #000000;">soap</span>=<span style="color: #ff0000;">"http://schemas.xmlsoap.org/soap/envelope/"</span>><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <soap:<span style="color: #000000;">Body</span>><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <RecuperaTC_Dia xmlns=<span style="color: #ff0000;">"http://servicios.bcn.gob.ni/"</span>><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <Ano>YEAR</Ano><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <Mes>MONTH</Mes><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <Dia>DAY</Dia><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </RecuperaTC_Dia><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </soap:<span style="color: #000000;">Body</span>><br />&nbsp; &nbsp; &nbsp; &nbsp; </soap:<span style="color: #000000;">Envelope</span>><br />&nbsp; &nbsp; ENDTEXT<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; cXml := StrTran<span style="color: #000000;">&#40;</span> cXml, chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cXml := StrTran<span style="color: #000000;">&#40;</span> cXml, <span style="color: #ff0000;">"YEAR"</span>, &nbsp;cValToChar<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">YEAR</span><span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cXml := StrTran<span style="color: #000000;">&#40;</span> cXml, <span style="color: #ff0000;">"MONTH"</span>, cValToChar<span style="color: #000000;">&#40;</span> MONTH<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cXml := StrTran<span style="color: #000000;">&#40;</span> cXml, <span style="color: #ff0000;">"DAY"</span>, &nbsp; cValToChar<span style="color: #000000;">&#40;</span> DAY<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> cXml<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> MakeSoapRequest2<span style="color: #000000;">&#40;</span> nMonth, nYear <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cXml<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">TEXT</span> INTO cXml<br />&nbsp; &nbsp; &nbsp; &nbsp; <?xml version=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"utf-8"</span>?><br />&nbsp; &nbsp; &nbsp; &nbsp; <soap:<span style="color: #000000;">Envelope</span> xmlns:<span style="color: #000000;">xsi</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema-instance"</span> xmlns:<span style="color: #000000;">xsd</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema"</span> xmlns:<span style="color: #000000;">soap</span>=<span style="color: #ff0000;">"http://schemas.xmlsoap.org/soap/envelope/"</span>><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <soap:<span style="color: #000000;">Body</span>><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <RecuperaTC_Mes xmlns=<span style="color: #ff0000;">"http://servicios.bcn.gob.ni/"</span>><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <Ano>YEAR</Ano><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <Mes>MONTH</Mes><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </RecuperaTC_Mes><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </soap:<span style="color: #000000;">Body</span>><br />&nbsp; &nbsp; &nbsp; &nbsp; </soap:<span style="color: #000000;">Envelope</span>><br />&nbsp; &nbsp; ENDTEXT<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; cXml := StrTran<span style="color: #000000;">&#40;</span> cXml, chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cXml := StrTran<span style="color: #000000;">&#40;</span> cXml, <span style="color: #ff0000;">"YEAR"</span>, &nbsp;cValToChar<span style="color: #000000;">&#40;</span> nYear &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cXml := StrTran<span style="color: #000000;">&#40;</span> cXml, <span style="color: #ff0000;">"MONTH"</span>, cValToChar<span style="color: #000000;">&#40;</span> nMonth <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> cXml<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SendHttpRequest1<span style="color: #000000;">&#40;</span> cRequestXML <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cContentType &nbsp; := <span style="color: #ff0000;">"text/xml; charset=utf-8"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cUserAgent &nbsp; &nbsp; := <span style="color: #ff0000;">"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cXml &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := cRequestXML<br />&nbsp; &nbsp; <span style="color: #B900B9;">//</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cResponseBody, nStatus, cStatusText<br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> nResult &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'POST'</span>, cURL1, .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Connection:"</span>, &nbsp; &nbsp;<span style="color: #ff0000;">"Keep-Alive"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Host"</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cHost <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SOAPAction"</span>, &nbsp; &nbsp; cSOAPAction1 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">setRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"User-Agent"</span>, &nbsp; &nbsp; cUserAgent <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Content-Type"</span>, &nbsp; cContentType <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Content-Length"</span>, LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> cXml <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span> cXml <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Could not send the XML documnent."</span> +CRLF+ <span style="color: #ff0000;">"The reason could be either the internet connection failed or its a server problem"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; QUIT<br />&nbsp; &nbsp; END<br /><br />&nbsp; &nbsp; cResponseBody := oHttp:<span style="color: #000000;">ResponseBody</span><br /><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">getAllResponseHeaders</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; nStatus &nbsp; &nbsp; := oHttp:<span style="color: #000000;">Status</span><br />&nbsp; &nbsp; cStatusText := oHttp:<span style="color: #000000;">StatusText</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> nStatus == <span style="color: #000000;">200</span><br />&nbsp; &nbsp; &nbsp; &nbsp; nResult := ReadResult<span style="color: #000000;">&#40;</span> cResponseBody <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> nResult<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SendHttpRequest2<span style="color: #000000;">&#40;</span> cRequestXML <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cContentType &nbsp; := <span style="color: #ff0000;">"text/xml; charset=utf-8"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cUserAgent &nbsp; &nbsp; := <span style="color: #ff0000;">"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cXml &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := cRequestXML<br />&nbsp; &nbsp; <span style="color: #B900B9;">//</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cResponseBody, nStatus, cStatusText<br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cResult &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'POST'</span>, cURL2, .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Connection:"</span>, &nbsp; &nbsp;<span style="color: #ff0000;">"Keep-Alive"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Host"</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cHost <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SOAPAction"</span>, &nbsp; &nbsp; cSOAPAction2 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">setRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"User-Agent"</span>, &nbsp; &nbsp; cUserAgent <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Content-Type"</span>, &nbsp; cContentType <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Content-Length"</span>, LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> cXml <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span> cXml <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Could not send the XML documnent."</span> +CRLF+ <span style="color: #ff0000;">"The reason could be either the internet connection failed or its a server problem"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; QUIT<br />&nbsp; &nbsp; END<br /><br />&nbsp; &nbsp; cResponseBody := oHttp:<span style="color: #000000;">ResponseBody</span><br /><br />&nbsp; &nbsp; oHttp:<span style="color: #000000;">getAllResponseHeaders</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; nStatus &nbsp; &nbsp; &nbsp; := oHttp:<span style="color: #000000;">Status</span><br />&nbsp; &nbsp; cStatusText &nbsp; := oHttp:<span style="color: #000000;">StatusText</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> nStatus == <span style="color: #000000;">200</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cResult &nbsp;:= cResponseBody<br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> cResult<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ReadResult<span style="color: #000000;">&#40;</span> cXml <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> Val<span style="color: #000000;">&#40;</span> BeforAtNum<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"</RecuperaTC_DiaResult>"</span>, AfterAtNum<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<RecuperaTC_DiaResult>"</span>, cXml, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SavedResult<span style="color: #000000;">&#40;</span> cXml <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; ?cXml<br /><span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span> StrFile<span style="color: #000000;">&#40;</span> cXml, <span style="color: #ff0000;">"tc.xml"</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:2mh61lb3]
soap y dato de retorno
You are right Mr Carlos. I am sorry, I did not understand your post correctly and also did not notice the existence of the operation "RecuperaTC_Mes". Yes, in one call we get all the rates for the month. Parsing return xml is a simpler matter. But today when I tested, the site is not working properly and it is returning blank results. [code=fw:2gp6p2zx]<div class="fw" id="{CB}" style="font-family: monospace;"><?xml version=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"utf-8"</span>?><soap:<span style="color: #000000;">Envelope</span> xmlns:<span style="color: #000000;">soap</span>=<span style="color: #ff0000;">"http://schemas.xmlsoap.org/soap/envelope/"</span> xmlns:<span style="color: #000000;">xsi</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema-instance"</span> xmlns:<span style="color: #000000;">xsd</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema"</span>><soap:<span style="color: #000000;">Body</span>><RecuperaTC_DiaResponse xmlns=<span style="color: #ff0000;">"http://servicios.bcn.gob.ni/"</span>><RecuperaTC_DiaResult><span style="color: #000000;">0</span></RecuperaTC_DiaResult></RecuperaTC_DiaResponse></soap:<span style="color: #000000;">Body</span>></soap:<span style="color: #000000;">Envelope</span>></div>[/code:2gp6p2zx] Day's rate returned is 0. [code=fw:2gp6p2zx]<div class="fw" id="{CB}" style="font-family: monospace;"><?xml version=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"utf-8"</span>?><soap:<span style="color: #000000;">Envelope</span> xmlns:<span style="color: #000000;">soap</span>=<span style="color: #ff0000;">"http://www.w3.org/2003/05/soap-envelope"</span> xmlns:<span style="color: #000000;">xsi</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema-instance"</span> xmlns:<span style="color: #000000;">xsd</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema"</span>><soap:<span style="color: #000000;">Body</span>><RecuperaTC_MesResponse xmlns=<span style="color: #ff0000;">"http://servicios.bcn.gob.ni/"</span> /></soap:<span style="color: #000000;">Body</span>></soap:<span style="color: #000000;">Envelope</span>></div>[/code:2gp6p2zx] Rates xml is blank. There is no problem with our program which worked yesterday.
soap y dato de retorno
The site is working again now. As you said, using the operation "RecuperaTC_Mes" is very fast. [code=fw:137qj41b]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// soap test</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />#ifdef __XHARBOUR__<br />&nbsp; &nbsp;#xtranslate HB_At<span style="color: #000000;">&#40;</span> <p>, <c>, <span style="color: #000000;">&#91;</span><f><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span>,<n><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> => <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <p>, <c>, <span style="color: #000000;">&#91;</span><f><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span>,<n><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />#endif<br /><br /><span style="color: #00C800;">static</span> cURL          := <span style="color: #ff0000;">"https://servicios.bcn.gob.ni/Tc_Servicio/ServicioTC.asmx?op=RecuperaTC_Mes"</span><br /><span style="color: #00C800;">static</span> cHost         := <span style="color: #ff0000;">"servicios.bcn.gob.ni"</span><br /><span style="color: #00C800;">static</span> cSoapAction   := <span style="color: #ff0000;">"http://servicios.bcn.gob.ni/RecuperaTC_Mes"</span><br /><br /><span style="color: #00C800;">static</span> oHttp<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> d, d1, d2<br />   <span style="color: #00C800;">local</span> aRates   := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />   SET DATE ITALIAN<br />   SET CENTURY <span style="color: #0000ff;">ON</span><br /><br />   <span style="color: #00C800;">TRY</span><br />      oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'MSXML2.XMLHTTP'</span> <span style="color: #000000;">&#41;</span><br />   CATCH<br />      oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Microsoft.XMLHTTP'</span> <span style="color: #000000;">&#41;</span><br />   END<br /><br />   <span style="color: #00C800;">if</span> oHttp == <span style="color: #00C800;">nil</span><br />      ? <span style="color: #ff0000;">"Fail"</span><br />      <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />   <span style="color: #00C800;">endif</span><br /><br />   msgRun<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Reading Exchange Rates"</span>,<span style="color: #ff0000;">"PLEASE WAIT"</span>, ;<br />        <span style="color: #000000;">&#123;</span>|| aRates := ReadRates<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span>^ <span style="color: #000000;">2017</span>/<span style="color: #000000;">08</span>/<span style="color: #000000;">01</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />   XBROWSER aRates <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"EXCHANGE RATES"</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ReadRates<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> SendHttpRequest<span style="color: #000000;">&#40;</span> makeSoapRequest<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> MakeSoapRequest<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">local</span> cXml<br /><br /><span style="color: #0000ff;">TEXT</span> INTO cXml<br /><?xml version=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"utf-8"</span>?><br /><soap:<span style="color: #000000;">Envelope</span> xmlns:<span style="color: #000000;">xsi</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema-instance"</span> xmlns:<span style="color: #000000;">xsd</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema"</span> xmlns:<span style="color: #000000;">soap</span>=<span style="color: #ff0000;">"http://schemas.xmlsoap.org/soap/envelope/"</span>><br />  <soap:<span style="color: #000000;">Body</span>><br />    <RecuperaTC_Mes xmlns=<span style="color: #ff0000;">"http://servicios.bcn.gob.ni/"</span>><br />      <Ano>YEAR</Ano><br />      <Mes>MONTH</Mes><br />    </RecuperaTC_Mes><br />  </soap:<span style="color: #000000;">Body</span>><br /></soap:<span style="color: #000000;">Envelope</span>><br />ENDTEXT<br /><br />   cXml     := StrTran<span style="color: #000000;">&#40;</span> cXml, <span style="color: #ff0000;">"YEAR"</span>,  cValToChar<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">YEAR</span><span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   cXml     := StrTran<span style="color: #000000;">&#40;</span> cXml, <span style="color: #ff0000;">"MONTH"</span>, cValToChar<span style="color: #000000;">&#40;</span> MONTH<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> cXml<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SendHttpRequest<span style="color: #000000;">&#40;</span> cRequestXML <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> cContentType   := <span style="color: #ff0000;">"text/xml; charset=utf-8"</span><br />   <span style="color: #00C800;">local</span> cUserAgent     := <span style="color: #ff0000;">"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"</span><br />   <span style="color: #00C800;">local</span> cXml           := cRequestXML<br />   <span style="color: #B900B9;">//</span><br />   <span style="color: #00C800;">local</span> cResponseBody, nStatus, cStatusText<br />   <span style="color: #00C800;">local</span> aResult        := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />   oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'POST'</span>, cUrl, .F. <span style="color: #000000;">&#41;</span><br /><br />   oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Connection:"</span>, <span style="color: #ff0000;">"Keep-Alive"</span> <span style="color: #000000;">&#41;</span><br />   oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Host"</span>,           cHost <span style="color: #000000;">&#41;</span><br />   oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SOAPAction"</span>,     cSOAPAction <span style="color: #000000;">&#41;</span><br />   oHttp:<span style="color: #000000;">setRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"User-Agent"</span>,     cUserAgent <span style="color: #000000;">&#41;</span><br />   oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Content-Type"</span>,   cContentType <span style="color: #000000;">&#41;</span><br />   oHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Content-Length"</span>, LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> cXml <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">TRY</span><br />      oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span> cXml <span style="color: #000000;">&#41;</span><br />      SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   CATCH<br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Could not send the XML documnent."</span> +CRLF+ <span style="color: #ff0000;">"The reason could be either the internet connection failed or its a server problem"</span><span style="color: #000000;">&#41;</span><br />      QUIT<br />   END<br /><br />   cResponseBody := oHttp:<span style="color: #000000;">ResponseBody</span><br /><br />   oHttp:<span style="color: #000000;">getAllResponseHeaders</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   nStatus       := oHttp:<span style="color: #000000;">Status</span><br />   cStatusText   := oHttp:<span style="color: #000000;">StatusText</span><br /><br />   <span style="color: #00C800;">if</span> nStatus == <span style="color: #000000;">200</span><br />      aResult  := ReadResults<span style="color: #000000;">&#40;</span> cResponseBody <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      ? nStatus<br />      PostQuitMessage<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />      QUIT<br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> aResult<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ReadResults<span style="color: #000000;">&#40;</span> cXml <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> aRates   := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">local</span> d, n, nAt, nFrom   := <span style="color: #000000;">1</span><br /><br />   <span style="color: #B900B9;">// There are many ways to extract data from xml</span><br />   <span style="color: #B900B9;">// This is fast and has no overhead of calling other classes</span><br /><br />   <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> nAt := HB_At<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<Fecha>"</span>, cXml, nFrom <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />      nFrom    := nAt + <span style="color: #000000;">7</span><br />      nAt      := HB_At<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"</Fecha>"</span>, cXml, nFrom <span style="color: #000000;">&#41;</span><br />      d        := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cXml, nFrom, nAt - nFrom <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Left( cXml, nAt - 1 )</span><br />      nAt      := HB_At<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<Valor>"</span>, cXml, nFrom <span style="color: #000000;">&#41;</span><br />      nFrom    := nAt + <span style="color: #000000;">7</span><br />      nAt      := HB_At<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"</Valor>"</span>, cXml, nFrom <span style="color: #000000;">&#41;</span><br />      n        := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cXml, nFrom, nAt - nFrom <span style="color: #000000;">&#41;</span><br />      AAdd<span style="color: #000000;">&#40;</span> aRates, <span style="color: #000000;">&#123;</span> STOD<span style="color: #000000;">&#40;</span> StrTran<span style="color: #000000;">&#40;</span> d, <span style="color: #ff0000;">"-"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, Val<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">enddo</span><br /><br />   ASort<span style="color: #000000;">&#40;</span> aRates,,,<span style="color: #000000;">&#123;</span> |x,y| x<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> < y<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> aRates<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:137qj41b] [url=https&#58;//imageshack&#46;com/i/pnzkfWz0p:137qj41b][img:137qj41b]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/923/zkfWz0&#46;png[/img:137qj41b][/url:137qj41b]
soap y dato de retorno
Saldos compañeros Alguien ya lo ha echo para Mexico Necesito obtener el tipo de cambio
soap y dato de retorno
Hi, I need some help in this approach. Please see this link. <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=36280&start=0">viewtopic.php?f=6&t=36280&start=0</a><!-- l --> I need it working for Windows 7 32 bits. Thank you. Ruben Dario Fernandez
sobre DatePicker
Hola, Me gustaría por favor forzar a que el DatePicker aparezca ya desplegado, via ACTIVATE oDlg ON INIT oDatePicker:Quesemuestredesplegadoya(). Por favor, ¿cómo se hace?. Muchas gracias.
sobre DatePicker
Talvez: [code=fw:2gs5rmed]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   vFecIni := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <br />   <span style="color: #0000ff;">Define</span> ..etc…<br /> <br />   <span style="color: #0000ff;">REDEFINE</span> DTPicker o821 <span style="color: #0000ff;">VAR</span> vFecIni <span style="color: #0000ff;">ID</span> <span style="color: #000000;">821</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg ; <span style="color: #B900B9;">// Calendario</span><br />      <span style="color: #0000ff;">VALID</span> Empty<span style="color: #000000;">&#40;</span>vFecIni<span style="color: #000000;">&#41;</span> .OR. Eval <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> ||;<br />      <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>! Valtype<span style="color: #000000;">&#40;</span>vFecIni<span style="color: #000000;">&#41;</span>=<span style="color: #ff0000;">'D'</span> , ;<br />      <span style="color: #000000;">&#40;</span> MsgStop <span style="color: #000000;">&#40;</span>OemToAnsi<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Fecha no Ingresada "</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, .F.<span style="color: #000000;">&#41;</span> ,;<br />      <span style="color: #000000;">&#40;</span>vFecha := vFecIni,;<br />      o822:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> , .T. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> o822 <span style="color: #0000ff;">prompt</span> vFecIni <span style="color: #0000ff;">ID</span> <span style="color: #000000;">822</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">Picture</span> <span style="color: #ff0000;">"D"</span> <span style="color: #B900B9;">//Recepción de la fecha</span><br /><br />   <span style="color: #0000ff;">Activate</span> etc..<br /> </div>[/code:2gs5rmed] Mira en \samples\ SCHEDULE.PRG se funciona con tú vérsion del fivewin. Saludos.
sobre DatePicker
Quizas llamando al metodo ::Open() del control en el activate del dialogo o inicializando la DATA lClosed en el activate
sobre DatePicker
Hola, Muchas gracias, me refiero a que saliera automáticamente así: [img:1sd8b6pb]http&#58;//i61&#46;tinypic&#46;com/10pyu7r&#46;png[/img:1sd8b6pb]
sobre DatePicker
Así [code=fw:gxa985hh]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"calendar.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oWnd, oCal<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dHoy := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET DATE <span style="color: #0000ff;">TO</span> FREN<br />&nbsp; &nbsp;SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1980</span> &nbsp; <br />&nbsp; &nbsp;<br />&nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">220</span> <span style="color: #0000ff;">PIXEL</span> <br />&nbsp; <br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> CALENDAR oCal <span style="color: #0000ff;">VAR</span> dHoy <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">PIXEL</span> DAYSTATE <span style="color: #0000ff;">size</span> <span style="color: #000000;">111</span>,<span style="color: #000000;">75</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oWnd <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oCal:<span style="color: #0000ff;">move</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:gxa985hh] Saludos, Adhemar
sobre DatePicker
C:\FWH..\SAMPLES\TESTCAL2.PRG [code=fw:3ghblku6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"dtpicker.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"calendar.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"wcolors.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oWnd, oCal<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dDate1<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aDates <br /><br /><br />&nbsp; &nbsp; &nbsp;SET DATE <span style="color: #0000ff;">TO</span> BRITISH<br />&nbsp; &nbsp; &nbsp;SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1980</span> &nbsp; <br />&nbsp; &nbsp;dDate1 = Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDates := <span style="color: #000000;">&#123;</span> CToD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"15/04/2010"</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CToD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"28/04/2010"</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CToD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"01/05/2010"</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CToD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"15/05/2010"</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CToD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"16/05/2010"</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CToD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"03/06/2010"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Test Calendar"</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">300</span>, <span style="color: #000000;">300</span> <span style="color: #0000ff;">PIXEL</span><br />&nbsp; <br />&nbsp; @ <span style="color: #000000;">15</span>, <span style="color: #000000;">15</span> CALENDAR oCal <span style="color: #0000ff;">VAR</span> dDate1 <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">PIXEL</span> DAYSTATE<br />&nbsp; <br />&nbsp; &nbsp; OnGetState<span style="color: #000000;">&#40;</span> oCal, aDates <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oCal:<span style="color: #000000;">SetDayState</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oCal:<span style="color: #000000;">bOnGetState</span> = <span style="color: #000000;">&#123;</span> | oCal | OnGetState<span style="color: #000000;">&#40;</span> oCal, aDates <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; oCal:<span style="color: #000000;">bChange</span> = <span style="color: #000000;">&#123;</span> |o| <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">GetDate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp;oWnd:<span style="color: #0000ff;">Center</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp;<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">Function</span> OnGetState<span style="color: #000000;">&#40;</span> oCal, aDates <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> i, imax, j, jmax, nDay, nDayState, nMonth<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dStartDate <br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dCurrentDay := oCal:<span style="color: #000000;">dDate</span> <br />&nbsp; <br />&nbsp; &nbsp;oCal:<span style="color: #000000;">GetMonthRange</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;dStartDate = oCal:<span style="color: #000000;">dDate</span> <br /><br />&nbsp; &nbsp;nMonth := Month<span style="color: #000000;">&#40;</span> dStartDate <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> aDates <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nDayState := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> Month<span style="color: #000000;">&#40;</span> aDates<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> == nMonth<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCal:<span style="color: #000000;">SetArrayDayState</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, Day<span style="color: #000000;">&#40;</span> aDates<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;oCal:<span style="color: #000000;">SetDate</span><span style="color: #000000;">&#40;</span> dCurrentDay <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:3ghblku6] 
sobre DatePicker
Hola, Lo que pretendo es ocultar el Get de DatePicker y usar su calendario para devolver la fecha, un sustituto de MsgDate() de Fivewin. Yo llamo al calendario desde un botón. Igual no me he explicado bien, pero el método de DatePicker:Open() no funciona ACTIVATE DIALOG ON INIT DatePicker:Open()
sobre DatePicker
Hola, He preparado un ejemplo, pero el ON INIT oDatePicker:Open() no funciona. ¿Alguien sabe la razón por favor?. [code=fw:2i7jjy2c]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// MBA 24.02.2015</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> DTN_FIRST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">-760</span><br /><span style="color: #00D7D7;">#define</span> DTN_DATETIMECHANGE &nbsp;<span style="color: #000000;">&#40;</span>DTN_FIRST + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> DTN_DROPDOWN &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>DTN_FIRST + <span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// MonthCal has dropped down</span><br /><span style="color: #00D7D7;">#define</span> DTN_CLOSEUP &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>DTN_FIRST + <span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// MonthCal is popping up</span><br /><br /><br />REQUEST HB_LANG_ESWIN<br />REQUEST HB_CODEPAGE_ESWIN<br /><br /><span style="color: #00C800;">static</span> oDlg<br /><span style="color: #00C800;">static</span> cResult &nbsp;:= <span style="color: #00C800;">nil</span><br /><br /><br />*********************************************************************************************<br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*********************************************************************************************<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oWnd<br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Idioma español para Harbour</span><br />&nbsp; &nbsp;HB_LangSelect<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ESWIN"</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Para mensajes, fechas, etc..</span><br />&nbsp; &nbsp;HB_CDPSELECT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ESWIN"</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Para ordenación, requiere CodePage.lib</span><br /><br /><br />&nbsp; &nbsp;SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1950</span><br />&nbsp; &nbsp;SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET DATE FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"DD/MM/YYYY"</span><br /><br /><br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd &nbsp;<span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">32</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TEST Moisés"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br />*********************************************************************************************<br /><br /><br /><br />*********************************************************************************************<br /><span style="color: #00C800;">FUNCTION</span> Test<span style="color: #000000;">&#40;</span> dFecha <span style="color: #000000;">&#41;</span><br />*********************************************************************************************<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oWndMain := WndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDatePicker<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oTimer<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> dFecha := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Reset valores</span><br />&nbsp; &nbsp;cResult &nbsp;:= <span style="color: #00C800;">nil</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Diálogo oculto</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Abrir"</span> <span style="color: #0000ff;">ACTION</span> oDatePicker:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Salir"</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br /><span style="color: #B900B9;">// METHOD New( nRow, nCol, bSetGet, oWnd, nWidth, nHeight, bValid, nClrFore,;</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrBack, oFont, lDesign, oCursor, lPixel, cMsg, lUpdate,;</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bWhen, bChange, nHelpId, cPic ) Class TDatePick</span><br /><br />&nbsp; &nbsp;oDatePicker := TDatePick<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">&#123;</span> || dFecha <span style="color: #000000;">&#125;</span>, oDlg, <span style="color: #000000;">13</span>, <span style="color: #000000;">13</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, .F., <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">"cmeg"</span>, .t., <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">&#123;</span>|Objeto| cResult := Objeto:<span style="color: #000000;">cText</span> <span style="color: #000000;">&#125;</span> &nbsp; <span style="color: #000000;">&#41;</span><br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oDatePicker:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br />&nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> cResult <span style="color: #000000;">&#41;</span><br />&nbsp; oWndMain:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; QUIT<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />*********************************************************************************************<br /><br /><br />&nbsp;</div>[/code:2i7jjy2c]
sobre DatePicker
Moises Has visto el ejemplo que te pone Karinha <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=30229#p172974">viewtopic.php?f=6&t=30229#p172974</a><!-- l --> No es eso lo que necesitas? Esta en samples de Fwh
sobre DatePicker
Fácil: [code=fw:3nq6vqym]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// MBA 24.02.2015</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"dtpicker.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"calendar.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> DTN_FIRST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">-760</span><br /><span style="color: #00D7D7;">#define</span> DTN_DATETIMECHANGE &nbsp;<span style="color: #000000;">&#40;</span>DTN_FIRST + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> DTN_DROPDOWN &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>DTN_FIRST + <span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// MonthCal has dropped down</span><br /><span style="color: #00D7D7;">#define</span> DTN_CLOSEUP &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>DTN_FIRST + <span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// MonthCal is popping up</span><br /><br /><br />REQUEST HB_LANG_ESWIN<br />REQUEST HB_CODEPAGE_ESWIN<br /><br /><span style="color: #00C800;">static</span> oDlg<br /><span style="color: #00C800;">static</span> cResult &nbsp;:= <span style="color: #00C800;">nil</span><br /><span style="color: #00C800;">static</span> oWnd<br /><br /><br />*********************************************************************************************<br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*********************************************************************************************<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Idioma español para Harbour</span><br />&nbsp; &nbsp;HB_LangSelect<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ESWIN"</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Para mensajes, fechas, etc..</span><br />&nbsp; &nbsp;HB_CDPSELECT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ESWIN"</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Para ordenación, requiere CodePage.lib</span><br /><br />&nbsp; &nbsp;SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1950</span><br />&nbsp; &nbsp;SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET DATE FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"DD/MM/YYYY"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd &nbsp;<span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">32</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TEST Moisés"</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp;ACTIVATE WINDOW oWnd CENTERED ; &nbsp;// no tiene CENTERED en FWH13.06<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; on init test()<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br /><br />*********************************************************************************************<br /><span style="color: #00C800;">FUNCTION</span> Test<span style="color: #000000;">&#40;</span> dFecha <span style="color: #000000;">&#41;</span><br />*********************************************************************************************<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oWndMain := WndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDatePicker<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oTimer<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> dFecha := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Reset valores</span><br />&nbsp; &nbsp;cResult &nbsp;:= <span style="color: #00C800;">nil</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Diálogo oculto</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Abrir"</span> <span style="color: #0000ff;">ACTION</span> oDatePicker:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Salir"</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDatePicker := TDatePick<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">&#123;</span> || dFecha <span style="color: #000000;">&#125;</span>, oDlg, <span style="color: #000000;">13</span>, <span style="color: #000000;">13</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, .F., <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">"cmeg"</span>, .t., <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">&#123;</span>|Objeto| cResult := Objeto:<span style="color: #000000;">cText</span> <span style="color: #000000;">&#125;</span> &nbsp; <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> oDatePicker:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> cResult <span style="color: #000000;">&#41;</span><br /><br />&nbsp; oWndMain:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; QUIT<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:3nq6vqym] Saludos
sobre DatePicker
Hola, Muchísimas gracias. Ya casi está, pero me gustaría eliminar el punto que se ve del Diálogo que uso para el DatePicker: [img:1rb5gr1q]http&#58;//i61&#46;tinypic&#46;com/2hrzo9g&#46;png[/img:1rb5gr1q] [code=fw:1rb5gr1q]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// MBA 24.02.2015</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> DTN_FIRST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">-760</span><br /><span style="color: #00D7D7;">#define</span> DTN_DATETIMECHANGE &nbsp;<span style="color: #000000;">&#40;</span>DTN_FIRST + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> DTN_DROPDOWN &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>DTN_FIRST + <span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// MonthCal has dropped down</span><br /><span style="color: #00D7D7;">#define</span> DTN_CLOSEUP &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>DTN_FIRST + <span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// MonthCal is popping up</span><br /><br /><br />REQUEST HB_LANG_ESWIN<br />REQUEST HB_CODEPAGE_ESWIN<br /><br /><span style="color: #00C800;">static</span> oDlg<br /><span style="color: #00C800;">static</span> cResult &nbsp;:= <span style="color: #00C800;">nil</span><br /><span style="color: #00C800;">static</span> nVeces &nbsp; := <span style="color: #000000;">0</span><br /><br /><br />*********************************************************************************************<br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*********************************************************************************************<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oWnd<br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Idioma español para Harbour</span><br />&nbsp; &nbsp;HB_LangSelect<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ESWIN"</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Para mensajes, fechas, etc..</span><br />&nbsp; &nbsp;HB_CDPSELECT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ESWIN"</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Para ordenación, requiere CodePage.lib</span><br /><br /><br />&nbsp; &nbsp;SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1950</span><br />&nbsp; &nbsp;SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET DATE FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"DD/MM/YYYY"</span><br /><br /><br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd &nbsp;<span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">32</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TEST Moisés"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> ; <span style="color: #B900B9;">//CENTERED;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br />*********************************************************************************************<br /><br /><br /><br />*********************************************************************************************<br /><span style="color: #00C800;">FUNCTION</span> Test<span style="color: #000000;">&#40;</span> dFecha <span style="color: #000000;">&#41;</span><br />*********************************************************************************************<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oWndMain := WndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDatePicker<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oTimer<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> dFecha := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Reset valores</span><br />&nbsp; &nbsp;cResult &nbsp;:= <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;nVeces &nbsp; := <span style="color: #000000;">0</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Diálogo oculto</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">-0</span>,<span style="color: #000000;">-0</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">-0</span>,<span style="color: #000000;">-0</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp;<span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> WS_POPUP <span style="color: #000000;">&#41;</span> ;<br /><br /><br /><br /><span style="color: #B900B9;">// METHOD New( nRow, nCol, bSetGet, oWnd, nWidth, nHeight, bValid, nClrFore,;</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrBack, oFont, lDesign, oCursor, lPixel, cMsg, lUpdate,;</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bWhen, bChange, nHelpId, cPic ) Class TDatePick</span><br /><br />&nbsp; &nbsp;oDatePicker := TDatePick<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">&#123;</span> || dFecha <span style="color: #000000;">&#125;</span>, oDlg, <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, .F., <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">"cmeg"</span>, .t., <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">&#123;</span>|Objeto| cResult := Objeto:<span style="color: #000000;">cText</span>, CloseDlg_MsgDate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> &nbsp; <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> oDatePicker:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> odlg:<span style="color: #000000;">Hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br /><br />&nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> cResult <span style="color: #000000;">&#41;</span><br />&nbsp; oWndMain:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; QUIT<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />*********************************************************************************************<br /><br /><br /><br />*********************************************************************************************<br /><span style="color: #00C800;">FUNCTION</span> CloseDlg_MsgDate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*********************************************************************************************<br /><br />nVeces++<br /><span style="color: #00C800;">if</span> nveces > <span style="color: #000000;">1</span><br />&nbsp; &nbsp;nVeces := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />*********************************************************************************************<br />&nbsp;</div>[/code:1rb5gr1q]
sobre DatePicker
[code=fw:2d6gm4un]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// MBA 24.02.2015</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> DTN_FIRST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">-760</span><br /><span style="color: #00D7D7;">#define</span> DTN_DATETIMECHANGE &nbsp;<span style="color: #000000;">&#40;</span>DTN_FIRST + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> DTN_DROPDOWN &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>DTN_FIRST + <span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// MonthCal has dropped down</span><br /><span style="color: #00D7D7;">#define</span> DTN_CLOSEUP &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>DTN_FIRST + <span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// MonthCal is popping up</span><br /><br /><br />REQUEST HB_LANG_ESWIN<br />REQUEST HB_CODEPAGE_ESWIN<br /><br /><span style="color: #00C800;">static</span> oDlg<br /><span style="color: #00C800;">static</span> cResult &nbsp;:= <span style="color: #00C800;">nil</span><br /><span style="color: #00C800;">static</span> nVeces &nbsp; := <span style="color: #000000;">0</span><br /><br /><br />*********************************************************************************************<br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*********************************************************************************************<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oWnd<br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Idioma español para Harbour</span><br />&nbsp; &nbsp;HB_LangSelect<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ESWIN"</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Para mensajes, fechas, etc..</span><br />&nbsp; &nbsp;HB_CDPSELECT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ESWIN"</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Para ordenación, requiere CodePage.lib</span><br /><br /><br />&nbsp; &nbsp;SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1950</span><br />&nbsp; &nbsp;SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET DATE FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"DD/MM/YYYY"</span><br /><br /><br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd &nbsp;<span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">32</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TEST Moisés"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> ; <span style="color: #B900B9;">//CENTERED;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br />*********************************************************************************************<br /><br /><br /><br />*********************************************************************************************<br /><span style="color: #00C800;">FUNCTION</span> Test<span style="color: #000000;">&#40;</span> dFecha <span style="color: #000000;">&#41;</span><br />*********************************************************************************************<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oWndMain := WndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDatePicker<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oTimer<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> dFecha := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Reset valores</span><br />&nbsp; &nbsp;cResult &nbsp;:= <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;nVeces &nbsp; := <span style="color: #000000;">0</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Diálogo oculto</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">-1</span>,<span style="color: #000000;">-1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">-1</span>,<span style="color: #000000;">-1</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> WS_POPUP <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br /><br /><span style="color: #B900B9;">// METHOD New( nRow, nCol, bSetGet, oWnd, nWidth, nHeight, bValid, nClrFore,;</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrBack, oFont, lDesign, oCursor, lPixel, cMsg, lUpdate,;</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bWhen, bChange, nHelpId, cPic ) Class TDatePick</span><br /><br />&nbsp; &nbsp;oDatePicker := TDatePick<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">&#123;</span> || dFecha <span style="color: #000000;">&#125;</span>, oDlg, <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, .F., <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">"cmeg"</span>, .t., <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">&#123;</span>|Objeto| cResult := Objeto:<span style="color: #000000;">cText</span>, CloseDlg_MsgDate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDatePicker:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span><span style="color: #000000;">&#40;</span> oDatePicker:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">Hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> cResult <span style="color: #000000;">&#41;</span><br />&nbsp; oWndMain:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; QUIT<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />*********************************************************************************************<br /><br /><br /><br />*********************************************************************************************<br /><span style="color: #00C800;">FUNCTION</span> CloseDlg_MsgDate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*********************************************************************************************<br /><br />nVeces++<br /><span style="color: #00C800;">if</span> nveces > <span style="color: #000000;">1</span><br />&nbsp; &nbsp;nVeces := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />*********************************************************************************************<br />&nbsp;</div>[/code:2d6gm4un] 
sobre IDE
Hola. Estoy buscando un IDE para FW 2.3c y harbour. Qué me recomiendan ? Visual Fivewin que bajé del ftp de quiquesoft ? multiedit ? Gracias. Y para los recursos ? los genero y los guado en DLLs, o en ficheros RC, ... ? y como los genero ? con el workshop ? con visual c++ ? Las bases de datos las creo con dBaseIII+. Existe algún otro sistema que les convenza más, SQL, ... ??? Perdonen tantas preguntas, pero soy nuevo con FHW. Siempre había programado con FW, clipper y blinker, y por fín me decidí a hacer el cambio, pero la información de ayuda que encontré en el software que adquirí lo encuentro muy escueto. Gracias.
sobre MENU -- MENUITEM
TENGO LA SIGUIENTE DUDA::hice un menu desde un arregloMENU NewMenu For nJ= 1 to Len(aSeries) MENUITEM nSeries[nJ] PROMPT aSeries[nJ][1]; ACTION ( ?????? ) /// aca como puedo saber que item estoy seleccionando Next nJ ENDMENUalguna segurencia::GRACIAS..
sobre MENU -- MENUITEM
Prueba conMENUITEM nSeries[nJ] PROMPT aSeries[nJ][1]; BLOCK &( "{|| msgInfo(" + str( nJ ) + ") }" )
sobre Restaurar BACKUP.SQL
Hola, existe una forma de restaurar parcialmente lo BACKUP.SQL ? Backup.sql es gerado con MysqlDump.exe y grava todo lo banco de dados. lo comando que uso para restaurar es: mysql.exe -u root -psenha banco < backup.sql y para generar lo backup: mysqldump.exe --opt -h localhost -u root -psenha banco > backup.sql Yo necessito extrair solamente una tabela del backup, tiene como fazer ? Gracias William
sobre Restaurar BACKUP.SQL
William: Creo que MySql Administrator (GUI) te puede ayudar, este te permite abrir el archivo de respaldo y especificar si deseas recuperar todas la tablas o solo alguna. entre otras cosas más. Saludos
sobre Restaurar BACKUP.SQL
puedes probar mysqlyog saludos paco
sobre Restaurar BACKUP.SQL
Paco y Armando muchas gracias por responder. Yo estoy a desenvolver uno sistema de Backup proprio, para ser utilizado juntamente con mis programas. Ja encontra-se quasi terminado, pode-se verificar lo funcionamento en el link : <!-- m --><a class="postlink" href="http://www.4shared.com/rar/Ajxd2i99/backup.html">http://www.4shared.com/rar/Ajxd2i99/backup.html</a><!-- m --> Mas en la restauracion del backup , viene todo el Banco. Yo queria melhorar el software, tiendo la opcion de Restauracion PARCIAL. Muchas Gracias William
sobre Restaurar BACKUP.SQL
William, Entendido. Paco, Te recomiendo NaviCat, inculye un reporteador, echale un ojo. Saludos
sobre browse lo he visto aqui antes pero....no lo encuentro
unas cositas tontas como hago en un browse, (no se cual es el del listbox creo es twbrowse, por defecto de fivewin) 1.- colocar un bitmap segun 2 valores, pero desde recurso no con filename 2.- colocar un color intercalado como los antiguos reportes blanco, verde, lo hice con una variable logica pero cada vez que seleccionaba una celda cambiaba el orden y se veia desastroso 3.- si quisiera cambiar de browse por otro, todas las instrucciones cambias, ejemplo, las tres instrucciones hacen lo mismo (creo) pero en diferentes browses .- oLbx:bClrStd := color .- oLbx:bBkColor := color .- oLbx:nClrPane := color gracias de antemano
sobre browse lo he visto aqui antes pero....no lo encuentro
pues te respondo al numero 1: iif(aDatosh[nAt,2]==' ',loadbitmap(GetResources(),"imagen1"),loadbitmap(GetResources(),"imagen2"))
sobre browse lo he visto aqui antes pero....no lo encuentro
Yo te respndo a la segunda [code:ix4fipr3] oLbx&#58;nClrPane&#58;=&#123;||iIF&#40;&#40;oLbx&#58;cAlias&#41;->&#40;OrdKeyNo&#40;&#41;&#41;%2==0,nRGB&#40;242,247,252&#41;,nRGB&#40;226,226,208&#41;&#41;&#125;[/code:ix4fipr3] Saludos Jose Luis
sobre browse lo he visto aqui antes pero....no lo encuentro
MUY AGRADECIDO A AMBOS
sobre combobox
SALUDOS Y FELIZ AÑO 2010 una cosita facil que incluso le he hecho antes pero ahora no recuerdo como obtengo el numero seleccionado de un combobox,no el contenido, creo era con ocombo:nAT pero siempre me devuleve 1 si alguien recuerda le estare agradecido
sobre combobox
oCombo:varGet()
sobre combobox
AGRADECIDO AMIGO POR TU PRONTA RESPÙESTA, LO PRUEBO MAS TARDE AUNQUE SEGURO ASI ES FELIZ AÑO 2010
sobre combobox
[quote="QAZWSX2K":1no07tpn]como obtengo el numero seleccionado de un combobox,no el contenido, creo era con ocombo:nAT pero siempre me devuleve 1[/quote:1no07tpn] Yes, it should be oCombo:nAt. Works fine for me. EMG
sobre combobox
en tiempo de ejecucion en los combobox, , si mas abajo existe un get que se habilita/deshabilita dependiendo del item seleccionado existe un detalle que es: - si el item se selecciono dandole enter, lo toma como corresponde bien y el get funciona bien - pero si el item es seleccionado dandole click, sencillamente no lo toma o evalua el get que puede ser? gracias de antemano
sobre combobox
no respondan todos a la vez que no me da tiempo de leer todas las respuestas, jejejej bueno aqui un ejemplo por si no entendieron la pregunta @ 052, 010 SAY OSAY VAR "vende:" OF DIALOGO2 PIXEL COLOR CLR_BLUE FONT FONT1 @ 050, 055 COMBOBOX OBOX VAR Tven SIZE 30,40 OF DIALOGO2 PIXEL FONT FONT1 ITEMS {"SI","NO"} @ 067, 010 SAY OSAY VAR "Numero de venta:" OF DIALOGO2 PIXEL COLOR CLR_BLUE FONT FONT1 @ 065, 140 GET OGET1 VAR TNUM_de OF DIALOGO2 PIXEL COLOR CLR_BLUE FONT FONT1 WHEN oBOX:nAt=1 UPDATE tambien lo he puesto asi @ 065, 140 GET OGET1 VAR TNUM_de OF DIALOGO2 PIXEL COLOR CLR_BLUE FONT FONT1 WHEN TVEN="SI" UPDATE Y NADA SOLO LO EVALUA EL WHEN DEL GET SI SE LE DIO ENTER AL COMBOBOX, SI SE ESCOGE EL ITEM CON CLICK NO LO EVALUA EL WHEN
sobre combobox
Hola, añade un [code=fw:1hwsbbv3]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> dialogo2:<span style="color: #000000;">aEvalWhen</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:1hwsbbv3] en la definicion del COMBOBOX saludos Marcelo
sobre combobox
EXCELENTE FUNCIONO 100% AGRADECIDO MARCELO
sobre combobx
SALUDOS Y FELIZ AÑO 2010 una cosita facil que incluso le he hecho antes pero ahora no recuerdo como obtengo el numero seleccionado de un combobox,no el contenido, creo era con ocombo:nAT pero siempre me devuleve 1 si alguien recuerda le estare agradecido
sobre combobx
Hola amigo... Feliz año nuevo. Es asi como tú dices... oCombo:nAt A mi eso me funciona correctamente. Saludos desde Argentina, Esteban.
sobre comportamiento de txbrowse
estimados, recientemente me he encontrado con un problema al usar xbrowse, la tabla que muestra tiene 1800 registros, y sucede que al seleccionar el registro 15 o cualquier otro y dar doble click abre mi dialogo de edicion, hasta ahi todo correcto, pero extrañamente el browse ha realizado un salto de un registro, cuando por ejemplo el primero en el browse era el registro uno, ahora es el registro dos. adjunto unas imagenes para que lo observen [url:2ltte8uw]http&#58;//img405&#46;imageshack&#46;us/slideshow/webplayer&#46;php?id=txb1&#46;png[/url:2ltte8uw] [img] <!-- m --><a class="postlink" href="http://img405.imageshack.us/img405/8646/txb1.png">http://img405.imageshack.us/img405/8646/txb1.png</a><!-- m --> <!-- m --><a class="postlink" href="http://img200.imageshack.us/img200/2471/txb2.png">http://img200.imageshack.us/img200/2471/txb2.png</a><!-- m --> <!-- m --><a class="postlink" href="http://img834.imageshack.us/img834/2815/txb3.png">http://img834.imageshack.us/img834/2815/txb3.png</a><!-- m --> [/img] el salto tambien ocurre cuando teniendo el browse solamente y muevo el cursor del mouse hacia arriba del browse llegando a la toolbar, al llegar a la toolbar el salto ocurre, esto lo muestro en la 3er grafica, el mouse nose mira, pero puse una flechita para referencia. revisando, el salto no ocurre cuando me muevo por el browse conlas teclas doy ENTER para editar el registro abriendose el dialogo de edicion, esto me llevo a revisar los metodos de txbrowse que involucran el uso del mouse llegando al siguiente codigo [code=fw:2ltte8uw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> MouseMove<span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TXBrowse<br /><br />   <span style="color: #00C800;">local</span> oCol<br />   <span style="color: #00C800;">local</span> nLen, nFor, nPos<br />   <span style="color: #00C800;">local</span> cTxt  <span style="color: #B900B9;">// tooltip CELL</span><br />   <span style="color: #00C800;">local</span> nVMove, nHMove, nOldRowPos,  nOldColPos<br />   <span style="color: #00C800;">local</span> nMousePos := ::<span style="color: #000000;">MouseRowPos</span><span style="color: #000000;">&#40;</span> nRow <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">//KDS  TrackMouseEvent( ::hWnd, TME_LEAVE )   <<------------------- aca lo comente y  ya no hace el salto</span><br /><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lDrag</span> .or. ::<span style="color: #000000;">lEditMode</span><br />      <span style="color: #00C800;">return</span> <span style="color: #00C800;">Super</span>:<span style="color: #000000;">MouseMove</span><span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oCapCol</span> != <span style="color: #00C800;">nil</span><br />      ::<span style="color: #000000;">oCapCol</span>:<span style="color: #000000;">MouseMove</span><span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nCaptured</span> == <span style="color: #000000;">4</span><br />      ::<span style="color: #000000;">HorzLine</span><span style="color: #000000;">&#40;</span> nRow, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lPressed</span><br />      <span style="color: #B900B9;">// temporarily moved here</span><br />      TrackMouseEvent<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, TME_LEAVE <span style="color: #000000;">&#41;</span><br />      <span style="color: #B900B9;">//</span><br />      <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nStartTime</span> == <span style="color: #000000;">0</span><br />         ::<span style="color: #000000;">nStartTime</span> := GetTickCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      en<br /> </div>[/code:2ltte8uw] hay problema comentando la linea TrackMouseEvent( ::hWnd, TME_LEAVE ) este el codigo de mi modulo, aclaro que estoy usando una copia de txbrowse.prg sin modificar [code=fw:2ltte8uw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"credicom.ch"</span><br /><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br />GLOBAL EXTERNAL oApp<br /><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><br />PROCEDURE Clientes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFnt1<br />&nbsp; &nbsp;<span style="color: #00C800;">PRIVATE</span> oDlg, oBrw, oMsg, oBus<br /><br />&nbsp; &nbsp;CIUD-><span style="color: #000000;">&#40;</span> OrdSetFocus<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NUM_CIUD"</span> <span style="color: #000000;">&#41;</span>, DBGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;RUTA-><span style="color: #000000;">&#40;</span> OrdSetFocus<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NUM_RUTA"</span> <span style="color: #000000;">&#41;</span>, DBGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;GEST-><span style="color: #000000;">&#40;</span> OrdSetFocus<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NUM_GEST"</span> <span style="color: #000000;">&#41;</span>, DBGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;COBR-><span style="color: #000000;">&#40;</span> OrdSetFocus<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NUM_COBR"</span> <span style="color: #000000;">&#41;</span>, DBGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;PRES-><span style="color: #000000;">&#40;</span> OrdSetFocus<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CLIEPRES"</span> <span style="color: #000000;">&#41;</span>, DBGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CLIE-><span style="color: #000000;">&#40;</span> OrdSetFocus<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NUM_CLIE"</span> <span style="color: #000000;">&#41;</span>, DBGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;DBSELECT <span style="color: #ff0000;">"RUTA"</span><br />&nbsp; &nbsp;SET RELATION <span style="color: #0000ff;">TO</span> NUM_COBR INTO COBR<br /><br />&nbsp; &nbsp;DBSELECT <span style="color: #ff0000;">"CLIE"</span><br />&nbsp; &nbsp;SET RELATION <span style="color: #0000ff;">TO</span> NUM_CIUD INTO CIUD,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NUM_GEST INTO GEST,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NUM_RUTA INTO RUTA<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFnt1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Tahoma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"DLG_CLIENTESC"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Catalogo de clientes"</span> <span style="color: #0000ff;">OF</span> oApp:<span style="color: #000000;">oMainWnd</span> <span style="color: #0000ff;">ICON</span> GetIcon<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFnt1<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"CLIE"</span> <span style="color: #0000ff;">ON</span> DBLCLICK Clientes_Editar<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFnt1<br /><br />&nbsp; &nbsp;ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> CLIE->NUM_CLIE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"*Nº Cliente"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">090</span> ORDER <span style="color: #ff0000;">"NUM_CLIE"</span> <span style="color: #0000ff;">CENTER</span><br />&nbsp; &nbsp;ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> CLIE->NOMBRE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"*Nombre"</span> &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">285</span> ORDER <span style="color: #ff0000;">"NOMBRE"</span><br />&nbsp; &nbsp;ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> CLIE->CEDULA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"*Cedula"</span> &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span> ORDER <span style="color: #ff0000;">"CEDULA"</span><br />&nbsp; &nbsp;ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> CIUD->NOMBRE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Ciudad"</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">130</span><br />&nbsp; &nbsp;ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> RUTA->NOMBRE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Ruta"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span><br />&nbsp; &nbsp;ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> IIf<span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> CLIE->NOTAS <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Nota"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">028</span> BITMAP IN <span style="color: #ff0000;">"BMS_POSTIT"</span><br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">SetRdd</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">bKeyDown</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>|nKey| Clientes_ProcesaTecla<span style="color: #000000;">&#40;</span> nKey <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">nHeaderHeight</span> := <span style="color: #000000;">25</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">lHScroll</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #00C800;">FALSE</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">lSeekUpper</span> &nbsp; &nbsp;:= <span style="color: #00C800;">TRUE</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">bSeek</span> &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span>|cString| DbSeek<span style="color: #000000;">&#40;</span> Upper<span style="color: #000000;">&#40;</span> cString <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">MyConfig</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nHeadStrAlign</span> := AL_LEFT<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> Clientes_Toolbar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;LimpiarAreas<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFnt1<br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> oDlg, oBrw, oMsg, oBus<br /><br /><span style="color: #00C800;">RETURN</span><br /><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><br />PROCEDURE Clientes_Toolbar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oToolbar, oPopUpPrn, oPopUpPre<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oToolBar <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">45</span> <span style="color: #000000;">2007</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TB_CLOSE"</span> &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oToolBar <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOOLTIP <span style="color: #ff0000;">"Salir del modulo"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TB_ADD"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oToolBar <span style="color: #0000ff;">ACTION</span> Clientes_Editar<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">TRUE</span> &nbsp;<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOOLTIP <span style="color: #ff0000;">"Registro de nuevo cliente"</span> GROUP<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TB_EDIT"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oToolBar <span style="color: #0000ff;">ACTION</span> Clientes_Editar<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOOLTIP <span style="color: #ff0000;">"Editar datos de cliente"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TB_DELETE"</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oToolBar <span style="color: #0000ff;">ACTION</span> Clientes_Borrar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TOOLTIP <span style="color: #ff0000;">"Borrar datos de cliente"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TB_PRINTERM"</span> &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oToolBar <span style="color: #0000ff;">ACTION</span> Dummy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TOOLTIP <span style="color: #ff0000;">"Menu de listados"</span> GROUP<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TB_TABLEPRES"</span> &nbsp; <span style="color: #0000ff;">OF</span> oToolBar <span style="color: #0000ff;">ACTION</span> Clientes_Prestamos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOOLTIP <span style="color: #ff0000;">"Mostrar prestamos otorgados"</span> GROUP<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TB_TABLESEARCH"</span> <span style="color: #0000ff;">OF</span> oToolBar <span style="color: #0000ff;">ACTION</span> Clientes_BuscarXPrestamo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; TOOLTIP <span style="color: #ff0000;">"Buscar por nº de prestamo"</span><br /><br />&nbsp; &nbsp;SET MSGBAR <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"INS=Nuevo, DEL=Borrar, ENTER=Editar, F2=Prestamos, F9=Refrescar"</span> <span style="color: #000000;">2010</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGITEM oBus <span style="color: #0000ff;">OF</span> oDlg:<span style="color: #000000;">oMsgBar</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">""</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">COLOR</span> CLR_HBLUE, CLR_BLACK<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">SetControl</span><span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">nTop</span> &nbsp; &nbsp;+= <span style="color: #000000;">1</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">nHeight</span> -= <span style="color: #000000;">1</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">oSeek</span> &nbsp; := oBus<br /><br />&nbsp; &nbsp;oToolBar:<span style="color: #000000;">bRClicked</span>:=<span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oToolBar:<span style="color: #000000;">bLClicked</span>:=<span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">RETURN</span><br /><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><br />PROCEDURE Clientes_ProcesaTecla<span style="color: #000000;">&#40;</span> nKey <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nKey == VK_INSERT<br />&nbsp; &nbsp; &nbsp; Clientes_Editar<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">TRUE</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nKey == VK_RETURN<br />&nbsp; &nbsp; &nbsp; Clientes_Editar<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nKey == VK_DELETE<br />&nbsp; &nbsp; &nbsp; Clientes_Borrar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nKey == VK_F2<br />&nbsp; &nbsp; &nbsp; Clientes_Prestamos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nKey == VK_F9<br />&nbsp; &nbsp; &nbsp; Refrescar_Browse<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDCASE</span><br /><span style="color: #00C800;">RETURN</span><br />&nbsp;</div>[/code:2ltte8uw] salu2 carlos vargas
sobre comportamiento de txbrowse
May I know the version of FWH you are using? Please see the method Refresh() in the xbrowse.prg and locate the line with the code: ::DelRePos() Please comment out this line and link to your program. Can you let me know if the problem is resolved or not with this change?
sobre comportamiento de txbrowse
Hola carlos: Comprueba el tema de los registros borrados en los indices. Yo lo solucione indexando con ! FOR deleded() Un saludo JLL
sobre comportamiento de txbrowse
[quote="jll-fwh":3to5vynr]Hola carlos: Comprueba el tema de los registros borrados en los indices. Yo lo solucione indexando con ! FOR deleded() Un saludo JLL[/quote:3to5vynr] Yes. Finally I am going to come to a similar recommendation. Before that I wanted to know the effect of ::DelRepos(). Some users have been occasionally facing this problem and I am trying to decide a final fix. About ! Deleted() condition: Having a for clause in an index expression renders the index useless for optimization purposes. Better and time-tested solution is this: Always create an additional index tag "INDEX ON DELETED() TAG DELETED" And SET FILTER TO !DELETED() where we do not want any filter and SET FILTER TO <expr> .AND. !DELETED() where we want a filter on <expr>. Because we have an index on DELETED(), the filter is optimized and speed is better than having no filter. Also OrdKeyNo() and OrdKeyCount() return accurate values.
sobre comportamiento de txbrowse
sorry for my bad english. ok, i use fwh 11.03 all my index tag used the clausule "for !deleted()" and a idex tag named "index on deleted() tag del" for optimize use, this is recomend for ads. i try you recomend [code=fw:2b4tgfy3]<div class="fw" id="{CB}" style="font-family: monospace;">Please see the <span style="color: #00C800;">method</span> <span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> in the <span style="color: #0000ff;">xbrowse</span>.prg and locate the line with the code:<br />::<span style="color: #000000;">DelRePos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:2b4tgfy3] but not work. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> only work comment the first call to TrackMouseEvent( ::hWnd, TME_LEAVE ) in the method mousemove salu2
sobre comportamiento de txbrowse
Mr Carlos This problem occurs on specific tables. Not easy to reproduce on any table. I am not able to reproduce. But let me keep trying to find the right fix. Modification of TrackMouseEvent appears to fix this issue, but that is not the correct fix. The real problem is in the Refresh() method. I get back when i find the right table to reproduce and fix it. Offtopic: If you are using ADS, please avoid using FOR condtion. Indexes with for and while conditions will NOT be used for optimization of filters. It is enough to have one separate tag on deleted() and add !deleted() to every filter condition. Sameway set filter to !deleted() instead of clearing all filters. About English: Do not worry. I am also not good at English. It is enough if we understand each other to help each other.
sobre comportamiento de txbrowse
ok, thanks for the recomend about the for deleted() clause in index .... i can send by email the dd with the tables, please sendme a email address. thanks you
sobre comportamiento de txbrowse
nageswaragunupudi at gmail dot co,
sobre comportamiento de txbrowse
Mr Carlos I just received your data. I shall make my tests later. Meanwhile, please let me know if you are using ADS in the above sample. If you are using ADS in the above sample, please add these two lines of code after REDEFINE oBrw. [code=fw:xgu2fwtg]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">bKeyNo</span>    := <span style="color: #000000;">&#123;</span>| n | iif<span style="color: #000000;">&#40;</span> n == <span style="color: #00C800;">nil</span>, <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdKeyNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdKeyGoto<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span><br />oBrw:<span style="color: #000000;">bKeyCount</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdKeyCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:xgu2fwtg] REDEFINE oBrw ..... ALIAS <alias> command executes SetRDD() also. Please remove the SetRDD() call at the end. and test after this change.
sobre comportamiento de txbrowse
yes, i use ads in client/remote in lan error with oBrw:bKeyNo: [quote:17peoiuh] Application =========== Path and name: D:\misapp\credicom\credicom.Exe (32 bits) Size: 3,431,424 bytes Time from start: 0 hours 0 mins 3 secs Error occurred at: 11/08/2011, 08:59:54 Error description: Error BASE/1004 Class: 'NIL' has no exported method: EVAL Args: [ 1] = U Stack Calls =========== Called from: => EVAL(0) Called from: source\xbrowse.prg => TXBROWSE:PAINT(1343) Called from: source\xbrowse.prg => TXBROWSE:DISPLAY(1216) Called from: source\control.prg => TCONTROL:HANDLEEVENT(1525) Called from: source\xbrowse.prg => TXBROWSE:HANDLEEVENT(11297) Called from: .\source\classes\WINDOW.PRG => _FWH(3418) Called from: => DIALOGBOXINDIRECT(0) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(275) Called from: .\source\function\ERRSYSW.PRG => ERRORDIALOG(379) Called from: .\source\function\ERRSYSW.PRG => (b)ERRORSYS(27) Called from: => EVAL(0) Called from: source\xbrowse.prg => TXBROWSE:PAINT(1343) Called from: source\xbrowse.prg => TXBROWSE:DISPLAY(1216) Called from: source\control.prg => TCONTROL:HANDLEEVENT(1525) Called from: source\xbrowse.prg => TXBROWSE:HANDLEEVENT(11297) Called from: .\source\classes\WINDOW.PRG => _FWH(3418) Called from: => DIALOGBOX(0) [/quote:17peoiuh] [code=fw:17peoiuh]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />PROCEDURE Clientes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oFnt1<br />   <span style="color: #00C800;">PRIVATE</span> oDlg, oBrw, oMsg, oBus<br /><br />   CIUD-><span style="color: #000000;">&#40;</span> OrdSetFocus<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NUM_CIUD"</span> <span style="color: #000000;">&#41;</span>, DBGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   RUTA-><span style="color: #000000;">&#40;</span> OrdSetFocus<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NUM_RUTA"</span> <span style="color: #000000;">&#41;</span>, DBGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   GEST-><span style="color: #000000;">&#40;</span> OrdSetFocus<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NUM_GEST"</span> <span style="color: #000000;">&#41;</span>, DBGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   COBR-><span style="color: #000000;">&#40;</span> OrdSetFocus<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NUM_COBR"</span> <span style="color: #000000;">&#41;</span>, DBGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   PRES-><span style="color: #000000;">&#40;</span> OrdSetFocus<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CLIEPRES"</span> <span style="color: #000000;">&#41;</span>, DBGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   CLIE-><span style="color: #000000;">&#40;</span> OrdSetFocus<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NUM_CLIE"</span> <span style="color: #000000;">&#41;</span>, DBGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   DBSELECT <span style="color: #ff0000;">"RUTA"</span><br />   SET RELATION <span style="color: #0000ff;">TO</span> NUM_COBR INTO COBR<br /><br />   DBSELECT <span style="color: #ff0000;">"CLIE"</span><br />   SET RELATION <span style="color: #0000ff;">TO</span> NUM_CIUD INTO CIUD,;<br />                   NUM_GEST INTO GEST,;<br />                   NUM_RUTA INTO RUTA<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFnt1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Tahoma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"DLG_CLIENTESC"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Catalogo de clientes"</span> <span style="color: #0000ff;">OF</span> oApp:<span style="color: #000000;">oMainWnd</span> <span style="color: #0000ff;">ICON</span> GetIcon<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFnt1<br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"CLIE"</span> <span style="color: #0000ff;">ON</span> DBLCLICK Clientes_Editar<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFnt1<br /><br />   ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> CLIE->NUM_CLIE                     <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"*Nº Cliente"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">090</span> ORDER <span style="color: #ff0000;">"NUM_CLIE"</span> <span style="color: #0000ff;">CENTER</span><br />   ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> CLIE->NOMBRE                       <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"*Nombre"</span>     <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">285</span> ORDER <span style="color: #ff0000;">"NOMBRE"</span><br />   ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> CLIE->CEDULA                       <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"*Cedula"</span>     <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span> ORDER <span style="color: #ff0000;">"CEDULA"</span><br />   ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> CIUD->NOMBRE                       <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Ciudad"</span>      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">130</span><br />   ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> RUTA->NOMBRE                       <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Ruta"</span>        <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span><br />   ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> IIf<span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> CLIE->NOTAS <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Nota"</span>        <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">028</span> BITMAP IN <span style="color: #ff0000;">"BMS_POSTIT"</span><br /><br />   oBrw:<span style="color: #000000;">bKeyNo</span>        := <span style="color: #000000;">&#123;</span>| n | iif<span style="color: #000000;">&#40;</span> n == <span style="color: #00C800;">nil</span>, CLIE-><span style="color: #000000;">&#40;</span> OrdKeyNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, CLIE-><span style="color: #000000;">&#40;</span> OrdKeyGoto<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oBrw:<span style="color: #000000;">bKeyCount</span>     := <span style="color: #000000;">&#123;</span>|| CLIE-><span style="color: #000000;">&#40;</span> OrdKeyCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oBrw:<span style="color: #000000;">bKeyDown</span>      := <span style="color: #000000;">&#123;</span>|nKey| Clientes_ProcesaTecla<span style="color: #000000;">&#40;</span> nKey <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oBrw:<span style="color: #000000;">nHeaderHeight</span> := <span style="color: #000000;">25</span><br />   oBrw:<span style="color: #000000;">lHScroll</span>      := <span style="color: #00C800;">FALSE</span><br />   oBrw:<span style="color: #000000;">lSeekUpper</span>    := <span style="color: #00C800;">TRUE</span><br />   oBrw:<span style="color: #000000;">bSeek</span>         := <span style="color: #000000;">&#123;</span>|cString| DbSeek<span style="color: #000000;">&#40;</span> Upper<span style="color: #000000;">&#40;</span> cString <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oBrw:<span style="color: #000000;">MyConfig</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">&#41;</span><br /><br />   oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nHeadStrAlign</span> := AL_LEFT<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> Clientes_Toolbar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   LimpiarAreas<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFnt1<br />   <span style="color: #0000ff;">RELEASE</span> oDlg, oBrw, oMsg, oBus<br /><br /><span style="color: #00C800;">RETURN</span><br /> </div>[/code:17peoiuh] I procure not touch the original class, i use the extende instruction of xharbour for modify the class examples: [code=fw:17peoiuh]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br />   EXTEND <span style="color: #00C800;">CLASS</span> TXBROWSE   WITH <span style="color: #00C800;">METHOD</span> MyConfig<br />   EXTEND <span style="color: #00C800;">CLASS</span> TXBROWSE   WITH <span style="color: #00C800;">METHOD</span> SetMyBmpSort<br />...<br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">FUNCTION</span> SetMyBmpSort<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> <span style="color: #00C800;">Self</span> := HB_QSelf<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oBmp, hBmp<br /><br />   ::<span style="color: #000000;">aSortBmp</span> := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> BITMAP oBmp <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"BMS_UP"</span><br />   hBmp  := oBmp:<span style="color: #000000;">hBitmap</span><br />   AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aSortBmp</span>, <span style="color: #000000;">&#123;</span> hBmp, <span style="color: #000000;">0</span>, nBmpWidth<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span>, nBmpHeight<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NIL</span>, <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> BITMAP oBmp <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"BMS_DOWN"</span><br />   hBmp  := oBmp:<span style="color: #000000;">hBitmap</span><br />   AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aSortBmp</span>, <span style="color: #000000;">&#123;</span> hBmp, <span style="color: #000000;">0</span>, nBmpWidth<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span>, nBmpHeight<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NIL</span>, <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MyConfig<span style="color: #000000;">&#40;</span> lOrder, nFreeze, lCell <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> <span style="color: #00C800;">Self</span> := HB_QSelf<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">DEFAULT</span> lOrder  := <span style="color: #00C800;">FALSE</span>,;<br />           nFreeze := <span style="color: #000000;">0</span>, ;<br />           lCell   := <span style="color: #00C800;">FALSE</span><br /><br />   ::<span style="color: #000000;">lRecordSelector</span>        := <span style="color: #00C800;">FALSE</span><br />   ::<span style="color: #000000;">nStretchCol</span>            := STRETCHCOL_LAST<br />   ::<span style="color: #000000;">nColDividerStyle</span>       := LINESTYLE_DARKGRAY<br />   ::<span style="color: #000000;">lColDividerComplete</span>    := <span style="color: #00C800;">TRUE</span><br />   ::<span style="color: #000000;">bClrHeader</span>             := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLUE,  CLR_BROWTIT, CLR_BLACK <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />   ::<span style="color: #000000;">bClrSelFocus</span>           := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_CYAN               <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />   ::<span style="color: #000000;">bClrFooter</span>             := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_RED,   CLR_BROWTIT, CLR_BLACK <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />   ::<span style="color: #000000;">bClrSel</span>                := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_BLACK              <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />   ::<span style="color: #000000;">l2007</span>                  := <span style="color: #00C800;">TRUE</span><br />   ::<span style="color: #000000;">lAllowColHiding</span>        := <span style="color: #00C800;">FALSE</span><br />   ::<span style="color: #000000;">lAllowColSwapping</span>      := <span style="color: #00C800;">FALSE</span><br />   ::<span style="color: #000000;">lAllowRowSizing</span>        := <span style="color: #00C800;">FALSE</span><br />   ::<span style="color: #000000;">lAllowCopy</span>             := <span style="color: #00C800;">FALSE</span><br />   ::<span style="color: #000000;">lKinetic</span>               := <span style="color: #00C800;">FALSE</span><br />   ::<span style="color: #000000;">lKineticBrw</span>            := <span style="color: #00C800;">FALSE</span><br />   ::<span style="color: #000000;">nFreeze</span>                := nFreeze<br />   <span style="color: #00C800;">IF</span> !lCell<br />      ::<span style="color: #000000;">nMarqueeStyle</span>       := MARQSTYLE_HIGHLROW<br />   <span style="color: #00C800;">ENDIF</span><br />   <span style="color: #00C800;">IF</span> lOrder<br />      ::<span style="color: #000000;">SetMyBmpSort</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:17peoiuh] a question, in client/server is correct this codes: i have dude in the use of rlock o flock in c/s with ads is necesary? in a transacction, is correct my implementation? sorry for my questyon, is my first use of ads: [code=fw:17peoiuh]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"credicom.ch"</span><br /><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br />GLOBAL oApp, oUser, hConnADS<br /><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><span style="color: #00C800;">STATIC</span> oMutex<br /><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><br />REQUEST  ADS, HB_LANG_ESWIN, HB_CODEPAGE_ESWIN<br />REQUEST  DBFCDX, DBFFPT<br />EXTERNAL AdsKeyNo, AdsKeyCount, AdsGetRelKeyPos, AdsSetRelKeyPos<br />....<br /><span style="color: #00C800;">FUNCTION</span> Main_Configure<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   HB_Langselect<span style="color: #000000;">&#40;</span>  <span style="color: #ff0000;">"ESWIN"</span> <span style="color: #000000;">&#41;</span><br />   HB_Setcodepage<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ESWIN"</span> <span style="color: #000000;">&#41;</span><br /><br />   RddSetDefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADS"</span> <span style="color: #000000;">&#41;</span><br /><br />   #ifndef __WITH_SERVER__<br />   SET <span style="color: #00C800;">SERVER</span> <span style="color: #00C800;">LOCAL</span><br />   #else<br />   SET <span style="color: #00C800;">SERVER</span> REMOTE<br />   #endif<br />   SET FILETYPE <span style="color: #0000ff;">TO</span> ADT<br />   SET RIGHTS CHECKING OFF<br />   SET AXS LOCKING OFF<br />   SET <span style="color: #00C800;">DEFAULT</span>  <span style="color: #0000ff;">TO</span> .\DATOS\<br /><br />   SET DATE     BRIT<br />   SET EPOCH    <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1964</span><br />   SET DECIMAL  <span style="color: #0000ff;">TO</span> <span style="color: #000000;">4</span><br />   SET TRACE    OFF<br />   SET SOFTSEEK OFF<br />   SET CENTURY  <span style="color: #0000ff;">ON</span><br />   SET OPTIMIZE <span style="color: #0000ff;">ON</span><br />   SET CONFIRM  <span style="color: #0000ff;">ON</span><br />   SET DELETED  <span style="color: #0000ff;">ON</span><br />   SET FIXED    <span style="color: #0000ff;">ON</span><br /><br />   SET<span style="color: #000000;">&#40;</span> _SET_FILECASE, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   SET<span style="color: #000000;">&#40;</span> _SET_DIRCASE,  <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />...<br /> </div>[/code:17peoiuh] [code=fw:17peoiuh]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> Clientes_Grabar<span style="color: #000000;">&#40;</span> lNuevo <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> lGrabado := <span style="color: #00C800;">FALSE</span><br /><br />   <span style="color: #00C800;">TRY</span><br />      AdsBeginTransaction<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">IF</span> lNuevo<br />         <span style="color: #00C800;">IF</span> CTRL-><span style="color: #000000;">&#40;</span> DBLockRec<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> .and. CLIE-><span style="color: #000000;">&#40;</span> DBAppendRec<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />            CTRL->CONT_CLIE  += <span style="color: #000000;">1</span><br />            CLIE->NUM_CLIE   := cNumCli<br />            CLIE->NOMBRE     := LTrim<span style="color: #000000;">&#40;</span> cNomCli <span style="color: #000000;">&#41;</span><br />            CLIE->DOMICILIO  := LTrim<span style="color: #000000;">&#40;</span> cDomCli <span style="color: #000000;">&#41;</span><br />            DBCommitAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            DBUnlockAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            lGrabado := <span style="color: #00C800;">TRUE</span><br />         <span style="color: #00C800;">ELSE</span><br />            DBUnlockAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">ENDIF</span><br />      <span style="color: #00C800;">ELSE</span><br />         <span style="color: #00C800;">IF</span> CLIE-><span style="color: #000000;">&#40;</span> DBLockRec<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />            CLIE->NOMBRE     := LTrim<span style="color: #000000;">&#40;</span> cNomCli <span style="color: #000000;">&#41;</span><br />            CLIE->DOMICILIO  := LTrim<span style="color: #000000;">&#40;</span> cDomCli <span style="color: #000000;">&#41;</span><br />            CLIE-><span style="color: #000000;">&#40;</span> DBCommit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, DBUnlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />            lGrabado := <span style="color: #00C800;">TRUE</span><br />         <span style="color: #00C800;">ENDIF</span><br />      <span style="color: #00C800;">ENDIF</span><br /><br />      AdsCommitTransaction<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   CATCH oError<br />      AdsRollBack<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ShowError<span style="color: #000000;">&#40;</span> oError <span style="color: #000000;">&#41;</span><br />   END<br /><br />   <span style="color: #00C800;">IF</span> lGrabado<br />      oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> lGrabado<br /> </div>[/code:17peoiuh]
sobre el obj
No me gustaria usar el VERCE porque me genera algunos conflictos y los bat que estan en los ejemplos ya que no se tiene el control de los obj es por eso que quiero saber la raiz del como se construye.. Gracias y Saludos.
sobre el obj
FWH\samples\buildh.bat muestra claramente como se construyen los OBJs y el EXE
sobre fivemac
saludos, bien voy a comenzar a utilizar el fivemac que gentilmente nos dios antonio a principios de agosto ya que he conseguido un posible cliente y mercado sobre el cual enfocar mis sistemas aca, las dudas que tengo son las siguiente: - puedo compilar mi codigo de fivewin normal con el fivemac solo cambiando las respectivas librerias? - existe algun emulador para windows de mac donde probar los programas o es obligatorio tener el mac os instalado? - se puede compilar con verce? agradecido
sobre fivemac
Alex, FiveMac es muy similar a FWH, pero no posee tantas características como FWH, por lo que no sirve el recompilar el código fuente de FWH. No existe un emulador de Mac para Windows, por lo que tienes que desarrollar en un Mac. Una opción más barata, aunque no lo permite la licencia de Apple, es usar un "hackintosh". Nosotros usamos Macs <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
sobre fivemac
[url:2lvr0gt7]http&#58;//tecnolatino&#46;com/instalar-mac-os-x-snow-leopard-en-windows-7/[/url:2lvr0gt7]