topic
stringlengths
1
63
text
stringlengths
1
577k
records disappear [solved]
[quote="Otto":1fh853o4]Are these records at the end of the database are these old entries.[/quote:1fh853o4] [quote="lucasdebeltran":1fh853o4]Old entries.[/quote:1fh853o4] A record that is not the last one simply cannot disappear without a PACK. EMG
records disappear [solved]
Like Enrico wrote : A record that is not the last one simply cannot disappear without a PACK. Have you checked what happens when you compare the same record number between the file copy and the actual file ? If you use DATABASE class with aBuffer , It happens sometime that the record pointer changes ( for example in a browse ) and executes an update on a different record . Checks whether there is an overlap of records and not a loss . Maurizio
records disappear [solved]
[quote:9w4fk856]A record that is not the last one simply cannot disappear without a PACK.[/quote:9w4fk856] I would disagree with the above statement.... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> I have a app that was written years ago used for generating service reports. Every now and then (very rare indeed) I will notice that a record has gone missing. I know the record did exist at one point since I have a paper printout that shows the record existed. Since the missing records are from past years I also know they are not the last record in the database. Also, since these service reports are to track repairs done on medical equipment I have not included a PACK function as I do not want the end user to be able to permanently remove a record (in fact they cannot even delete a record ... only I have that ability). I have verified that it is not an index issue (opened the database without any index via a third party program). It would seem that there is a little gremlin running around stealing our data every now and then <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
records disappear [solved]
[quote="Jeff Barnes":15kmniiv][quote:15kmniiv]A record that is not the last one simply cannot disappear without a PACK.[/quote:15kmniiv] I would disagree with the above statement.... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> [/quote:15kmniiv] To physically delete a record that is not the last one you would have to copy all the records in a new table excluding that one. Or copy all fields from the next record and so on to the end of table. There are no other ways, as far as I know. EMG
records disappear [solved]
Jeff, overwrite I can imagine also delete in conjunction with pack but > Every now and then (very rare indeed) I will notice that a record has gone missing. without a reason and not seeing a corruption inside the database I can’t. But we must take this issue very serious because if there is really a problem with the database engine it can happen to every one of us. Do you have more information. I tried to delete exactly one record inside a dbf file with Multiedit. But then if you try to open with a dbase editor you get a corruption detected error. Best regards, Otto <!-- m --><a class="postlink" href="http://www.digitalpreservation.gov/formats/fdd/fdd000325.shtml">http://www.digitalpreservation.gov/form ... 0325.shtml</a><!-- m --> <!-- m --><a class="postlink" href="http://www.dbase.com/Knowledgebase/INT/db7_file_fmt.htm">http://www.dbase.com/Knowledgebase/INT/db7_file_fmt.htm</a><!-- m -->
records disappear [solved]
Hi Otto, I have no good explanation as to what is causing this. All I know is that there are three of us that use my program in my office. Only I have access to delete records. Each new record is assigned a service report number (ie: 12001, 12002, 12003 etc...) This number is locked from editing. A while back I had to look up an old report (let's say it was 12120) ... I did the usual search via the program ... not found. I did a reindex, searched again, not found. I opened up the dbf file in an editor and manually looked through the entire database. Since the records are stored and created in order i would have expected to find the record right after 12119 but no. The records we as follows: ... 12117 12118 12119 12121 12122 etc.... Nowhere was there an entry for 12120 but I have a printed report for this item so I know it did indeed exist. There was not even a blank entry where 12120 should have been. No deleted item ... just gone. In the many years that we have used the program I think this has only happened two or three times.
records disappear [solved]
It looks like a bug in your code-generating function. EMG
records disappear [solved]
Jeff, I belive that you have a printed copy. How do you print the records. Do you read from disk. I think you missed to commit and then the data is somewhere in the cache. Maybe then there was a program error and the data was not written to the disk. Is your data on a network dirive. Best regards, Otto
records disappear [solved]
Yes the records are read from the hard drive and yes on a network. -Record is created when equipment comes in -Any work done on equipment is entered into the record. -The equipment is left running for 24 hours to verify the problem has been solved -The record is re-opened, any additional comments added, and the final report is printed. If it were a cache issue, the original record should still be in the system but without the added data.
records disappear [solved]
Jeff, Well, I agree with Enrico, without a PACK an existing record cannot be removed from a DBF file. The only explanation for your example that I can think of, is that you printed the report, then a new record was created and it was saved over the existing record for the previous ID. I have had this happen in the past when I was using an index on the ID and the index was corrupted. To prevent this, I started turning off the index then using GO BOTTOM instead of using the index. GO BOTTOM has never failed me. Regards, James
records disappear [solved]
Hello James, Would you be so kind to explain how index or go bottom has an effect if I add a record with append blank. Best regards, Otto
records disappear [solved]
I guess anything is possible. we don't use the software anymore for new reports ... only used now to pull up old ones.
records disappear [solved]
Otto, >Would you be so kind to explain how index or go bottom has an effect if I add a record with append blank. Now I remember exactly what was happening. I was using an ID index to find the last used ID by issuing a GO BOTTOM (while the index on ID was the current index). Normally this worked fine, but when the index was corrupted I did get multiple copies of the same ID (because it wasn't seeing newly added records). This is not exactly what Jeff is seeing. However, you cannot remove records from the middle of a DBF without doing a PACK or COPY TO, so one explanation for his example is that a new record was written over the top of the last record in the file. If the ID index was corrupted the new record may have been written over any other existing record in the file. Or, possibly the missing record was printed on a report but never actually saved to the DBF. Regards, James
records disappear [solved]
Hello James, do you know is the dbf database engine checks if the number of records corresponds to the value stored in the header. Otherwise what happens if a antivirus software tries to repair a file and deletes some records inside a dbf file. Best regards Otto 4-7 32-bit number Number of records in the table. (Least significant byte first.)
records disappear [solved]
No. Even at very low level a sequential file (a DBF [b:31vxjnxx]is[/b:31vxjnxx] a sequential file) can only be truncated (ie. deleted from a point to the end). To delete an inner part of it the only way is to copy it to another file. EMG
records disappear [solved]
I'm glad this thread was started. I don't believe in ghosts, or gremlins, but they still seem to exist in our computers. I know what should not be able to happen, but I do know what does happen: 1) A "workorder" is created. It has totals, client link numbers, etc. When it is created it is Saved ! Then, when data is added ( connected ), it is also saved. The main workorder is stored in ord.dbf ! 2) When parts are added to a workorder ( and labor ), they are linked with the workorder number. These records are all saved in their own files. 3) Example: Workorder 100005 is created. The number is drawn from a separate counter file. It exists in the ord.dbf file. When other items are added they also have the 100005 stored in the first field of their records. 4) A printout is made of 100005. It shows all detail and all connected parts. It is clearly in the system. 5) All entries are physically in numerical sequence. The saves are done when the record is first created, and when it is updated. 6) Several weeks later, a reprint is needed. The record is gone in the ord.dbf file ( but all the associated records still exist in their files ). If I manually add a new record for 100005 to the ord.dbf file, I can then print a full document and all of the related records in other files will show up as they should. In each case I have investigated, the record is simply missing from the ord.dbf file. I've done numerous searches through the file to see if the data has been written over another record, but that is not the case. It doesn't happen very often, but it does actually occur. Perhaps there are ghosts and goblins out there, living our computer data. Tim
records disappear [solved]
Timm, Which antivirus do you use in that PC?. Thanks
records disappear [solved]
[quote="TimStone":1761wffj]I know what should not be able to happen, but I do know what does happen[/quote:1761wffj] No, you only see the final effect that can have many different reasons to happen. Simply, the real reason is not the one you imagine. EMG
records disappear [solved]
If indexes are fine, then the technical reason that comes to my mind is that the writting of a record may fail randomly (and this could happen from the DBF engine itself, its a possibility). If this is the case, maybe you could use a (sort of) backup DBF where you also register your latest activity of the initial DBF. If a record dissapears on the DBF, its initial existence should be in the backup DBF and that could provide more info for a pattern, or a way to reproduce it.
records disappear [solved]
[quote="Antonio Linares":rlheh39k]If indexes are fine, then the technical reason that comes to my mind is that the writting of a record may fail randomly (and this could happen from the DBF engine itself, its a possibility).[/quote:rlheh39k] A failed operation can corrupt the DBF or write garbage to the current record but can't delete the record and recompact the table. EMG
records disappear [solved]
Enrico, If a buffered chunk of data is written and part of it gets corrupted, that could do it A log file (what I named a "backup" dbf) could reveal if the operation was done but the record vanished (?). I am just guessing, trying to imagine what may be going on... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
records disappear [solved]
As Enrico, Antonio, and I have said, it is not possible for records to disappear from the middle of a DBF (unless a PACK or COPY TO has been done). The only ways for records to seem to disappear is for the record to never have actually been written to the file (I have never had this happen), or for the original record to be overwritten by another record. For troubleshooting (as Antonio suggested), you could create another DBF file and write the recno(), ID, date, and time every time a record is saved to the original DBF. Then you could later track exactly what happened. Regards, James
records disappear [solved]
[quote="Antonio Linares":wi2euqf6]Enrico, If a buffered chunk of data is written and part of it gets corrupted, that could do it[/quote:wi2euqf6] Then you would get a corrupted record not a vanished record. EMG
records disappear [solved]
Enrico, Yes, I think you are right about it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
records disappear [solved]
Antonio, Wouldn't your suggestion (using a backup DBF) not slow down the application enormously? In my application a few thousand new records are written every day. Some DBF-files have moren than 1.000.000 records. Thanks.
records disappear [solved]
Michel, [quote:yzg0dk0w]Wouldn't your suggestion (using a backup DBF) not slow down the application enormously?[/quote:yzg0dk0w] I don't think he meant to create a backup of the entire database each time it was updated (if that is what you were thinking). I think he just meant to add records to two identical databases. If it took 1 second to save to the original file, then it would only take 2 seconds to save to two files. This is not something that users would probably even notice. My concern with this is that if it is a coding issue that is causing the problem, then both databases would be identical and you learn nothing from them. If it is a corrupted index causing the problem then this would not affect both databases at the same time so you would see a problem. However, as I suggested, you could just create a tracking dbf that only records four fields and this would probably be much faster. Regardless of coding or index problems this gives you a record of all changes to the original DBF. James
records disappear [solved]
driessen, I have some DBFs with 10 million records, without problems. regards
records disappear [solved]
Michel, Is the only solution that I can think about (by now) to debug it. Maybe you could code it to set it on and off if required. If a record disapears, then we need to have a concrete situation, some initial info and a way to reproduce it so if there is a problem, it could be reproduced, reported and solved <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> As James explained, I don't think it will impact the overall performance of the app very much.
records disappear [solved]
FYI - The problem of orphan child records can be solved using .Adt tables with a primary index key and simple Referential Integrity rules on the data dictionary. ...and it works with the local (free) version of the server just as well. One other thing: In the old days, before I used the ADS server, I used to keep all tables closed at all times. If you need to update, insert, or delete a record, the application would open the table, do its thing, and then close it right away. That keeps corruption at bay and if you are only working with 5 or less users, it hardly hurts performance. Hope that helps, Reinaldo.
records disappear [solved]
I confirm it was the antivirus. Moving to Eset Nod 32 solved the problem. Thanks for your feedback and very interesing advice.
records disappear [solved]
I set antivirus proograms to ignore DBF and NTX files. In addition to other problems you don't want the antivirus software to scan DBF's and NTX's every time a record is saved. Regards, James
recorido de columnas en xbrowse con freeze
hola a todos: Supongamo un browse de 10 cols. tengo dos columnas cogeladas solo muestro 5 , si voy hacia la derecha oviamente muestra las ultimas (8,9,10), pero si regreso a la izquierda, estando el la col. 8, se va a las columnas congeladas , ¿como hacer para que muestre la adyacente hacia la izquierda ? Saludos a todos
recorrer para atras en un tree
Hola. Estoy posicionado en una rama que no se si estan dentro de otra... necesito recorrer desde esa rama para ATRAS hasta llegar a la raiz, como lo hago?
recorrer para atras en un tree
Gustavo, El método Scan() de la Clase TTreeView usa esta función para "avanzar en los items" [code=fw:eza23j2r]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ScanItemsBlock<span style="color: #000000;">&#40;</span> aItems, bAction <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oItem, n := <span style="color: #000000;">1</span>, oItemFound<br /><br />   <span style="color: #00C800;">while</span> n <= Len<span style="color: #000000;">&#40;</span> aItems <span style="color: #000000;">&#41;</span> .and. oItemFound == <span style="color: #00C800;">nil</span><br />      oItem = aItems<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><br />      <span style="color: #00C800;">if</span> Eval<span style="color: #000000;">&#40;</span> bAction, oItem, n <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">return</span> oItem<br />      <span style="color: #00C800;">else</span><br />         <span style="color: #00C800;">if</span> Len<span style="color: #000000;">&#40;</span> oItem:<span style="color: #000000;">aItems</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />            oItemFound = ScanItemsBlock<span style="color: #000000;">&#40;</span> oItem:<span style="color: #000000;">aItems</span>, bAction <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">endif</span><br />      n++<br />   end<br /><br /><span style="color: #00C800;">return</span> oItemFound</div>[/code:eza23j2r] Tendrias que hacer una función similar que en vez de llamar a n++ llame a n-- y n > 0
recorrer una matriz con aEVal
buenas tardes. Necesito recorrer toda la matriz de 10 columnas por 20 filas y poner en la columna 4 de todas las filas un determinado valor intente con esto pero no va: [code=fw:28vj7avw]<div class="fw" id="{CB}" style="font-family: monospace;">bBloque:= <span style="color: #000000;">&#123;</span> |x| ::<span style="color: #000000;">aDatos</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span>:= <span style="color: #000000;">8</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aDatos</span>, bBloque <span style="color: #000000;">&#41;</span></div>[/code:28vj7avw] Alguna idea? gracias.
recorrer una matriz con aEVal
[code=fw:5q7dnid4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp; &nbsp;AEVal<span style="color: #000000;">&#40;</span> aDatos, <span style="color: #000000;">&#123;</span> | a | a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> := <span style="color: #ff0000;">"mivalor"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:5q7dnid4]
recorrer una matriz con aEVal
gracias!
recorrido de columnas hacia izquierda en xbrowse con freeze
hola a todos:Supongamo un browse de 10 cols. tengo dos columnas cogeladas solo muestro 5 , si voy hacia la derecha oviamente muestra las ultimas (8,9,10), pero si regreso a la izquierda, estando el la col. 8, se va a las columnas congeladas , ¿como hacer para que muestre la adyacente hacia la izquierda ?Saludos a todos[/img]
recto verso printing
Is there a function that permits to print recto verso?
recto verso printing
Sorry, it depends on the printer type
recto verso printing
The printer type (HP laserjet) permits to print recto verso in Word for example
recto verso printing
The question is of there exist a function within Fivewin that, without manual intervention of the printer, can send pages to the printer ready to be printed recto verso
recuperar datos de cuit
Hola gente, estoy tratando de obtener los datos de un cuit y lo que me responde no me dice nada. Esto es lo que envío: <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a5="http://a5.soap.ws.server.puc.sr/"> <soapenv:Header/> <soapenv:Body> <a5:getPersona> <token>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8c3NvIHZlcnNpb249IjIuMCI+CiAgICA8aWQgc3JjPSJDTj13c2FhaG9tbywgTz1BRklQLCBDPUFSLCBTRVJJQUxOVU1CRVI9Q1VJVCAzMzY5MzQ1MDIzOSIgdW5pcXVlX2lkPSIxNjQ1NTU2NTM1IiBnZW5fdGltZT0iMTY1NjU4OTA4MiIgZXhwX3RpbWU9IjE2NTY2MzIzNDIiLz4KICAgIDxvcGVyYXRpb24gdHlwZT0ibG9naW4iIHZhbHVlPSJncmFudGVkIj4KICAgICAgICA8bG9naW4gZW50aXR5PSIzMzY5MzQ1MDIzOSIgc2VydmljZT0id3Nfc3JfY29uc3RhbmNpYV9pbnNjcmlwY2lvbiIgdWlkPSJTRVJJQUxOVU1CRVI9Q1VJVCAyMDEyMDY4ODAzMSwgQ049cGNwcnVlYmEyMDIwIiBhdXRobWV0aG9kPSJjbXMiIHJlZ21ldGhvZD0iMjIiPgogICAgICAgICAgICA8cmVsYXRpb25zPgogICAgICAgICAgICAgICAgPHJlbGF0aW9uIGtleT0iMjAxMjA2ODgwMzEiIHJlbHR5cGU9IjQiLz4KICAgICAgICAgICAgPC9yZWxhdGlvbnM+CiAgICAgICAgPC9sb2dpbj4KICAgIDwvb3BlcmF0aW9uPgo8L3Nzbz4K</token> <sign>i7CzZFLhlRWONZWbwnQq5piYMetmAO+bFlMxY8/4hetWu+Phj6Mtu+uu+HXKUlvwz0rRP/sFjMmFVMvD8/WS4bQA6O5op3m3kAwuWVlNJx5D4DGSobA5z9pmcnqaKcY1cWw8WId+Yq8FRs6NqshEWjrvmsc/C3VXH9+EpGN5bTo=</sign> <cuitRepresentada>27144905445</cuitRepresentada> <idPersona>27144905445</idPersona> </a5:getPersona> </soapenv:Body> </soapenv:Envelope> y me devuelve esto: <html> <head> <title> </title> <!––2538159933919932073--> </head> <body> <br> <br> </body> </html> No entiendo que puedo estar haciendo mal. tengo en service asociado ws_sr_constancia_inscripcion Saludos Jorge.
recuperar datos de cuit
Hola, de donde eres?
recuperar datos de cuit
Hola, de Luján, bs as. Saludos Jorge
recuperar texto desde richedit
Hola, estoy pasanto una variable al richedit ACTIVATE WINDOW oWndR on init oRTF:SetText( crtf ) Funciona perfecto, una ves que termine de modificar el texto como hago para recuperarlo en la variable. Saludos Jorge
recuperar texto desde richedit
Estmado Jorge, oRichEdit:SaveAsRTF() --> cRTFText
recuperar texto desde richedit
Hola Antonio, gracias por responder, Feliz Año. Hay alguna forma de recuperar el contenido sin tener que guardarlo y leerlo para guardar en la base. Saludos Jorge
recuperar texto desde richedit
Estimado Jorge, Feliz año No entiendo bien a lo que te refieres. Puedes explicarme con más detalle lo que necesitas ? gracias
recuperar texto desde richedit
Buen día, estoy desarrollando una aplicación que va a tener varios campos que necesito editarlos con richedit, para que puedan dar formato al texto. Entonces cuando editan cada campo pensé en abrirlos con richedit, para eso le paso la variable y luego necesito recuperarla para guardarla en la base que será con sql server y estará en la nube. Si vi que podría guardarlos en archivo como explicaste, leer el archivo y guardarlo en la base, pero si puedo evitar este paso mejor. Saludos Jorge
recuperar texto desde richedit
Jorge, El contenido de un RichEdit puede recuperarse como RTF ó como texto estandard, y esa elección tiene que hacerla el programador
recuperar un tipo CHAR desde HB_FUN...?
EStimados: Tengo que recuperar un parametro de tipo CHAR pasado como parámetro a una función del tipo HB_FUNC como se hace para luego mostrarla... [code:1wq1y4q9]HB_FUNC &#40;PRUEBA&#41;&#123; // Aca tendria que recuperar el parametro // y luego mostrarlo&#46;&#46;&#46;&#46; MessageBox&#40;0, PARAMETRO RECUPERADO, "Se envio el dato&#46;&#46;&#46;", MB_OK&#41;; &#46;&#46;&#46; &#125;[/code:1wq1y4q9] Gracias. [code:1wq1y4q9][/code:1wq1y4q9]
recuperar un tipo CHAR desde HB_FUN...?
Hola Te refieres a esto? [code:2eeaaxb0]HB_FUNC &#40;PRUEBA&#41;&#123; // Aca tendria que recuperar el parametro // y luego mostrarlo&#46;&#46;&#46;&#46; char * micadena = hb_parc&#40; 1 &#41;; MessageBox&#40;0, PARAMETRO RECUPERADO, "Se envio el dato&#46;&#46;&#46;", micadena, MB_OK&#41;; &#46;&#46;&#46; &#125;[/code:2eeaaxb0] Un saludo Paco
recuperar un tipo CHAR desde HB_FUN...?
Si paco, gracias.
redefine BUTTONBAR
Hola, como seria el style que debo usar en una buttonbar dentro de un folderex para que no tenga bordes? Gracias.
redefine BUTTONBAR
Alguna idea o sugerencia?
redefine BUTTONBAR
[quote:1uekwaxo] oBar:nStyle -= WS_BORDER [/quote:1uekwaxo]
redefine BUTTONBAR
Cristobal, gracias x responder, lo que quiero es SACARLE el borde no ponerlo, y cuando uso REDEFINE BUTTONBAR en un DIALOG, pone un nStyle con borde pero no encuentro el nStyle sin borde. Saludos.
redefine BUTTONBAR
Y, poniendo esto que te indico no lo quita? [quote:3ukrhsgv] oBar:nStyle -= WS_BORDER [/quote:3ukrhsgv]
redefine BUTTONBMP ... tooltip no funciona
Amigos , Estoy implementando los botones con bitmaps para apariencia XP y funcionan y lucen perfectos pero ya no funciona el tooltip para indicar lo que el botón hace cuando posicionamos el puntero del ratón sobre el; redefine BUTTONBMP ob103 ID 103 of ODLGINI BITMAP "CALENDARIO" action ABREANO() tooltip "Abre Nuevo Año" al compilar el programa se cae y me da: C:\SISTEMAS\SOFREMxh\sofremxh.prg(121) Error E0022 Invalid lvalue: 'String' Gracias de antemano salu2
redefine BUTTONBMP ... tooltip no funciona
Hola LaFug Prueba asi: REDEFINE BUTTONBMP ob103 ; ID 103 of ODLGINI ; BITMAP "CALENDARIO" ; ACTION ABREANO() .. .. ob103:cTooltip := "Abre Nuevo Año" Salu2
redefine BUTTONBMP ... tooltip no funciona
GRACIAS WILLI <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> FUNCIONÓ PERFECTO UN xHabrazo
redefine checkbox con font
Estimados alguna forma de colocar un font en un checkbox no me funciona con ACTIVATE .. ON INIT oChk:setFont(oFont)
redefine checkbox con font
Saludos: Prueba asi: [code=fw:127diyxm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span>   xFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Consolas"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-19</span><br /><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oChk <span style="color: #0000ff;">VAR</span> lActivo <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">" Empresas Activas"</span>    <span style="color: #0000ff;">ID</span> <span style="color: #000000;">21</span> <span style="color: #0000ff;">OF</span> oDlg<br />                      oChk:<span style="color: #000000;">oFont</span><span style="color: #000000;">&#40;</span> xFont <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:127diyxm]
redefinir metodo Execute... como?
hola. Necesito aniadir al methodo Execute que se utiliza en este código un comando mas, simplemente para que me detenga la ejecucion para poder mostrar un cartel de control interno mio. Cómo lo hago? [code=fw:3n3056d3]<div class="fw" id="{CB}" style="font-family: monospace;"> cCmdSql:= <span style="color: #ff0000;">"USE "</span> + AllTrim<span style="color: #000000;">&#40;</span>oApp:<span style="color: #000000;">cDataBase</span><span style="color: #000000;">&#41;</span><br /> <span style="color: #00C800;">TRY</span><br />    <span style="color: #B900B9;">// a este metodo que sigue "execute"</span><br />     oApp:<span style="color: #000000;">oCon</span>:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span>cCmdSql<span style="color: #000000;">&#41;</span><br />  CATCH oError<br />       MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Base de datos no disponible"</span>, oApp:<span style="color: #000000;">cAplicacion</span><span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span><br />   END</div>[/code:3n3056d3] en si no se como REDEFINIR el metodo [b:3n3056d3]Execute[/b:3n3056d3] para poder agregarle comandos...
redefinir metodo Execute... como?
Para que lo detenga en que momento? Explicame un poco más porque no he podido entender bien que querés hacer, creo que tengo una pista.
redefinir metodo Execute... como?
Gracias Carlos, [code=fw:1lg4pwux]<div class="fw" id="{CB}" style="font-family: monospace;"><br />     cCmdSql:= <span style="color: #ff0000;">"USE "</span> + AllTrim<span style="color: #000000;">&#40;</span>oApp:<span style="color: #000000;">cDataBase</span><span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">TRY</span><br />        <span style="color: #B900B9;">// a este metodo que sigue "execute"</span><br />         oApp:<span style="color: #000000;">oCon</span>:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span>cCmdSql<span style="color: #000000;">&#41;</span><br />      CATCH oError<br />           MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Base de datos no disponible"</span>, oApp:<span style="color: #000000;">cAplicacion</span><span style="color: #000000;">&#41;</span><br />           <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span><br />       END<br /><br /> </div>[/code:1lg4pwux] La idea es que cuando se ejecute el metodo EXECUTE me aparezca en pantalla la cadena que pase en cCmdSql, por ahora es simple pero estoy pensando hacer otros controles dentro de ese metodo Execute. Esto me facilitaria la prueba de los programas ya que en vez de hacer esto: [code=fw:1lg4pwux]<div class="fw" id="{CB}" style="font-family: monospace;">oApp:<span style="color: #000000;">oCon</span>:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span>cCmdSql<span style="color: #000000;">&#41;</span><br />msgbox<span style="color: #000000;">&#40;</span>cCmdSql<span style="color: #000000;">&#41;</span></div>[/code:1lg4pwux] Directamente haria [code=fw:1lg4pwux]<div class="fw" id="{CB}" style="font-family: monospace;">oApp:<span style="color: #000000;">oCon</span>:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span>cCmdSql<span style="color: #000000;">&#41;</span></div>[/code:1lg4pwux] y el metodo solo me mostraria la cadena. Espero haber sido claro. Gracias.
redefinir metodo Execute... como?
Hola Goos, en lugar de msginfo podés usar dbwin32.exe, buscalo en el foro. Tambien posteé unos comandos para facilitar la tarea, evitar los msgInfo y cosas por el estilo <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=12952">viewtopic.php?f=6&t=12952</a><!-- l --> No merece la pena redefinir un método para algo tan trivial, y en particular si se trata de un ActiveX, esta medio complicado. Un saludo PD: Te he visto preguntando en foros que no son de FW <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> ¡Internet es un pañuelo!
redefinir metodo Execute... como?
gracias, ytilizo de por si un debug en mis programas del estilo que mostras ahi. pero lo que necesito es saber donde esta ese método para poder modificarlo y que ese msginfo o al utlizar el debug lo pueda incluir en ese metodo para no tener que ponerlo cada vez ... gracias.
redefinir metodo Execute... como?
Una consulta, oApp:oCon <-- ¿ Que clase de objeto es ?, si es una coneccion ado, el metodo execute es parte del objeto ado y el harbour solo invoca el metodo, pero no contiene codigo para el. Si es un odbc ahi deberias poder modificarlo en la clase todbc ya que ese es un metodo que invoca a la fucion sqlexecute, si mi memoria no me falla. Atte., Lautaro Moreira
redefinir metodo Execute... como?
Si es ADO. Gracias por la aclaración.
redimensionar dialogos...
Hola foro, se que en alguna ocasion se toco el temo, pero lo encontre.. Tengo dialogos diseñados para una resolucion de 800x600 pero si mi resolucion es mayo quiero que el dialogo se ajuste al tamaño nuevo de resolucion incluyendo controles, sera posible? gracias Paco
redimensionar dialogos...
Paco, En la clase TDialog en el método Initiate tienes este código que sirve para redimensionar un diálogo. Se podría generalizar, para usarlo como método y al tamaño que se desease: [code:20j8b3rb] #define SCALE_FACTOR 1&#46;16668 if &#58;&#58;lResize16 &#46;and&#46; ! Empty&#40; &#58;&#58;cResName &#41; &#58;&#58;nWidth = &#58;&#58;nWidth * SCALE_FACTOR hCtrl = GetWindow&#40; &#58;&#58;hWnd, GW_CHILD &#41; if hCtrl != 0 do while ! lEnd aRect = GetCoors&#40; hCtrl &#41; SetWindowPos&#40; hCtrl, 0, aRect&#91; 1 &#93;, aRect&#91; 2 &#93; * SCALE_FACTOR,; &#40; aRect&#91; 4 &#93; - aRect&#91; 2 &#93; &#41; * SCALE_FACTOR,; aRect&#91; 3 &#93; - aRect&#91; 1 &#93;, nOr&#40; SWP_NOZORDER,; SWP_NOREDRAW, SWP_NOACTIVATE &#41; &#41; hCtrl = GetWindow&#40; hCtrl, GW_HWNDNEXT &#41; lEnd = ! &#40; &#40; hCtrl != 0 &#41; &#46;and&#46; &#40; GetParent&#40; hCtrl &#41; == &#58;&#58;hWnd &#41; &#41; end endif endif [/code:20j8b3rb]
redimensionar dialogos...
[quote="Francisco Horta":3pzkbvqj]Hola foro, se que en alguna ocasion se toco el temo, pero lo encontre.. Tengo dialogos diseñados para una resolucion de 800x600 pero si mi resolucion es mayo quiero que el dialogo se ajuste al tamaño nuevo de resolucion incluyendo controles, sera posible? gracias Paco[/quote:3pzkbvqj] Yo utilizo esta función: /* ******************** */ #Include "FiveWin.ch" /* Los parámetros recibidos son: oWnd: Objeto/ventana/diálogo/control a ser redimensionado. nResolution: Número que identifica que resolución tenía la pantalla en la cual se diseñó el objeto. lRepaint: Indicador de si debe repintarse el objeto una vez redimensionado. Esta función permitirá que una aplicación desarrolada en un PC con una resolución de pantalla de por ejemplo 1024 x 768 (nResolution valdría en este caso 3), se vea redimensionada proporcionalmente en un PC con una resolución diferente, ya sea mayor o menor. A falta de perfeccionar el código, se comprueba solamente la variación de la anchura de la resolución de la pantalla para aplicar la variación del tamaño, aunque cuando ello se realiza se hace tanto en la anchura como en la altura. Esta función está orientada a ser utilizada en el evento ON INIT del ACTIVATE de las WINDOW y DIALOG con un valor fijo de lRepaint a .T. o sin él. Además también puede utilizarse directamente sobre un control definido posteriormente a la ACTIVACIÓN de su contenedor ya sea éste WINDOW o DIALOG, con la salvedad que lRepaint debe valer .T. para forzar su repintado. Ejemplos de uso: -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* ACTIVATE oWnd ON INIT AutoResize( oWnd, 3 ) -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* @ 185.50,8.00 TABS oTabs OF oWnd ITEMS "Tab1","Tab2","Venga a ordenarrrrr!!" ; PIXEL COLORS CLR_BLUE,CLR_HCYAN SIZE 288.00,9.00 MESSAGE "Mensaje del Tabs" AutoResize( oTabs, 3, .T. ) -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* */ FUNCTION AutResiz( oWnd, nResolution, lRepaint ) // Resolución de la pantalla en el momento de definir los controles. Local nOriWidth, nOriHeight // Resolución actual de la pantalla. Local nWidth, nHeight // Son la relación entre la resolución de pantalla y la resolución de diseño. Local nFactorWitdh, nFactorHeight Local nContador DEFAULT lRepaint := .T. nOriWidth := 0 nOriHeight := 0 nWidth := 0 nHeight := 0 nContador := 0 If nResolution = 1 nOriWidth := 640 nOriHeight := 480 ElseIf nResolution = 2 nOriWidth := 800 nOriHeight := 600 ElseIf nResolution = 3 nOriWidth := 1024 nOriHeight := 768 ElseIf nResolution = 4 nOriWidth := 1152 nOriHeight := 864 ElseIf nResolution = 5 nOriWidth := 1280 nOriHeight := 1024 ElseIf nResolution = 6 nOriWidth := 1600 nOriHeight := 1200 Else ScrResolution( @nOriWidth, @nOriHeight ) Endif ScrResolution( @nWidth, @nHeight ) /* Traza( 1, "nOriWidth=", nOriWidth ) Traza( 1, "nOriHeight=", nOriHeight ) Traza( 1, "nWidth=", nWidth ) Traza( 1, "nHeight=", nHeight ) */ //Traza( 1, "oWnd:ClassName()=", oWnd:ClassName() ) If nOriWidth != nWidth // .or. nOriHeight != nHeight nFactorWitdh := nWidth / nOriWidth nFactorHeight := nHeight / nOriHeight //oWnd:CoorsUpdate() If lRepaint oWnd:Hide() EndIf If nFactorWitdh > 1 // .or. nFactorHeight >= 1 //Traza( 1, "Aumentando tamaño." ) If oWnd:ClassName() == "kalimeroquetequiero" ElseIf oWnd:ClassName() $ "/TJ02LISMN/TLISTBOX/" /* Traza( 1, "oWnd:nTop=", oWnd:nTop ) Traza( 1, "oWnd:nLeft=", oWnd:nLeft ) Traza( 1, "oWnd:nWidth=", oWnd:nWidth ) Traza( 1, "oWnd:nHeight=", oWnd:nHeight ) */ oWnd:Move( oWnd:nTop * nFactorHeight , ; oWnd:nLeft * nFactorWitdh, ; oWnd:nWidth * nFactorWitdh, ; oWnd:nHeight , ; .F. ) Else oWnd:Move( oWnd:nTop * nFactorHeight , ; oWnd:nLeft * nFactorWitdh, ; oWnd:nWidth * nFactorWitdh, ; oWnd:nHeight * nFactorHeight , ; .F. ) EndIf EndIf If oWnd:ClassName() == "TFOLDER" // Traza( 1, "ValType(oWnd:aDialogs)=", ValType(oWnd:aDialogs) ) If ValType( oWnd:aDialogs ) = "A" For nContador := 1 To Len( oWnd:aDialogs ) AutResiz( oWnd:aDialogs[nContador], nResolution, .F. ) EndFor EndIf Else // Traza( 1, "ValType(oWnd:aControls)=", ValType(oWnd:aControls) ) If ValType( oWnd:aControls ) = "A" For nContador := 1 To Len( oWnd:aControls ) AutResiz( oWnd:aControls[nContador], nResolution, .F. ) EndFor EndIf EndIf If nFactorWitdh < 1 // .or. nFactorHeight < 1 //Traza( 1, "Disminuyendo tamaño." ) If oWnd:ClassName() == "kalimeroquetequiero" ElseIf oWnd:ClassName() $ "/TJ02LISMN/TLISTBOX/" /* Traza( 1, "oWnd:nTop=", oWnd:nTop ) Traza( 1, "oWnd:nLeft=", oWnd:nLeft ) Traza( 1, "oWnd:nWidth=", oWnd:nWidth ) Traza( 1, "oWnd:nHeight=", oWnd:nHeight ) */ //Traza( 1, "oWnd:nRight=", oWnd:nRight ) //Traza( 1, "oWnd:nBottom=", oWnd:nBottom ) oWnd:Move( oWnd:nTop * nFactorHeight , ; oWnd:nLeft * nFactorWitdh, ; oWnd:nWidth * nFactorWitdh, ; oWnd:nHeight , ; .F. ) //oWnd:SetSize( oWnd:nWidth * nFactorWitdh, oWnd:nHeight * nFactorHeight, .T. ) /* Traza( 1, "oWnd:nTop=", oWnd:nTop ) Traza( 1, "oWnd:nLeft=", oWnd:nLeft ) Traza( 1, "oWnd:nWidth=", oWnd:nWidth ) Traza( 1, "oWnd:nHeight=", oWnd:nHeight ) */ Else oWnd:Move( oWnd:nTop * nFactorHeight , ; oWnd:nLeft * nFactorWitdh, ; oWnd:nWidth * nFactorWitdh, ; oWnd:nHeight * nFactorHeight , ; .F. ) EndIf EndIf If lRepaint oWnd:Show() EndIf EndIf /* ******************** */ Saludos Carlos G.
redimensionar dialogos...
Hola Carlos, me tira error ...
redimensionar dialogos...
[quote="Francisco Horta":9uv9sism]Hola Carlos, me tira error ...[/quote:9uv9sism] Si, pero cual? Saludos Carlos G.
redimensionar dialogos...
Si te Sirve ahi te envio como lo hago Llamas al CheckRes() en el on init del dialog, tambien esta para modificar el font del dialogo o controles... se puede tambien modificar el tsbrowse o la barra de mensages... contactame por el MSN <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->, Ya tenemos avanzado algo el Punto de Venta [code:283r4q51]Static Function CheckRes&#40; oDlg &#41; //--------------------------------------------------------------------------- Local hWDsk &#58;= GetDeskTopWindow&#40;&#41; Local ResXY &#58;= GetClientRect&#40; hWDsk &#41; Local aRectD &#58;= GetClientRect&#40; oDlg&#58;hWnd &#41; Local nFor, oRow Local nFactorX &#58;= ResXY&#91; 3 &#93; / aRectD&#91; 3 &#93; Local nFactorY &#58;= ResXY&#91; 4 &#93; / aRectD&#91; 4 &#93; //modificando el dialog //PARA RECURSOS TODOS LOS CONTROLES TIENEN QUE ESTAR REDEFINDOS !! OJO !! oDlg&#58;Move&#40; 0, 0, ResXY&#91; 4 &#93;, ResXY&#91; 3 &#93;, &#46;t&#46; &#41; // Redfiniendo Tamaño de Fonts de Controles / Dialogs&#46;&#46; oDlg&#58;MSetFont&#40; nFactorX, nFactorY &#41; Return Nil [/code:283r4q51] En el Move() del Dialog puedes hacer esto... yo en este caso he creado una clase TMDialog que hereda de TDialog. El move de los controles. tiene para mantener fijo la parte superior ( lFixTop ) o la parte izquierda ( lFixLeft ) [code:283r4q51]#Include 'FiveWin&#46;ch' CLASS TMDialog From TDialog METHOD Move&#40;&#41; METHOD ClassName&#40;&#41; INLINE 'TDIALOG' METHOD MSetFont&#40;&#41; ENDCLASS //-----------------------------------------------------------------------------------------// METHOD Move&#40; nTop, nLeft, nWidth, nHeight, lRepaint &#41; CLASS TMDialog Local nFor Local aRectD &#58;= GetClientRect&#40; &#58;&#58;hWnd &#41; Super&#58;Move&#40; nTop, nLeft, nWidth, nHeight, lRepaint &#41; For nFor &#58;= 1 To Len&#40; &#58;&#58;aControls &#41; MoveControl&#40; &#58;&#58;aControls&#91; nFor &#93;, aRectD&#91; 3 &#93;, aRectD&#91; 4 &#93;, nHeight, nWidth, &#46;T&#46; &#41; EndFor Return nil Static Function MoveControl&#40; oCtrl, nBottomAnt, nRightAnt, nBottomNew, nRightNew, lProportional, lFixTop, lFixLeft &#41; Local nTop &#58;= oCtrl&#58;nTop + nBottomNew - nBottomAnt Local nLeft &#58;= oCtrl&#58;nLeft + nRightNew - nRightAnt Local nHeight&#58;= 0 Local nWidth &#58;= 0 Local nFactorX &#58;= nBottomNew / nBottomAnt Local nFactorY &#58;= nRightNew / nRightAnt DEFAULT lProportional &#58;= &#46;F&#46;, ; lFixTop &#58;= &#46;F&#46;, ; lFixLeft&#58;= &#46;F&#46; If lProportional nTop &#58;= Int&#40; oCtrl&#58;nTop * nFactorX &#41; nLeft &#58;= Int&#40; oCtrl&#58;nLeft * nFactorY &#41; nHeight&#58;= INT&#40; oCtrl&#58;nHeight * nFactorX &#41; nWidth &#58;= INT&#40; oCtrl&#58;nWidth * nFactorY &#41; EndIf If lFixTop If lProportional //tenemos que modificar el Height //para ke seubique en la pos correcta nHeight += nTop - oCtrl&#58;nTop EndIf nTop &#58;= oCtrl&#58;nTop EndIf If lFixLeft If lProportional //tenemos que modificar el Width //para ke seubique en la pos correcta nWidth += nLeft - oCtrl&#58;nLeft EndIf nLeft &#58;= oCtrl&#58;nLeft EndIf If oCtrl&#58;ClassName&#40;&#41; == 'TBITMAP' &#46;and&#46; !oCtrl&#58;lStretch nWidth &#58;= 0 // cuando el bitmap y no es ajustado nHeight&#58;= 0 // lo dibujamos con sus mismas extesiones EndIf oCtrl&#58;Move&#40; nTop, nLeft, nWidth, nHeight &#41; Return Nil //-----------------------------------------------------------------------------------------// METHOD MSetFont&#40; nFactorX, nFactorY &#41; CLASS TMDialog Local nFor, oCtrl Local oFont &#58;= TFont&#40;&#41;&#58;New&#40; &#58;&#58;oFont&#58;cFaceName, ; Int&#40; If&#40; &#58;&#58;oFont&#58;nWidth == Nil, 0, &#58;&#58;oFont&#58;nWidth &#41; * nFactorY &#41;, ; Int&#40; &#58;&#58;oFont&#58;nHeight * nFactorX &#41;, , ; &#58;&#58;oFont&#58;lBold, ; &#58;&#58;oFont&#58;nEscapement, ; &#58;&#58;oFont&#58;nOrientation, ; &#58;&#58;oFont&#58;nWeight, ; &#58;&#58;oFont&#58;lItalic, ; &#58;&#58;oFont&#58;lUnderline,; &#58;&#58;oFont&#58;lStrikeOut, ; &#58;&#58;oFont&#58;nCharSet, ; &#58;&#58;oFont&#58;nOutPrecision, ; &#58;&#58;oFont&#58;nClipPrecision,; &#58;&#58;oFont&#58;nQuality, , ; &#58;&#58;oFont&#58;nPitchFamily &#41; &#58;&#58;SetFont&#40; oFont &#41; oFont&#58;End&#40;&#41; For nFor &#58;= 1 To Len&#40; &#58;&#58;aControls &#41; oCtrl &#58;= &#58;&#58;aControls&#91; nFor &#93; oFont &#58;= TFont&#40;&#41;&#58;New&#40; oCtrl&#58;oFont&#58;cFaceName, ; Int&#40; If&#40; oCtrl&#58;oFont&#58;nWidth == Nil, 0, oCtrl&#58;oFont&#58;nWidth &#41; * nFactorY &#41;, ; Int&#40; oCtrl&#58;oFont&#58;nHeight * nFactorX &#41;, , ; oCtrl&#58;oFont&#58;lBold, ; oCtrl&#58;oFont&#58;nEscapement, ; oCtrl&#58;oFont&#58;nOrientation, ; oCtrl&#58;oFont&#58;nWeight, ; oCtrl&#58;oFont&#58;lItalic, ; oCtrl&#58;oFont&#58;lUnderline,; oCtrl&#58;oFont&#58;lStrikeOut, ; oCtrl&#58;oFont&#58;nCharSet, ; oCtrl&#58;oFont&#58;nOutPrecision, ; oCtrl&#58;oFont&#58;nClipPrecision,; oCtrl&#58;oFont&#58;nQuality, , ; oCtrl&#58;oFont&#58;nPitchFamily &#41; oCtrl&#58;SetFont&#40; oFont &#41; If oCtrl&#58;ClassName&#40;&#41; == 'TSBROWSE' oCtrl&#58;ChangeFont&#40; oFont &#41; EndIf oFont&#58;End&#40;&#41; EndFor oFont &#58;= Nil Return Nil [/code:283r4q51]
redimensionar dialogos...
[quote="RenOmaS":3i1u81jp]Ya tenemos avanzado algo el Punto de Venta [/quote:3i1u81jp] ¿Teneis ya depurado el código?. Sería interesante contar, en la propia clase Tdialogo, con la posibilidad de adaptar los dialogos y controles a la resolucion de la pantalla.
redimensionar dialogos...
RenOmaS Siempre sorprendiéndonos con buen código, estoy de acuerdo con Manuel de lo interesante que sería contar con una clase de ese tipo. Desde ya Gracias por el código que has volcado.
redimensionar dialogos...
Pos ese es el mismo codigo.. Sigue funcionando.. pos la clase esta ahi TMDialog Saludos
redimensionar dialogos...
Renomas, tiens un ejemplo simples de uso de TMDialog? Gracias. Regards, saludos.
redimensionar dialogos...
[quote="karinha":3lxqm3zi]Renomas, tiens un ejemplo simples de uso de TMDialog? Gracias. Regards, saludos.[/quote:3lxqm3zi] +1
redimensionar ventanas
alguien que tenga funcionando la funcion AUTRESIZ() para harbour y fwh? me la pudiera facilitar, gracias salu2 paco
redimensionar ventanas
[quote="Francisco Horta":15xp3bwa]alguien que tenga funcionando la funcion AUTRESIZ() para harbour y fwh? me la pudiera facilitar, gracias salu2 paco[/quote:15xp3bwa] La he puesto en UTILIDADES (en FWH 2.6 funciona): <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?p=22589#22589">http://fivetechsoft.com/forums/viewtopi ... 2589#22589</a><!-- m --> Saludos Carlos G.
redimensionar ventanas
Carlos, ya probe y me truena, no me funciona en ningun dialogo, unicamente en ventanas con un control browse, donde tengo btnget,combobox,checkbox,sbutton,stsay, text, group no me va, alguna idea? aki me truena Application =========== Path and name: C:\Proyectos\Harbour\xPV2\Caja5.Exe (32 bits) Size: 2,373,120 bytes Time from start: 0 hours 0 mins 10 secs Error occurred at: 28/11/2006, 08:23:52 Error description: Error BASE/1083 Argument error: * Args: [ 1] = U [ 2] = N 1.25 uso pellesc con archivos .res me supongo que debe ser algun control, todos deben estar definidos? porque algunos en el .res el pellesc me pone (unused) gracias Paco
redimensionar ventanas
La funión en si lo que realiza és gestionar un :Move() sobre la ventana/diálogo/control que corresponda. Por tanto lo único que se me ocurre es probar de realizar un :Move() directamente sobre los controles a ver que pasa. Desconozco si todos los controles que mencionas son propios de FiveWin y si además disponen del metodo Move(). Saludos y suerte Carlos G.
redimensionar ventanas
Puedes poner un trozo de código donde te funciona y donde no? Saludos Carlos G.
redireccionar salida a txt con tprinter
Gracias willi, Tal vez alguien me echa una manito con el redireccionamiento de impresion Saludes Ramon Paredes
redireccionar salida a txt con tprinter
Ramón: Prueba con la claúsula TO FILE, ejemplo: REPORT oReporte CAPTION "Catálogo de clientes" TO FILE Prueba.txt; .... .... ... Saludos
redireccionar salida a txt con tprinter
Amigos del Foro, 1.- En una aplicacion necesito mandar un reporte a impresora , hasta aqui ok, pero ahora necesito enviarlo por correo para ello debo redireccionar la salida a un archivo de texto para adjuntarlo al email, alguien puede orientarme como hacer eso con la clase Tprinter y con la Treport. 2.- Alguien sabe como hacer operaciones con campos de hora ? tengo una tabla con las horas de entrada de un vehiculo a reparacion y con las horas de salida hay funciones especificas para hacer operaciones simples como suma y resta con los campos hora ? Desde ya agradeciendo sus amables atenciones, Un saludo desde Managua, Nicaragua Ramon Paredes
redireccionar salida a txt con tprinter
Hola... Aqui tengo algo para las horas,,,, //---------------------------------------------------------------------------------------------------- Function QTiempo(cTime1, cTime2) local nSec1, nSec2, nSec3, nHora, nMinu IF EMPTY(cTime1) .OR. EMPTY(cTime2) .OR. VAL(SUBSTR(cTime2,1,2)) * 3600 + VAL(SUBSTR(cTime2,4,2)) * 60 + VAL(SUBSTR(cTime2,7,2)) = 0 //VAL(cTime2) = 0 //.OR. VAL(cTime1) = 0 Return("") EndIf If VAL(SUBSTR(cTime1,1,2)) > VAL(SUBSTR(cTime2,1,2)) cTime2 := STRZERO( VAL(SUBSTR(cTime2,1,2)) + 24,2 ) + SUBSTR(cTime2,3,6) EndIf nSec1 := VAL(SUBSTR(cTime1,1,2)) * 3600 + VAL(SUBSTR(cTime1,4,2)) * 60 + VAL(SUBSTR(cTime1,7,2)) nSec2 := VAL(SUBSTR(cTime2,1,2)) * 3600 + VAL(SUBSTR(cTime2,4,2)) * 60 + VAL(SUBSTR(cTime2,7,2)) nSec3 := nSec2 - nSec1 nHora := nSec3 / 3600 nSec3 := nSec3 - INT(nHora) * 3600 nMinu := nSec3 / 60 nSec3 := nSec3 - INT(nMinu) * 60 Return(STRZERO(nHora,2) + ":" + STRZERO(nMinu,2) + ":" + STRZERO(nSec3,2)) Salu2
redireccionar salida a txt con tprinter
Armando, Gracias por tu aporte, funcion ok con Treport, asi como indicas pero con Tprinter : PRINT oPrn TO "TEXTO.TXT" no funciona, no se si habra alguna otra forma de enviarlo a un archivo de texto con tprinter, Saludos desde Managua, Nicaragua Ramon Paredes
redireccionar salida a txt con tprinter
Ramón: Para PRINTER usa la vieja usanza como cuando lo hacias con clipper: Ahora no tengo un ejemplo a la mano, lo busco y te lo publico, pero recuerdo que iba mas o menos así SET PRINTER OFF SET PRINTER TO SET PRINTER TO "PRUEBA.TXT" SET PRINTER ON @ x,y SAY etc etc SET PRINTER OFF SET PRINTER TO A ver si con eso recuerdas el código exacto. Saludos
redirecting index.prg
Dear friends, I have to make a redirection on an existing index.prg. When I insert the following code I get an error ... [code=fw:3d71im4p]<div class="fw" id="{CB}" style="font-family: monospace;"><!DOCTYPE html><br /><html><br /><head><br />  <meta http-equiv=<span style="color: #ff0000;">"refresh"</span> content=<span style="color: #ff0000;">"2; URL=https://www.winhotel.space/lp/bergland_sillian/landingpage1.prg"</span>><br /></head><br /><body><br /><br /><h1>My Website</h1><br /><p>Some <span style="color: #0000ff;">text</span>...</p><br /><br /></body><br /></html><br /> </div>[/code:3d71im4p] The link is [url:3d71im4p]https&#58;//www&#46;winhotel&#46;space/mm_69RO24_bergland/index&#46;prg[/url:3d71im4p] And the error is [code=fw:3d71im4p]<div class="fw" id="{CB}" style="font-family: monospace;">Error: <span style="color: #000000;">Syntax</span> error <span style="color: #ff0000;">"syntax error at '<'"</span><br />operation: <span style="color: #000000;">line</span>:<span style="color: #000000;">1</span><br />called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">HB_COMPILEFROMBUF</span>, line: <span style="color: #000000;">0</span><br />called <span style="color: #0000ff;">from</span>: ..\source\exec.prg, EXECUTE, line: <span style="color: #000000;">68</span><br /><br />Source:</div>[/code:3d71im4p] Maybe someone can help me please...very kind regards and thanks in advance Ruth
redirecting index.prg
Dear Ruth Your index.prg It must have Harbour instructions. This is a possibility to implement it. [code=fw:2xt0wnoi]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cHtml<br /><br /><span style="color: #0000ff;">TEXT</span> INTO cHtml<br /><!DOCTYPE html><br /><html><br /><head><br />&nbsp; <meta http-equiv=<span style="color: #ff0000;">"refresh"</span> content=<span style="color: #ff0000;">"2; URL=https://www.winhotel.space/lp/bergland_sillian/landingpage1.prg"</span>><br /></head><br /><body><br /><br /><h1>My Website</h1><br /><p>Some <span style="color: #0000ff;">text</span>...</p><br /><br /></body><br /></html><br />&nbsp;ENDTEXT<br /><br />&nbsp; ? cHtml<br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:2xt0wnoi]
redirecting index.prg
Dear Ruth, [code=fw:2r0v91xv]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Redirect<span style="color: #000000;">&#40;</span> cUrl <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;AP_RPuts<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<script>window.location.href ='"</span> + cUrl + <span style="color: #ff0000;">"'</script>"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2r0v91xv]
redirecting index.prg
Thank you two so much...this made my day <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> now the redirect is working fine...thanks a lot again and have a nice weekend...
redirecting index.prg
You can refer to: [url:23zrensl]http&#58;//www4&#46;zzz&#46;com&#46;tw/phpBB3/viewtopic&#46;php?f=2&t=356[/url:23zrensl] and you can use: [code=fw:23zrensl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><!DOCTYPE html><br /><html><br /><head><br />  <meta http-equiv=<span style="color: #ff0000;">"refresh"</span> content=<span style="color: #ff0000;">"2; URL=https://www.winhotel.space/lp/bergland_sillian/landingpage1.prg"</span>><br /></head><br /><body><br /><br /><h1>My Website</h1><br /><p><?prg reindex<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ?></p><br /><br /></body><br /></html><br /> </div>[/code:23zrensl]
redirecting index.prg
Hello, Thank you. Very interesting. Can you describe the concept in more detail? Best regards, Otto
redirecting index.prg
You can use WYSIWYG web design software to design your website and embedded into prg code like PHP in general. but save file name is .prg not .php open browser and open the .prg This is the closest web design mode!