topic
stringlengths
1
63
text
stringlengths
1
577k
fw192 to 2.7
I have a program that is in FW192 and has been working for a long time in xp. Very stable and no problems. Still improving and works great. I need to convert to 32bit and I'm lost. Is there anyone in the LOs Angeles area that mey be of help as to the best way to go and available for some consulting? Harvey
fw192 to 2.7
Harvey, You may contact Brian Hays at <!-- e --><a href="mailto:bhays@abacuslaw.com">bhays@abacuslaw.com</a><!-- e --> He is at Los Angeles. Anyhow if you use these forums, we will help you for a smooth transition to 32 bits.
fw192 to 2.7
Thanks for the info. I'll keep in touch. BTW is 2.7 a 32bit program or do I go fron 1.92 to 2.7 to harbour?
fw192 to 2.7
You have to use Harbour and FWH (FiveWin for Harbour) to get 32 bits applications. That the most popular choice.
fw2.0 y blinker 7.0
Hola amigos de foro Soy un programador medio y me comunico desde Peru.. Mi pregunta es como compilo y enlazo con el blinker 7.0, ya que uso el blinker 4.0 y todo ok... Pero cuando lo hago con el Blinker 7.0, no ejecuta nada? Que puede faltar, algun comando o nose ?
fw2.0 y blinker 7.0
Hola Francis. Yo también utilizo el Blinker 4.0 y he probado Blinker 7.0. En principio es sólo sustituir uno por el otro (en todos los aspectos: AUTOEXEC.BAt, CONFIG.SYS,ETC.., incluso los BAT's que utilizo para compilar y linkar). Aunque lo mejor es cabiar el nombre de los directorios. El directorio BLIBKER4 lo he llamo BLINKERSEG y el nuevo directorio BLINKR7 lo llamé BLINKER4 para, no tener que cambiar nada, y me ha funcionado perfectamente. Tan sólo tuve un pequeño problema con uLoadObject y lSaveObject y por eso volví a Blinker4. Por lo demás ningún problema.
fw2.0 y blinker 7.0
Hola Manuramos Voy a probar lo que me dices y te aviso.... Sigues usando Blinker 4.0 o la 7.0 en tus sistemas? Cual es la diferencia entre ambos? Se transformara en una aplicaion 32 bits? Salu2
fw2.0 y blinker 7.0
Francis, Sigo con Blinker 4.0 pués aún no he resuelto lo de uLoadObject aunque ahora lo que hago es ASAVE() más MEMOWRIT(), pero no lo he probado con Blinker 7.0. De todas formas es posible que me falle por culpa del Windows Millenium o por falta de memoria. En teoría debería funcionar como el 4 o mejor. En cuanto al otro tema, supongo que Blinker 7.0, por ser más moderno, gestionará mejor la memoria. Pero lo que [b:17qrb51m]NO[/b:17qrb51m] hace es cambiarte a 32 Bits. Un saludo
fw2.0 y blinker 7.0
Gracias Manuramos por el apoyo... Tengo el Blinker 5.1 sera bueno usarlo en vez del 7.0? Salu2
fw2.0 y blinker 7.0
Sólo es cuestión de probar.
fw2.7 : GPF with xbrowse again
hello, After installing fw2.6 , i got a gpf in xbrowse (from ozlib). Antonio sended me a obj-file. Linking in text.obj , and it is ok . Now , in fw2.7 , the error is there again . It obvious that i can't link test.obj again Offset : 000c9dd3 code : 0xc0000005 Address : 0x00000000004c9dd3 How can the map-file be used with this report ? Frank
fw2.7 : GPF with xbrowse again
Frank, We have emailed you two new OBJs for your test. We appreciate your feedback. Thanks
fw712\samples\buildh.bat
dos> Buildh testxbrw Many 'ads' functions can't be found. Regards ! Shuming Wang
fw712\samples\buildh.bat
Shuming, Are you using Harbour or xHarbour ? Are you using the Harbour/xHarbour build that we have published for FWH 7.12 ? Here it is working fine
fw712\samples\buildh.bat
Antonio, Harbour 1 .1-1 ( libs dated Nov 05,2007 ) From fwh package download site. Regards! Shuming Wang
fw712\samples\buildh.bat
Please rebuild your ACE32.lib doing: implib.exe ACE32.lib ACE32.dll
fw_SetUnicode()
[quote:2p7krts0]What I understand from you is that your application will be mostly an ANSI application with only a few modules / screens handling Unicode text. Am I right?[/quote:2p7krts0] yes, my applications are mostly ANSI with few modules / screens handling Unicode text. [quote:2p7krts0]In your case (and similar applications) probably it is more convenient if the Gets default to ANSI and only where you need Unicode input, you can specifically enable by specifying CHRGRP CHR_ANY / CHR_WIDE.[/quote:2p7krts0] ok, this is that i will make. [quote:2p7krts0]We shall provide a global switch for this in our next version.[/quote:2p7krts0] is it possible in browse file to have columns with UNICODE and column with ANSI ? many thanks, marzio
fw_SetUnicode()
hi at all, when i activate unicode with fw_SetUnicode(.t.) all the gets of my program (dbase fields, MsgGet(), etc.) are in insert mode and i am not able to set overwrite mode. is there a way to activate overwrite mode? thanks
fw_SetUnicode()
You may set FW_SetUnicode( .T. ) at the very beginning in the Main() function if you want to make a Unicode application. In a Unicode application GETs of any variable other than character type behave the same way as in a pure ANSI application. Behavior of GETs of character variables is effected by CLAUSE CHRGRP @ r,c GET ........... CHRGRP CHR_ANSI / CHR_ANY / CHR_WIDE. In a pure ANSI application ( where FW_SetUnicode() is not set to .T. ) CHRGRP defaults to CHR_ANSI. In a Unicode application, CHRGRP defaults to CHR_ANY. Even in a Unicode application, if CHRGRP is specified as CHR_ANSI, that GET behaves exactly like in a normal ANSI application, i.e., insert/overstrike modes work and all picture clauses work, but input is restricted to ANSI characters and Unicode characters are rejected. When CHRGRP is CHR_ANY or CHR_WIDE, Unicode input is accepted but this has limitations like overstrike does not work, picture formats (expect @!) do not work. So, if you want some Gets to work exactly like in a normal ANSI application, you need to add a clause CHRGRP CHR_ANSI If you want Unicode input then you need to live with the limitations of Unicode character Get behavior. Just for information: CHR_ANY restricts the input to the number of bytes in the original Get variable, where as CHR_WIDE restricts input to number of characters in the Get variable. This is the only difference between CHR_ANY and CHR_WIDE. I am curious to know, why do you want to use FW_Unicode( .T. ), unless you are making an application for use in Eastern countries? I do not see any use of it in Europe. Your reply can help me to assist you better.
fw_SetUnicode()
Nages, many thanks for your informations! i am trying the news in fwh, I'm trying to understand this topic (unicode) quite complex. Anyway i am interested to use im my programs languages like russian, rumenian, french. thanks for any help. marzio
fw_SetUnicode()
[quote:1oqcnw0c] i am trying the news in fwh, I'm trying to understand this topic (unicode) quite complex. [/quote:1oqcnw0c] Pleae go ahead testing. As you go on you will find Unicode is not really complex. It is as simple as a normal ANSI program but has the capability to handle Unicode text. Well you need to keep in mind the behavior of GETs. That is the only difference. [quote:1oqcnw0c] Anyway i am interested to use im my programs languages like russian, rumenian, french. [/quote:1oqcnw0c] For French, you do not need Unicode. What I understand from you is that your application will be mostly an ANSI application with only a few modules / screens handling Unicode text. Am I right? We provided the Unicode feature for an application that mostly deals with Unicode text and occassionally deals with ANSI text. For this reason, all Gets default to Unicode. In your case (and similar applications) probably it is more convenient if the Gets default to ANSI and only where you need Unicode input, you can specifically enable by specifying CHRGRP CHR_ANY / CHR_WIDE. We shall provide a global switch for this in our next version.
fw_SetUnicode()
[quote:3h290ilt]is it possible in browse file to have columns with UNICODE and column with ANSI ? [/quote:3h290ilt] Yes, possible. From version FWH17.04, you can set classdata TGet():lDefaultANSI := .t. at the beginning of the application after FW_SetUnicode( .t. ). With this setting, all Gets default to ANSI. Only for the Gets you require Unicode input, you can add the clause CHRGRP CHR_ANY or CHRGRP CHR_WIDE as required.
fw_addtime
Al linkar en 64 bits me arroja un error: unresolved external Para la función FW_ADDTIME. En 32 bits sin embargo lo hace bien. La versión de FW64 que tengo es la 14.07
fw_arratoDbf l and progress
[code=fw:2tu1zvoz]<div class="fw" id="{CB}" style="font-family: monospace;"><br />FW_ArrayToDBF<span style="color: #000000;">&#40;</span> aData, cFieldList, bProgress, lOverWrite, lRecallDeleted, bTrigger <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2tu1zvoz] 3rd parameter is bprogress But the function executes so fast that providing meter is meaningless.
fw_arratoDbf l and progress
thanksssssssssssssssssssssssss
fw_arratoDbf l and progress
If I have a fw_arratoDbf() sample oArchivio:fw_arraytodbf(adata) can insert a refer to a TProgress, and how ? and if I have an Aeval function can insert the position of the tprogress ?
fw_arratoDbf l and progress
sorry Nages I tried but not happend any LOCAL bprogress := { || ( oProgress:SetPos( npos++ ),; SysRefresh() ) } oProgress:SetRange( 0, len(aData) ) oProgress:SetPos( 0 ) oLotto2:fw_ArrayToDBF( aData,,bProgress)
fw_arraytodbf - record empty - Resolved!
When I convert from a csv file to an array, the fw_ArrayToDBF (aData ,, bProgress) function inserts me an empty record, how do I avoid this [code=fw:1qlozare]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #00C800;">local</span>  csvfile:=<span style="color: #ff0000;">".<span style="color: #000000;">\c</span>sv<span style="color: #000000;">\f</span>ile.csv"</span><br />   <span style="color: #00C800;">local</span>  cSymbol := <span style="color: #ff0000;">","</span><br />   <span style="color: #00C800;">local</span>  cText := StrTran<span style="color: #000000;">&#40;</span> MemoRead<span style="color: #000000;">&#40;</span> csvfile <span style="color: #000000;">&#41;</span>, CHR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span>  aData := HB_ATokens<span style="color: #000000;">&#40;</span> cText, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>, .t., .t. <span style="color: #000000;">&#41;</span><br />   AEval<span style="color: #000000;">&#40;</span> aData, <span style="color: #000000;">&#123;</span> |c,i| c := StrTran<span style="color: #000000;">&#40;</span> c, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>, CRLF <span style="color: #000000;">&#41;</span>, aData<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> := HB_ATokens<span style="color: #000000;">&#40;</span> c, cSymbol, .t., .t. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">if</span> len<span style="color: #000000;">&#40;</span> ATail<span style="color: #000000;">&#40;</span> aData <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> < <span style="color: #000000;">2</span><br />           ASize<span style="color: #000000;">&#40;</span> aData, Len<span style="color: #000000;">&#40;</span> aData <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">endif</span><br />        Adel<span style="color: #000000;">&#40;</span>aData,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /><br />       <br />          oDbf:= TDatabase<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> , cPath+<span style="color: #ff0000;">"mydb"</span>,DBFCDX<span style="color: #ff0000;">", .T. )<br />         SET DELETED  ON<br /><br />         oDbf:setorder(0)<br />         oDbf:gotop()<br />         oDbf:fw_ArrayToDBF( aData,,bProgress)</span></div>[/code:1qlozare] sample of csv [code=fw:1qlozare]<div class="fw" id="{CB}" style="font-family: monospace;">CodCausM,ContrMag,Controp,DescrCausM,EsclAggMag,Obsoleto,Storno,TipoCaus<br /><span style="color: #000000;">00001</span>,<span style="color: #00C800;">false</span>,Fornitore,Acquisto,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,Acquisto<br /><span style="color: #000000;">00002</span>,<span style="color: #00C800;">false</span>,Nessuna,Carico,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,Carico<br /><span style="color: #000000;">00003</span>,<span style="color: #00C800;">false</span>,Cliente,C/Deposito,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,C/Deposito clienti<br /><span style="color: #000000;">00004</span>,<span style="color: #00C800;">false</span>,Fornitore,C/Deposito da fornitori,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,C/Deposito fornitori<br /><span style="color: #000000;">00005</span>,<span style="color: #00C800;">false</span>,Cliente,C/Lavoro da clienti,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,C/Lavoro attivo<br /><span style="color: #000000;">00006</span>,<span style="color: #00C800;">false</span>,Fornitore,C/Lavoro,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,C/Lavoro passivo<br /><span style="color: #000000;">00007</span>,<span style="color: #00C800;">false</span>,Cliente,Carico per riparazione,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,Carico<br /><span style="color: #000000;">00008</span>,<span style="color: #00C800;">false</span>,Cliente,C/Visione,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,C/Terzi<br /><span style="color: #000000;">00009</span>,<span style="color: #00C800;">false</span>,Nessuna,Inventario,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,Inventario<br /><span style="color: #000000;">00011</span>,<span style="color: #00C800;">false</span>,Cliente,Reso da C/Visione,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">true</span>,C/Terzi<br /><span style="color: #000000;">00012</span>,<span style="color: #00C800;">false</span>,Cliente,Reso da cliente,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">true</span>,Vendita<br /><span style="color: #000000;">00013</span>,<span style="color: #00C800;">false</span>,Fornitore,Reso a fornitore,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">true</span>,Acquisto<br /><span style="color: #000000;">00014</span>,<span style="color: #00C800;">false</span>,Nessuna,Scarico,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,Scarico<br /><span style="color: #000000;">00015</span>,<span style="color: #00C800;">false</span>,Cliente,Reso da C/Deposito clienti,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">true</span>,C/Deposito clienti<br /><span style="color: #000000;">00016</span>,<span style="color: #00C800;">false</span>,Fornitore,Reso da C/Deposito,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">true</span>,C/Deposito fornitori<br /><span style="color: #000000;">00017</span>,<span style="color: #00C800;">false</span>,Cliente,Reso da C/Lavoro,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">true</span>,C/Lavoro attivo<br /><span style="color: #000000;">00018</span>,<span style="color: #00C800;">false</span>,Fornitore,Reso da C/Lavoro fornitori,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">true</span>,C/Lavoro passivo<br /><span style="color: #000000;">00019</span>,<span style="color: #00C800;">false</span>,Cliente,Scarico da riparazione,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,Scarico<br /><span style="color: #000000;">00020</span>,<span style="color: #00C800;">false</span>,Cliente,Vendita,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,Vendita<br /><span style="color: #000000;">00021</span>,<span style="color: #00C800;">true</span>,Fornitore,Consegna a terzista,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,Scarico<br /><span style="color: #000000;">00022</span>,<span style="color: #00C800;">false</span>,Cliente,Reso riparato,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,Vendita<br /><span style="color: #000000;">00023</span>,<span style="color: #00C800;">false</span>,Cliente,Reso non riparato,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,Scarico<br /><span style="color: #000000;">00024</span>,<span style="color: #00C800;">false</span>,Nessuna,Carico per rettifica giacenze,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,Carico<br /><span style="color: #000000;">00025</span>,<span style="color: #00C800;">false</span>,Nessuna,Scarico per rettifica giacenze,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,Scarico<br /><span style="color: #000000;">00026</span>,<span style="color: #00C800;">false</span>,Nessuna,Scarico per produzione,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,Scarico<br /><span style="color: #000000;">00027</span>,<span style="color: #00C800;">false</span>,Nessuna,Carico per produzione,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,<span style="color: #00C800;">false</span>,Carico</div>[/code:1qlozare]
fw_arraytodbf - record empty - Resolved!
Any solution Please ? today I converted another file and I have the same problem see the picture [img:26uoisj9]https&#58;//i&#46;postimg&#46;cc/GmCCBmq9/jjjjj&#46;jpg[/img:26uoisj9]
fw_arraytodbf - record empty - Resolved!
Instead of [code=fw:2ylyn78s]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp; &nbsp;Adel<span style="color: #000000;">&#40;</span>aData,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2ylyn78s] please try [code=fw:2ylyn78s]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp; &nbsp;HB_Adel<span style="color: #000000;">&#40;</span>aData,<span style="color: #000000;">1</span>, .t.<span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2ylyn78s]
fw_arraytodbf - record empty - Resolved!
[quote="nageswaragunupudi":2dhz1lnd]Instead of [code=fw:2dhz1lnd]<div class="fw" id="{CB}" style="font-family: monospace;">        Adel<span style="color: #000000;">&#40;</span>aData,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:2dhz1lnd] please try [code=fw:2dhz1lnd]<div class="fw" id="{CB}" style="font-family: monospace;">        HB_Adel<span style="color: #000000;">&#40;</span>aData,<span style="color: #000000;">1</span>, .t.<span style="color: #000000;">&#41;</span><br /> </div>[/code:2dhz1lnd][/quote:2dhz1lnd] [b:2dhz1lnd]Now it's good,thanks[/b:2dhz1lnd] [img:2dhz1lnd]https&#58;//i&#46;postimg&#46;cc/3wt4dDv2/ok&#46;png[/img:2dhz1lnd]
fw_dbftoArray alcance
Buenas noches foro Un ejemplo de ayuda en la forma correcta de codificar fw_dbftoarray, cFieldList := "Fecha, Terminal, Valor" FW_DbfToArray ( cFieldList, bFor, bWhile, nNext, nRec, lRest, aData ) Necesito en el Array solo una fecha determinada Gracias
fw_dbftoArray alcance
[code=fw:8x61z6se]<div class="fw" id="{CB}" style="font-family: monospace;"><br />aRows := FW_DbfToArray<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DATE,TERMINAL,VALUE"</span>, <span style="color: #000000;">&#123;</span> || FIELD->DATE = dDate <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:8x61z6se] where dDate is the specific date required
fw_dbftoArray alcance
thank you Mr RAO
fw_exeltodbf error on execute
Hello, I'm having folowing error with FW_EXCELTODBF [code=fw:3o1uowim]<div class="fw" id="{CB}" style="font-family: monospace;"><br />  cCurFile := cGetFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Exel file| *.xl*| "</span>, <span style="color: #ff0000;">"Kies een leveranciers exel file (op drive d:)"</span> <span style="color: #000000;">&#41;</span><br />  oRange   := GetExcelRange<span style="color: #000000;">&#40;</span>  cCurfile , <span style="color: #ff0000;">"Sheet1"</span> ,  <span style="color: #000000;">&#41;</span><br />  <span style="color: #0000ff;">xbrowse</span><span style="color: #000000;">&#40;</span>oRange<span style="color: #000000;">&#41;</span><br /><br />  ferase<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"basis.dbf"</span><span style="color: #000000;">&#41;</span><br />  ferase<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"basis.cdx"</span><span style="color: #000000;">&#41;</span><br /><br />  aStruct := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />  AADD<span style="color: #000000;">&#40;</span>aStruct, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"code"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Id</span><br />  AADD<span style="color: #000000;">&#40;</span>aStruct, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"colnum"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Id</span><br />  AADD<span style="color: #000000;">&#40;</span>aStruct, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"kleuren"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Id</span><br />  AADD<span style="color: #000000;">&#40;</span>aStruct, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"picture"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">250</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Id</span><br />  AADD<span style="color: #000000;">&#40;</span>aStruct, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"code"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Id  // Artcode + kleur ID (101)</span><br />  AADD<span style="color: #000000;">&#40;</span>aStruct, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"imgtype"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Id</span><br /><br />  DbCreate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"basis.dbf"</span>, aStruct<span style="color: #000000;">&#41;</span><br /><br />  use basis <span style="color: #0000ff;">alias</span> source <span style="color: #00C800;">NEW</span><br />  <span style="color: #0000ff;">select</span> source<br /><br />  FW_ExcelToDBF<span style="color: #000000;">&#40;</span> oRange, <span style="color: #00C800;">NIL</span> , .t. <span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #0000ff;">xbrowse</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"source"</span><span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:3o1uowim] Application =========== Path and name: C:\Maveco_32_bit\TEST.EXE (32 bits) Size: 5,648,384 bytes Compiler version: Harbour 3.2.0dev (r1506171039) FiveWin version: FWH 19.12 C compiler version: Borland/Embarcadero C++ 7.0 (32-bit) Windows version: 6.2, Build 9200 Time from start: 0 hours 0 mins 43 secs Error occurred at: 21/04/2020, 00:59:55 Error description: Error BASE/1102 Argument error: UPPER Args: [ 1] = U Stack Calls =========== Called from: => UPPER( 0 ) Called from: .\source\function\DBFFUNC2.PRG => (b)FW_ARRAYTODBF( 408 ) Called from: => ASCAN( 0 ) Called from: .\source\function\DBFFUNC2.PRG => FW_ARRAYTODBF( 408 ) Called from: .\source\function\DBFFUNC2.PRG => FW_EXCELTODBF( 271 ) Called from: .\maveco.PRG => FALKATT( 14094 ) Called from: .\maveco.PRG => (b)BUILDMENU( 504 ) Called from: .\source\classes\MENU.PRG => TMENU:COMMAND( 1556 ) Called from: .\source\classes\WINDOW.PRG => TWINDOW:COMMAND( 1141 ) Called from: => TWINDOW:HANDLEEVENT( 0 ) Called from: .\source\classes\WINDOW.PRG => _FWH( 3559 ) Called from: => WINRUN( 0 ) Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1097 ) Called from: .\maveco.PRG => MAIN( 211 ) System ====== CPU type: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz 2592 Mhz
fw_exeltodbf error on execute
It is clear that is has something todo with the fact that in the exel file there is a column with a numeric value in the rows or that this column is changed to tekst. If I use a other column with the same headernaam than it works ??
fw_exeltodbf error on execute
[code=fw:1ztojwh4]<div class="fw" id="{CB}" style="font-family: monospace;">FW_ExcelToDBF<span style="color: #000000;">&#40;</span> oRange, <span style="color: #00C800;">NIL</span> , .t. <span style="color: #000000;">&#41;</span></div>[/code:1ztojwh4] When you specify the 3rd parameter as .T., you are indicating that the First Row of the ExcelData are headers and that they are the field names for export. In that case, all the cells of the first row should be Text and not empty.
fw_menudraw
Buen dia... Estoy obteniendo este error despues de actualizar a fwh 23.04 Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20150726) FiveWin Version : FWH 23.04 Windows version: 6.2, Build 9200 Time from start: 0 hours 0 mins 15 secs Error occurred at: 10/09/2023, 08:11:47 Error description: Error BASE/1066 Error de argumento: conditional Args: [ 1] = B {|| ... } Stack Calls =========== Called from: .\source\classes\PDMENU.PRG => FW_MENUDRAW( 941 ) Called from: .\source\classes\WINDOW.PRG => TMETROBTN:DRAWITEM( 1265 ) Called from: => TWINDOW:HANDLEEVENT( 0 ) Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1857 ) Called from: .\source\classes\BTNBMP.PRG => TMETROBTN:HANDLEEVENT( 2135 ) Called from: .\source\classes\WINDOW.PRG => _FWH( 3693 ) Called from: => TRACKPOPUP( 0 ) Called from: .\source\classes\MENU.PRG => TMENU:ACTIVATE( 1805 ) Called from: C:\FWH23\source\classes\metropnl.prg => TMETROBTN:DESIGNMENU( 825 ) Called from: C:\FWH23\source\classes\metropnl.prg => (b)TMETROBTN:NEW( 609 ) Called from: .\source\classes\WINDOW.PRG => TMETROBTN:RBUTTONDOWN( 2188 ) Called from: => TWINDOW:HANDLEEVENT( 0 ) Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1857 ) Called from: .\source\classes\BTNBMP.PRG => TMETROBTN:HANDLEEVENT( 2135 ) Called from: .\source\classes\WINDOW.PRG => _FWH( 3693 ) Called from: => WINRUN( 0 ) Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1118 ) Called from: FUENTES\COMUNES\FW_FUNCSST3.PRG => PRINCIPAL_METRO( 7079 ) Called from: FUENTES\COMUNES\FW_FUNCSST1.PRG => PRINCIPAL( 1341 ) Called from: FUENTES\MAIN\ZerusMain.prg => ZERUSMAIN( 4230 ) Called from: zeruswin.prg => MAIN( 17 )
fw_menudraw
Muestra: [code=fw:y8q8awz0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">FUENTES</span>\MAIN\ZerusMain.prg => ZERUSMAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4230</span> <span style="color: #000000;">&#41;</span><br />Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">zeruswin</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:y8q8awz0] Algo no está bién aqui. Error description: Error BASE/1066 Error de argumento: conditional - éS una variable lógica? STATIC ó PUBLIC? Regards, saludos.
fw_menudraw
Buena tarde... Persiste error con version 23.10 [code=fw:2nos3jpz]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />Application<br />===========<br />   Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">D</span>:\RUSSOFT\ZERUS\zeruswin.exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">*********</span> bytes<br />   Compiler version: <span style="color: #000000;">xHarbour</span> <span style="color: #000000;">1.2</span><span style="color: #000000;">.3</span> Intl. <span style="color: #000000;">&#40;</span>SimpLex<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span>Build <span style="color: #000000;">20150726</span><span style="color: #000000;">&#41;</span><br />   FiveWin  Version : <span style="color: #000000;">FWH</span> <span style="color: #000000;">23.10</span><br />   Windows version: <span style="color: #000000;">6.2</span>, Build <span style="color: #000000;">9200</span> <br /><br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">8</span> hours <span style="color: #000000;">20</span> mins <span style="color: #000000;">40</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">12</span>/<span style="color: #000000;">28</span>/<span style="color: #000000;">2023</span>, <span style="color: #000000;">16</span>:<span style="color: #000000;">28</span>:<span style="color: #000000;">05</span><br />   Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1066</span>  Error de argumento: <span style="color: #000000;">conditional</span><br />   Args:<br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = B   <span style="color: #000000;">&#123;</span>|| ... <span style="color: #000000;">&#125;</span><br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\PDMENU.PRG => FW_MENUDRAW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">918</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMETROBTN:<span style="color: #000000;">DRAWITEM</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1256</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1861</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TMETROBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2138</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3648</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => TRACKPOPUP<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">MENU</span>.PRG => TMENU:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1796</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">C</span>:\FWH23\source\classes\metropnl.prg => TMETROBTN:<span style="color: #000000;">DESIGNMENU</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">830</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">C</span>:\FWH23\source\classes\metropnl.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TMETROBTN:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">614</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMETROBTN:<span style="color: #000000;">RBUTTONDOWN</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2164</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1861</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TMETROBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2138</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3648</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">309</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">FUENTES</span>\GESTION\INVENTARIOS\INTERFW2.PRG => LLEEMVTOS<span style="color: #000000;">&#40;</span> <span style="color: #000000;">905</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">FUENTES</span>\GESTION\INVENTARIOS\FACTCAPT.PRG => A_FACTCAPT_CAPTURA_<span style="color: #000000;">&#40;</span> <span style="color: #000000;">863</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">FUENTES</span>\GESTION\INVENTARIOS\FACTCAPT.PRG => A_FACTCAPT_CAPTURA<span style="color: #000000;">&#40;</span> <span style="color: #000000;">71</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">FUENTES</span>\COMUNES\FW_FUNCSST3.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TOUCHMENU3<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8476</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">C</span>:\FWH23\source\classes\metropnl.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TMETROBTN:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">623</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TWINDOW:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2091</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">721</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TMETROBTN:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1036</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1851</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TMETROBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2138</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3648</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => WINRUN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1112</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">FUENTES</span>\COMUNES\FW_FUNCSST3.PRG => PRINCIPAL_METRO<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7133</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">FUENTES</span>\COMUNES\FW_FUNCSST1.PRG => PRINCIPAL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1351</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">FUENTES</span>\MAIN\ZerusMain.prg => ZERUSMAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4231</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">zeruswin</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span><br /><br />System<br /><br /><span style="color: #B900B9;">///*****************************************</span><br /><br />         #ifdef __FWXH__   <span style="color: #B900B9;">// FIVEWIN</span><br /><br />            CLOSE ALL<br /><br /><br />            PRINCIPAL<span style="color: #000000;">&#40;</span>cIngOld<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// MENUS WINDOWS CON FIVEWIN</span><br /><br /><br />            cArcPrn := <span style="color: #ff0000;">''</span><br />            <span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span>M->cArcImp<span style="color: #000000;">&#41;</span><br />               cArcPrn := fopen<span style="color: #000000;">&#40;</span>M->cArcImp,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />               FCLOSE<span style="color: #000000;">&#40;</span>cArcPrn<span style="color: #000000;">&#41;</span><br />               <span style="color: #00C800;">IF</span> NETERR<span style="color: #000000;">&#40;</span>cArcPrn<span style="color: #000000;">&#41;</span><br />                  FCLOSE<span style="color: #000000;">&#40;</span>cArcPrn<span style="color: #000000;">&#41;</span><br />               <span style="color: #00C800;">ENDIF</span><br />               FERASE<span style="color: #000000;">&#40;</span>M->cArcImp<span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">ENDIF</span><br />            CLS<br />            QUIT<br /><span style="color: #B900B9;">//****************************************************</span><br /><br /><span style="color: #00C800;">FUNCTION</span> PRINCIPAL<span style="color: #000000;">&#40;</span>cIngOld<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> cPatLoc := <span style="color: #ff0000;">"C:<span style="color: #000000;">\T</span>EMP<span style="color: #000000;">\"</span><br /><br />   cambiaTemp(@cPatLoc)<br /><br />   IF cIngOld <> NIL .AND. cIngOld <> "</span><span style="color: #00C800;">NIL</span><span style="color: #ff0000;">"<br />      PRINCIPAL_TOOL()<br />   ELSE<br />      PRINCIPAL_METRO() // 1351<br />   ENDIF<br /><br /><br />RETURN NIL<br /><br />//****************************************************************<br /><br />FUNCTION PRINCIPAL_METRO()<br /><br />LOCAL oBrush,hborland,oCursor,oCursorPen,oFont, oFon<br />LOCAL cDirAct := DISKNAME()+"</span>:<span style="color: #ff0000;">"+XDIRNAME()+"</span>\<span style="color: #ff0000;">"+cCodCia<br />LOCAL oTimer , oSprite  , oIco,oPopup3, oPopup2<br />LOCAL cTipCon := "</span><span style="color: #ff0000;">", cImaFon, SW := 0 ,oMetPri<br />LOCAL nDurTim := 3000 ,oErr  // cada dos minutos<br />LOCAL cPatLoc := "</span>C:\TEMP<span style="color: #ff0000;">"<br /><br />PRIVATE lActFun := .F., cNomFon := "</span>imagenes\fondonegro1.bmp<span style="color: #ff0000;">"  // 7 ok<br /><br />MEMVAR oBar, Omenu<br />PUBLIC oImageList, oToolBar, oBa1r, oBar, Omenu<br /><br />cambiaTemp(@cPatLoc)<br /><br />   IF M->lProEje<br />      MYMEN("</span>Error. El programa ya esta en ejecuci¢n<span style="color: #ff0000;">")<br />      RETURN NIL<br />   ENDIF<br /><br /><br />   M->lProEje := .T.<br /><br /><br />   Ctrl_F7 := {"</span>BorraMoviConcepto<span style="color: #000000;">&#40;</span>cPatSis<span style="color: #000000;">&#41;</span><span style="color: #ff0000;">"}<br /><br /><br /><br />   SetResDebug( .T. )<br />   //  SetResCheck()<br />   IF FILE("</span>IMAGENES\zeruswin.ico<span style="color: #ff0000;">")<br />      DEFINE ICON oIco  FILENAME "</span>IMAGENES\zeruswin.ico<span style="color: #ff0000;">"<br />   ENDIF<br /><br /><br />   M->cTitVenPri := HB_OEMTOANSI("</span>Russoft ERP. Sistema de Gesti¢n Empresarial <span style="color: #ff0000;">" +"</span><span style="color: #000000;">&#40;</span>Versi¢n : <span style="color: #ff0000;">"+m->cFecVerZer+"</span><span style="color: #000000;">&#41;</span><span style="color: #ff0000;">"+ "</span> | <span style="color: #ff0000;">"+ cCiaAct +"</span> - <span style="color: #ff0000;">"+ cCiaNom )<br /><br />   DEFINE WINDOW oWnd FROM 0, 0 TO 46, 128 ;<br />                 TITLE M->cTitVenPri            ;<br />                 ICON oIco                      ;<br />                 MENU  MenuPrincipal(oWnd)<br /><br />                 /*<br />                 oMetPri := MakeMetroPanelPrincipal( oWnd,oBrush )<br />                 IF oMetPri == NIL<br />                    RETURN NIL<br />                 ENDIF<br />                 m->oMetWin := oMetPri<br />                 */<br /><br /><br /><br />   ACTIVATE WINDOW oWnd MAXIMIZED  ; //7133<br />                       ON INIT ( oMetPri := MakeMetroPanelPrincipal( oWnd, oBrush ), ;<br />                                 m->oMetWin := oMetPri, ;<br />                                 oMetPri:Show(),;<br />                                 oTimer := XTimers(),;<br />                                 LINEAESTADOFW(oWnd)  )<br /><br />return <br /><br />//**************************************************************<br /><br /><br /></span></div>[/code:2nos3jpz]
fw_menudraw
Puedes propocionar un pequeño y completo PRG de ejemplo ? gracias
fw_menudraw
Antonio buena tarde... El error es esporádico... anexe desde el llamado del primer método... para ver manejo de variables según expreso KARINA Gracias
fw_menudraw
Publique estas funciones o haga una DEMO para que podamos compilar y encontrar la falla o el error. [code=fw:2h0izf93]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">FUENTES</span>\COMUNES\FW_FUNCSST3.PRG => PRINCIPAL_METRO<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7133</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">FUENTES</span>\COMUNES\FW_FUNCSST1.PRG => PRINCIPAL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1351</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">FUENTES</span>\MAIN\ZerusMain.prg => ZERUSMAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4231</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2h0izf93] Comprenda que no existe ningún programador que pueda encontrar un error sin el código fuente completo. Gracias. Regards, saludos.
fw_menudraw
Buena tarde... el código esta publicado
fw_menudraw
[code=fw:14yfx7jm]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; #ifdef __FWXH__ &nbsp; <span style="color: #B900B9;">// FIVEWIN</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLOSE ALL<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PRINCIPAL<span style="color: #000000;">&#40;</span>cIngOld<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// MENUS WINDOWS CON FIVEWIN</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cArcPrn := <span style="color: #ff0000;">''</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span>M->cArcImp<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cArcPrn := fopen<span style="color: #000000;">&#40;</span>M->cArcImp,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FCLOSE<span style="color: #000000;">&#40;</span>cArcPrn<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> NETERR<span style="color: #000000;">&#40;</span>cArcPrn<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FCLOSE<span style="color: #000000;">&#40;</span>cArcPrn<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FERASE<span style="color: #000000;">&#40;</span>M->cArcImp<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLS<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QUIT<br /><span style="color: #B900B9;">//****************************************************</span><br /><br /><span style="color: #00C800;">FUNCTION</span> PRINCIPAL<span style="color: #000000;">&#40;</span>cIngOld<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cPatLoc := <span style="color: #ff0000;">"C:<span style="color: #000000;">\T</span>EMP<span style="color: #000000;">\"</span><br /><br />&nbsp; &nbsp;cambiaTemp(@cPatLoc)<br /><br />&nbsp; &nbsp;IF cIngOld <> NIL .AND. cIngOld <> "</span><span style="color: #00C800;">NIL</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; PRINCIPAL_TOOL()<br />&nbsp; &nbsp;ELSE<br />&nbsp; &nbsp; &nbsp; PRINCIPAL_METRO() // 1351<br />&nbsp; &nbsp;ENDIF<br /><br /><br />RETURN NIL<br /><br />//****************************************************************<br /><br />FUNCTION PRINCIPAL_METRO()<br /><br />LOCAL oBrush,hborland,oCursor,oCursorPen,oFont, oFon<br />LOCAL cDirAct := DISKNAME()+"</span>:<span style="color: #ff0000;">"+XDIRNAME()+"</span>\<span style="color: #ff0000;">"+cCodCia<br />LOCAL oTimer , oSprite &nbsp;, oIco,oPopup3, oPopup2<br />LOCAL cTipCon := "</span><span style="color: #ff0000;">", cImaFon, SW := 0 ,oMetPri<br />LOCAL nDurTim := 3000 ,oErr &nbsp;// cada dos minutos<br />LOCAL cPatLoc := "</span>C:\TEMP<span style="color: #ff0000;">"<br /><br />PRIVATE lActFun := .F., cNomFon := "</span>imagenes\fondonegro1.bmp<span style="color: #ff0000;">" &nbsp;// 7 ok<br /><br />MEMVAR oBar, Omenu<br />PUBLIC oImageList, oToolBar, oBa1r, oBar, Omenu<br /><br />cambiaTemp(@cPatLoc)<br /><br />&nbsp; &nbsp;IF M->lProEje<br />&nbsp; &nbsp; &nbsp; MYMEN("</span>Error. El programa ya esta en ejecuci¢n<span style="color: #ff0000;">")<br />&nbsp; &nbsp; &nbsp; RETURN NIL<br />&nbsp; &nbsp;ENDIF<br /><br /><br />&nbsp; &nbsp;M->lProEje := .T.<br /><br /><br />&nbsp; &nbsp;Ctrl_F7 := {"</span>BorraMoviConcepto<span style="color: #000000;">&#40;</span>cPatSis<span style="color: #000000;">&#41;</span><span style="color: #ff0000;">"}<br /><br /><br /><br />&nbsp; &nbsp;SetResDebug( .T. )<br />&nbsp; &nbsp;// &nbsp;SetResCheck()<br />&nbsp; &nbsp;IF FILE("</span>IMAGENES\zeruswin.ico<span style="color: #ff0000;">")<br />&nbsp; &nbsp; &nbsp; DEFINE ICON oIco &nbsp;FILENAME "</span>IMAGENES\zeruswin.ico<span style="color: #ff0000;">"<br />&nbsp; &nbsp;ENDIF<br /><br /><br />&nbsp; &nbsp;M->cTitVenPri := HB_OEMTOANSI("</span>Russoft ERP. Sistema de Gesti¢n Empresarial <span style="color: #ff0000;">" +"</span><span style="color: #000000;">&#40;</span>Versi¢n : <span style="color: #ff0000;">"+m->cFecVerZer+"</span><span style="color: #000000;">&#41;</span><span style="color: #ff0000;">"+ "</span> | <span style="color: #ff0000;">"+ cCiaAct +"</span> - <span style="color: #ff0000;">"+ cCiaNom )<br /><br />&nbsp; &nbsp;DEFINE WINDOW oWnd FROM 0, 0 TO 46, 128 ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TITLE M->cTitVenPri &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ICON oIco &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENU &nbsp;MenuPrincipal(oWnd)<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/*<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oMetPri := MakeMetroPanelPrincipal( oWnd,oBrush )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IF oMetPri == NIL<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RETURN NIL<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ENDIF<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;m->oMetWin := oMetPri<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/<br /><br /><br /><br />&nbsp; &nbsp;ACTIVATE WINDOW oWnd MAXIMIZED &nbsp;; //7133<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ON INIT ( oMetPri := MakeMetroPanelPrincipal( oWnd, oBrush ), ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;m->oMetWin := oMetPri, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oMetPri:Show(),;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oTimer := XTimers(),;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LINEAESTADOFW(oWnd) &nbsp;)<br /><br />return<br /><br />//**************************************************************<br /><br /></span></div>[/code:14yfx7jm]
fw_valtosql() devuelva ""dd/mm/yyyy""
Fivewineros Estoy haciendo un select entre rango de fechas de esta forma: [code=fw:29hr32dp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> SET DATE FORMAT <span style="color: #ff0000;">"dd/mm/yyyy"</span><br />cMes:=StrZero<span style="color: #000000;">&#40;</span>mMes,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />cSql:= <span style="color: #ff0000;">"SELECT NUMERO, c.codubi, c.Codusu, tipcam, dsctop, facbol, fecha, moneda, totbruto, totdscto,totsub, totigv, total, c.codigo, svc, "</span><br />cSql+=<span style="color: #ff0000;">"tdafab, c.ruc, estado, mes, m.ng as razsoc from cabguia as c join mcodi as m on c.ruc=m.ruc and c.codigo=m.codigo where m.codusu='"</span>+codusu+<span style="color: #ff0000;">"' and fecha between "</span>+fw_valtosql<span style="color: #000000;">&#40;</span>dFecIni<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" and "</span>+fw_valtosql<span style="color: #000000;">&#40;</span>dFecFin<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" and c.codusu='"</span>+codusu+<span style="color: #ff0000;">"' order by numero"</span><br />? csql<br /><br /> </div>[/code:29hr32dp] la cadena construida queda asi: [url=https&#58;//postimages&#46;org/:29hr32dp][img:29hr32dp]https&#58;//i&#46;postimg&#46;cc/63xfBqsM/ca&#46;jpg[/img:29hr32dp][/url:29hr32dp] como hago para que la funcion fw_valtosql() me devuelva en formato dd/mm/yyyy? Gracias
fw_valtosql() devuelva ""dd/mm/yyyy""
Usa DTOC(fecha) [code=fw:1a54t9ef]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> SET DATE FORMAT <span style="color: #ff0000;">"dd/mm/yyyy"</span><br />cMes:=StrZero<span style="color: #000000;">&#40;</span>mMes,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />cSql:= <span style="color: #ff0000;">"SELECT NUMERO, c.codubi, c.Codusu, tipcam, dsctop, facbol, fecha, moneda, totbruto, totdscto,totsub, totigv, total, c.codigo, svc, "</span><br />cSql+=<span style="color: #ff0000;">"tdafab, c.ruc, estado, mes, m.ng as razsoc from cabguia as c join mcodi as m on c.ruc=m.ruc and c.codigo=m.codigo where m.codusu='"</span>+codusu+<span style="color: #ff0000;">"' and fecha between "</span>+dtoc<span style="color: #000000;">&#40;</span>dFecIni<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" and "</span>+dtoc<span style="color: #000000;">&#40;</span>dFecFin<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" and c.codusu='"</span>+codusu+<span style="color: #ff0000;">"' order by numero"</span><br />? csql<br /> </div>[/code:1a54t9ef] Igualmente, en Mysql las fechas se consultan como tu consulta original. Porque las quieres consultar en ese formato?
fw_valtosql() devuelva ""dd/mm/yyyy""
[quote="cmsoft":38g1tb3i] Igualmente, en Mysql las fechas se consultan como tu consulta original. Porque las quieres consultar en ese formato?[/quote:38g1tb3i] Hola cmsoft gracias por responder, si utilizo dtoc() para hacer mis consultas, queria una variante con fw_valtosql() ya que me olvido de poner la comilla simple al armar la consulta
fwcalendar pequeñas modificaciones
hola foro, aqui dejo una imagen de la clase fwcalendar que modifique un poco para su presentacion, al rato subo la clase para los interesados <!-- m --><a class="postlink" href="http://img112.imageshack.us/my.php?image=fwcalendaraw4.jpg">http://img112.imageshack.us/my.php?imag ... daraw4.jpg</a><!-- m --> salu2 paco
fwcalendar pequeñas modificaciones
aqui dejo otra imagen, en esta ultima version los colores cambiaron, dejo la posibilidad de poder establecer a criterio de cada uno los colores que mas les gusten, ej: FwCalendar(dVar1,aRect[1],aRect[4],oDlg,cColorDialogo,cColorFecha,cColorDias,aColorTituloSemana) dVar1 := FwCalendar(dVar1,aRect[1],aRect[4],oDlg,nRGB(200,200,200),nRGB(100,100,100),nRGB(168,45,69),{CLR_BLUE,CLR_HBLUE}) <!-- m --><a class="postlink" href="http://img523.imageshack.us/my.php?image=fwcalendar2iu2.jpg">http://img523.imageshack.us/my.php?imag ... ar2iu2.jpg</a><!-- m --> salu2 paco
fwcalendar pequeñas modificaciones
esta arreglado para que salga con doble-click ó enter de acuerdo al dia posicionado. aqui dejo el link para su descarga: <!-- m --><a class="postlink" href="http://www.savefile.com/files/878186">http://www.savefile.com/files/878186</a><!-- m --> salu2 paco
fwdbg.dll when start FIVEDIT.EXE
hi, i have my Demo under c:\fwh\Sample\123 when start c:\fwh\FIVEDIT\FIVEDIT.EXE it say "missing fwdbg.dll" <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> but there is c:\fwh\samples\fwdbg.dll ... i guess i still have a Environment Problem with FiveWin --- when have ALTD() in Source how to let Debugger run to that ALTD() <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> there is no F5 <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> F6 ask me to Exit Debugger <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> F7 is different while it only goto End of function <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> F9 Trace ... no Idea <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> Request : Crtl-G or Alt-G goto line 1234
fwdbg.dll when start FIVEDIT.EXE
Copy that DLL from the SAMPLES folder to the folder where FIVEDIT.EXE is ( c:\fwh\FIVEDIT\ )
fwdbg.dll when start FIVEDIT.EXE
[quote="cnavarro":3f5mbdbv]Copy that DLL from the SAMPLES folder to the folder where FIVEDIT.EXE is ( c:\fwh\FIVEDIT\ )[/quote:3f5mbdbv] OK that work <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> now FivEdit ask me where is PRG to debug ...
fwdbu request
it is possible add to the function TxtStruct( oBrw ) of fivedbu the list of index and key expression and for expression . thanks
fwdbu request
Hello Silvio, this is a very useful practical feature. Thank you for asking. Best regards, Otto [code=fw:2cgo4bmg]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> TxtStruct<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cCode := <span style="color: #ff0000;">"local aFields := { "</span>, n, bClipboard<br />&nbsp;&nbsp; &nbsp;<span style="color: #00C800;">local</span>&nbsp; &nbsp;cIndexCode := <span style="color: #ff0000;">" &nbsp; &nbsp; Indexes in use "</span> + Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">23</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"TagName"</span> + CRLF<br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> J := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;*----------------------------------------------------------<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; <span style="color: #00C800;">for</span> j = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">15</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexKey<span style="color: #000000;">&#40;</span> j <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cIndexCode += Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexOrd<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == j, <span style="color: #ff0000;">"=> "</span>, <span style="color: #ff0000;">" &nbsp; "</span> <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; PadR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexKey<span style="color: #000000;">&#40;</span> j <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">35</span> <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdName<span style="color: #000000;">&#40;</span> j <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; CRLF<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oRs</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> FCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> n > <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCode += Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cCode += <span style="color: #ff0000;">'{ "'</span> + FieldName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'", "'</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FieldType<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'", '</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> FieldLen<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: #ff0000;">", "</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> FieldDec<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: #ff0000;">" },;"</span> + CRLF<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> oBrw:<span style="color: #000000;">oRS</span>:<span style="color: #000000;">Fields</span>:<span style="color: #0000ff;">Count</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> n > <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCode += Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cCode += <span style="color: #ff0000;">'{ "'</span> + oBrw:<span style="color: #000000;">oRS</span>:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#91;</span> n - <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Name</span> + <span style="color: #ff0000;">'", "'</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FWAdoFieldType<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oRs</span>, n <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'", '</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> FWAdoFieldSize<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oRs</span>, n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">", "</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> FWAdoFieldDec<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oRs</span>, n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">" },;"</span> + CRLF<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span> &nbsp; <br /><br />&nbsp; &nbsp;cCode = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cCode, <span style="color: #000000;">1</span>, Len<span style="color: #000000;">&#40;</span> cCode <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" }"</span> + CRLF + CRLF<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oRs</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cCode += <span style="color: #ff0000;">'DbCreate( "myfile.dbf", aFields, "'</span> + RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'" )'</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span> &nbsp; <br /><br />&nbsp; &nbsp; cCode += CRLF + cIndexCode<br /><br />&nbsp; &nbsp;bClipboard = <span style="color: #000000;">&#123;</span> | oDlg | AddClipboardButton<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span>, cCode <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;MemoEdit<span style="color: #000000;">&#40;</span> bClipboard, FWString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Code"</span> <span style="color: #000000;">&#41;</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 />&nbsp;</div>[/code:2cgo4bmg]
fwdbu request
Thanks Otto <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> I think this is a better implementation as it writes the code that we need to create the indexes <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> : [code=fw:2qycxfa4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> TxtStruct<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> cCode := <span style="color: #ff0000;">"local aFields := { "</span>, n, bClipboard<br /><br />   <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oRs</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> FCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">if</span> n > <span style="color: #000000;">1</span><br />            cCode += Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">endif</span><br />         cCode += <span style="color: #ff0000;">'{ "'</span> + FieldName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'", "'</span> + ;<br />                  FieldType<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'", '</span> + ;<br />                  AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> FieldLen<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: #ff0000;">", "</span> + ;<br />                  AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> FieldDec<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: #ff0000;">" },;"</span> + CRLF<br />      <span style="color: #00C800;">next</span><br />   <span style="color: #00C800;">else</span><br />      <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> oBrw:<span style="color: #000000;">oRS</span>:<span style="color: #000000;">Fields</span>:<span style="color: #0000ff;">Count</span><br />         <span style="color: #00C800;">if</span> n > <span style="color: #000000;">1</span><br />            cCode += Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">endif</span><br />         cCode += <span style="color: #ff0000;">'{ "'</span> + oBrw:<span style="color: #000000;">oRS</span>:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#91;</span> n - <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Name</span> + <span style="color: #ff0000;">'", "'</span> + ;<br />                  FWAdoFieldType<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oRs</span>, n <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'", '</span> + ;<br />                  AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> FWAdoFieldSize<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oRs</span>, n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">", "</span> + ;<br />                  AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> FWAdoFieldDec<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oRs</span>, n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + ;<br />                  <span style="color: #ff0000;">" },;"</span> + CRLF<br />      <span style="color: #00C800;">next</span><br />   <span style="color: #00C800;">endif</span>   <br /><br />   cCode = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cCode, <span style="color: #000000;">1</span>, Len<span style="color: #000000;">&#40;</span> cCode <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" }"</span> + CRLF + CRLF<br /><br />   <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oRs</span> <span style="color: #000000;">&#41;</span><br />      cCode += <span style="color: #ff0000;">'DbCreate( "myfile.dbf", aFields, "'</span> + RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'" )'</span><br />   <span style="color: #00C800;">endif</span>   <br /><br />   <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">15</span><br />      <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexKey<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><br />         cCode += CRLF + CRLF + <span style="color: #ff0000;">"INDEX ON "</span> + <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexKey<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" TO "</span> + ;<br />                  <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">next</span><br /><br />   bClipboard = <span style="color: #000000;">&#123;</span> | oDlg | AddClipboardButton<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span>, cCode <span style="color: #000000;">&#125;</span><br /><br />   MemoEdit<span style="color: #000000;">&#40;</span> bClipboard, FWString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Code"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2qycxfa4] See the result for FWH\samples\aswapt.dbf: [code=fw:2qycxfa4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">local</span> aFields := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTCLI"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTVEH"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTDAT"</span>, <span style="color: #ff0000;">"D"</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTBTI"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTETI"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTDUR"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTACN"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">6</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTLIC"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">12</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTQUO"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTASG"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTUSD"</span>, <span style="color: #ff0000;">"L"</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTUID"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">12</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTCLR"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTREM"</span>, <span style="color: #ff0000;">"L"</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTBEG"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">18</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTEND"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">18</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTPHO"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">18</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTNOT"</span>, <span style="color: #ff0000;">"M"</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTSUM"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTITV"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTSEQ"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">12</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTRON"</span>, <span style="color: #ff0000;">"L"</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTALD"</span>, <span style="color: #ff0000;">"L"</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTMTG"</span>, <span style="color: #ff0000;">"L"</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTPRI"</span>, <span style="color: #ff0000;">"L"</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTIMP"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APTBSY"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />DbCreate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"myfile.dbf"</span>, aFields, <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> dtos<span style="color: #000000;">&#40;</span>aptdat<span style="color: #000000;">&#41;</span>+aptbti <span style="color: #0000ff;">TO</span> ASWAPT<br /><br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> aptasg+dtos<span style="color: #000000;">&#40;</span>aptdat<span style="color: #000000;">&#41;</span>+aptbti <span style="color: #0000ff;">TO</span> ASWAPU<br /><br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> aptbeg <span style="color: #0000ff;">TO</span> ASWBEG<br /><br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> aptuid <span style="color: #0000ff;">TO</span> ASWUID</div>[/code:2qycxfa4] [code=fw:2qycxfa4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> dtos<span style="color: #000000;">&#40;</span>aptdat<span style="color: #000000;">&#41;</span>+aptbti <span style="color: #0000ff;">TO</span> ASWAPT<br /><br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> aptasg+dtos<span style="color: #000000;">&#40;</span>aptdat<span style="color: #000000;">&#41;</span>+aptbti <span style="color: #0000ff;">TO</span> ASWAPU<br /><br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> aptbeg <span style="color: #0000ff;">TO</span> ASWBEG<br /><br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> aptuid <span style="color: #0000ff;">TO</span> ASWUID</div>[/code:2qycxfa4]
fwdbu request
Antonio, and the tags ?
fwdbu request
Dear Antonio, thank you. As to show source code is for me one oft he most used functions I inserted a button on the buttonbar for this. [code=fw:1le6vrml]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> FWString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SourceCode"</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"code"</span> <span style="color: #0000ff;">ACTION</span> TxtStruct<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span></div>[/code:1le6vrml] Also the question “Do you want to end” I deleted. [code=fw:1le6vrml]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWndMain <span style="color: #0000ff;">MAXIMIZED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> FWMissingStrings<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .T. <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DrawTiled<span style="color: #000000;">&#40;</span> hDC, oWndMain, oBmpTiled <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:1le6vrml] Best regards, Otto
fwdbu request
In my copy I also changed AddClipboardButton: function AddClipboardButton( oDlg, cText ) local oBtn @ 238, 6 BUTTON oBtn PROMPT FWString( "Copy to clipboard" ) ; OF oDlg SIZE 180, 28 PIXEL ; ACTION ( CopyToClipboard( oDlg:aControls[ 1 ]:GetText() ), oDlg:end() ) return nil //----------------------------------------------------------------------------//
fwdbu request
In FWDbu there is no option to print the structure on paper ?
fwdbu request
Marc, You copy it and paste it on notepad, email, etc
fwdbu request
Antonio I not understood I need also the tag sample : INDEX ON upper(last) [b:1mc5k21y]TAG LAST[/b:1mc5k21y] EVAL (oProgress:SetPos(nProgress++), Sysrefresh()) EVERY 1 FOR ! DELETED()
fwdbu request
Hello Silvio, I added: [code=fw:3dtitsjk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> &nbsp; &nbsp;cRDD = <span style="color: #ff0000;">"DBFCDX"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; cCode += CRLF + CRLF + <span style="color: #ff0000;">"INDEX ON "</span> + <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexKey<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" TO TAG "</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCode += CRLF + CRLF + <span style="color: #ff0000;">"INDEX ON "</span> + <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexKey<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" TO "</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp;</div>[/code:3dtitsjk] Best regards, Otto
fwdbu request
Silvio, [code=fw:scgv3z77]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">15</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexKey<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><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cCode += CRLF + CRLF + <span style="color: #ff0000;">"INDEX ON "</span> + <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexKey<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"DBFNTX"</span>, <span style="color: #ff0000;">" TO "</span>, <span style="color: #ff0000;">" TAG "</span> <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span></div>[/code:scgv3z77]
fwdbu request
I'm rather confused by the question ... I modified the dBU a few years ago, added some features, and have the ability to select an index. My clients have learned to use this "File Editor" effectively. In the users manual, I added instruction on how to use the editor, plus the structure ( fields, types, sizes, and description of each ), and specify in there the indexes and keys. This way, for someone who actually needs to know what they are looking for, they can check the document and see not only the key, but also the description of each field. If they are not willing to read the manual, and understand what they are doing, I certainly do not want them using this utility. I also keep a copy of those structures in One Note. This allows me an instant reference to every file. Finally, Antonio I noted you mentioned the ASWAPT.dbf. That is the one I created for the calendar implementation using Codejock. Do we have that full implementation in the Samples ? Tim
fwdbu request
Tim, Today we enhanced the FiveDBU functionality to generate the code to create the index files: [img:260ejbh5]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/fivedbu1&#46;JPG[/img:260ejbh5] ASWAPT.dbf is provided in FWH\samples. It is used from FWH\samples\schedule.prg I don't remember when it was placed there (I can check it in FWH repository) but I guess it was an example that we tested together. If you want me to remove it please let me know it.
fwdbu request
Antonio, Schedule.prg is the program I worked on with two other FW developers, which we shared freely, and it is fine to be in the samples. It uses the Codejock library. This specific version is pretty enhanced, and is used by most of my clients very heavily. It allows for very detailed appointments, repeating ones, assigning people to them, tracking clients and their service items, color coded work types, and much more. It displays like Outlook, and allows multiple appointments for the same, or overlapping, times. Tim
fwdbu request
[quote="Antonio Linares":181no8fd]Silvio, [code=fw:181no8fd]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">15</span><br />      <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexKey<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><br />         cCode += CRLF + CRLF + <span style="color: #ff0000;">"INDEX ON "</span> + <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexKey<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + ;<br />                  <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"DBFNTX"</span>, <span style="color: #ff0000;">" TO "</span>, <span style="color: #ff0000;">" TAG "</span> <span style="color: #000000;">&#41;</span> + ;<br />                  <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">next</span></div>[/code:181no8fd][/quote:181no8fd] thanks where is the last version of fwdbu why not use a class to show dbf window ? type ....class odbfwnd from TXbrowse ?
fwdbu request
[quote="TimStone":82o3dwp7]Antonio, Schedule.prg is the program I worked on with two other FW developers, which we shared freely, and it is fine to be in the samples. It uses the Codejock library. This specific version is pretty enhanced, and is used by most of my clients very heavily. It allows for very detailed appointments, repeating ones, assigning people to them, tracking clients and their service items, color coded work types, and much more. It displays like Outlook, and allows multiple appointments for the same, or overlapping, times. Tim[/quote:82o3dwp7] The version i see 17.15 is giving errors. Is there a newer version ? I would like to see it.
fwdbu request
Antonio, Maybe you can put the print (structure) button in the new release ? So we don't have to copy /paste ? Would be handy...
fwdbu request
[quote="Antonio Linares":1glf2bro]Silvio, [code=fw:1glf2bro]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">15</span><br />      <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexKey<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><br />         cCode += CRLF + CRLF + <span style="color: #ff0000;">"INDEX ON "</span> + <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexKey<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + ;<br />                  <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"DBFNTX"</span>, <span style="color: #ff0000;">" TO "</span>, <span style="color: #ff0000;">" TAG "</span> <span style="color: #000000;">&#41;</span> + ;<br />                  <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">next</span></div>[/code:1glf2bro][/quote:1glf2bro] To have the complete picture, we can also add FOR conditions for indexes (I use them a lot) [code=fw:1glf2bro]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">15</span><br />      <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexKey<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><br />         cCode += CRLF + CRLF + <span style="color: #ff0000;">"INDEX ON "</span> + <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> IndexKey<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + ;<br />                  <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"DBFNTX"</span>, <span style="color: #ff0000;">" TO "</span>, <span style="color: #ff0000;">" TAG "</span> <span style="color: #000000;">&#41;</span> + ;<br />                  <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> !Empty<span style="color: #000000;">&#40;</span> OrdFor<span style="color: #000000;">&#40;</span>n<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCode+= <span style="color: #ff0000;">' FOR '</span>+OrdFor<span style="color: #000000;">&#40;</span>n<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">next</span></div>[/code:1glf2bro] A question: ¿Is there any reason to call the functions prefixed with '( Alias() )->()'? I think it has no efect aliasing the current workarea. May be there is a missing parameter for the Alias() call...
fwdbu request
I see here options to create indexes, but has someone a option (code) for the folowing : I have a app. (Xbrowse) with lots of fields and already many indexes. I see that I often need a other index to sort the data a better way. Is there a sample that will build a index while te program is running ? or a function that will give all fields and where we can put a kind of rule to create a index ?
fwdbu request
Hello, If you want to create index purely in memory you can use ( cAlias )->( FW_CdxCreate( niL, .T. ) ) --> lSuccess Note: Creation in memory if available only in the recent versions 17.09 and 17.11 BTW- does someone know if there is a Limit of TAGs you can create. I do not see any limitation in FW_CdxCreate . FW errorsys.prg Looks for j = 1 to 15 . I will remember that 15 was the maximum at Clippertimes. If this is still true I think in FW_CdxCreate we need a limitation if it is not true errorsys needs an update. Best regards, Otto
fwdbu request
Carlos, many thanks. This is the final version: [code=fw:31dr4s47]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">15</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> IndexKey<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cCode += CRLF + CRLF + <span style="color: #ff0000;">"INDEX ON "</span> + IndexKey<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"DBFNTX"</span>, <span style="color: #ff0000;">" TO "</span>, <span style="color: #ff0000;">" TAG "</span> <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OrdName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> OrdFor<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCode += <span style="color: #ff0000;">' FOR '</span> + OrdFor<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br />&nbsp;</div>[/code:31dr4s47]
fwdbu request
Marc and all, This is the most recent FiveDBU version. Free and full source code included <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [url:2fbzjmzl]https&#58;//bitbucket&#46;org/fivetech/fivewin-contributions/downloads/fivedbu_20180327&#46;zip[/url:2fbzjmzl] [img:2fbzjmzl]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/fivedbu2&#46;PNG[/img:2fbzjmzl]
fwdbu request
Marc, [quote="Marc Venken":1rsg0ws0]I see here options to create indexes, but has someone a option (code) for the folowing : I have a app. (Xbrowse) with lots of fields and already many indexes. I see that I often need a other index to sort the data a better way. Is there a sample that will build a index while te program is running ? or a function that will give all fields and where we can put a kind of rule to create a index ?[/quote:1rsg0ws0] FiveDBU lets you create new Indexes tags on the run <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
fwdbu request
Hello Antonio, I did following test. use ( "artikel" ) new artikel->( FW_CdxCreate( niL, .T. ) ) It seems Harbour can handle more Indexes than 15. for n = 1 to 15 Errorsys does also use only 15. Best regards, Otto use ( "artikel" ) new artikel->( FW_CdxCreate( niL, .T. ) ) 1: => ARTIKEL RddName: DBFCDX ============================== RecNo RecCount BOF EOF 1 1349 .F. .F. Indexes in use TagName 1 Upper(field->artikelnum) AR_NR 2 field->liefernum AR_LIEF 3 Upper(field->kategorie)+ Upper(fielAR_KATE 4 STR(field->liefernum)+ Upper(field-AR_BEST 5 Upper(field->bezeichnun) AR_BEZ 6 Upper(field->kategorie) AR_KUNIQUE 7 field->kategorie1+ str(field->positAR_UMSATZ 8 (field->dbgesamt) AR_DBGES 9 field->konto AR_KONTO 10 field->taste AR_TASTE 11 Upper(field->druckkat)+ field->drucAR_DRUCK 12 Upper(field->kategorie1) AR_K1UNI 13 Upper(field->druckkat) AR_D_KUNI 14 UPPER(ARTIKELNUM) ARTIKELNUM 15 UPPER(KATEGORIE) KATEGORIE 16 UPPER(DRUCKKAT) DRUCKKAT 17 POSITION POSITION 18 UPPER(DRUCKPOS) DRUCKPOS 19 UPPER(KATEGORIE1) KATEGORIE1 20 UPPER(BEZEICHNUN) BEZEICHNUN 21 UPPER(BEZEICH2) BEZEICH2 22 UPPER(TAG) TAG 23 MWST_SATZ MWST_SATZ 24 LIEFERNUM LIEFERNUM 25 UPPER(LIEFERNAME) LIEFERNAME 26 UPPER(BESTELLNUM) BESTELLNUM 27 UPPER(ANMERK) ANMERK 28 EK_PREIS EK_PREIS 29 B_PREIS B_PREIS 30 BEZUGSKOST BEZUGSKOST 31 EINSTANDPR EINSTANDPR 32 VK_PREIS VK_PREIS 33 UPPER(BEMERKUNG) BEMERKUNG 34 MAX_BEST MAX_BEST 35 SOLL_BEST SOLL_BEST 36 IST_BEST IST_BEST 37 KALKAUF KALKAUF 38 BESTELLMEN BESTELLMEN 39 VK_MENGE VK_MENGE 40 DATUM DATUM 41 KONTO KONTO 42 BESTELLT BESTELLT 43 B_DATUM B_DATUM 44 B_MENGE B_MENGE 45 GEST GEST 46 BEDIENUNG BEDIENUNG 47 ROHAUF ROHAUF 48 UPPER(EINHEIT) EINHEIT 49 GSTKENN GSTKENN 50 DBGESAMT DBGESAMT 51 A_DATE A_DATE 52 E_DATE E_DATE 53 TASTE TASTE 54 UPPER(TAEGLICH) TAEGLICH 55 UPPER(AENDERN) AENDERN Relations in use local aFields := { { "ARTIKELNUM", "C", 13, 0 },; { "KATEGORIE", "C", 20, 0 },; { "DRUCKKAT", "C", 35, 0 },; { "POSITION", "N", 3, 0 },; { "DRUCKPOS", "C", 5, 0 },; { "KATEGORIE1", "C", 20, 0 },; { "BEZEICHNUN", "C", 34, 0 },; { "BEZEICH2", "C", 160, 0 },; { "TAG", "C", 1, 0 },; { "MWST_SATZ", "N", 6, 2 },; { "LIEFERNUM", "N", 6, 0 },; { "LIEFERNAME", "C", 30, 0 },; { "BESTELLNUM", "C", 15, 0 },; { "ANMERK", "C", 30, 0 },; { "EK_PREIS", "N", 10, 2 },; { "B_PREIS", "N", 10, 2 },; { "BEZUGSKOST", "N", 8, 2 },; { "EINSTANDPR", "N", 10, 2 },; { "VK_PREIS", "N", 10, 2 },; { "BEMERKUNG", "C", 72, 0 },; { "MAX_BEST", "N", 9, 2 },; { "SOLL_BEST", "N", 9, 2 },; { "IST_BEST", "N", 9, 2 },; { "KALKAUF", "N", 8, 2 },; { "BESTELLMEN", "N", 9, 2 },; { "VK_MENGE", "N", 9, 2 },; { "DATUM", "D", 8, 0 },; { "KONTO", "N", 10, 0 },; { "BESTELLT", "N", 9, 2 },; { "B_DATUM", "D", 8, 0 },; { "B_MENGE", "N", 9, 2 },; { "GEST", "N", 5, 2 },; { "BEDIENUNG", "N", 5, 2 },; { "ROHAUF", "N", 7, 2 },; { "EINHEIT", "C", 5, 0 },; { "GSTKENN", "N", 1, 0 },; { "DBGESAMT", "N", 13, 2 },; { "A_DATE", "D", 8, 0 },; { "E_DATE", "D", 8, 0 },; { "TASTE", "N", 4, 0 },; { "TAEGLICH", "C", 1, 0 },; { "AENDERN", "C", 1, 0 },; { "VK_PREIS1", "N", 10, 2 },; { "VK_PREIS2", "N", 10, 2 },; { "VK_PREIS3", "N", 10, 2 },; { "VK_PREIS4", "N", 10, 2 },; { "VK_PREIS5", "N", 10, 2 },; { "VK_PREIS6", "N", 10, 2 },; { "VK_PREIS7", "N", 10, 2 },; { "VK_PREIS8", "N", 10, 2 },; { "VON1", "D", 8, 0 },; { "VON2", "D", 8, 0 },; { "VON3", "D", 8, 0 },; { "VON4", "D", 8, 0 },; { "VON5", "D", 8, 0 },; { "VON6", "D", 8, 0 },; { "VON7", "D", 8, 0 },; { "VON8", "D", 8, 0 },; { "BIS1", "D", 8, 0 },; { "BIS2", "D", 8, 0 },; { "BIS3", "D", 8, 0 },; { "BIS4", "D", 8, 0 },; { "BIS5", "D", 8, 0 },; { "BIS6", "D", 8, 0 },; { "BIS7", "D", 8, 0 },; { "BIS8", "D", 8, 0 },; { "MENU", "N", 1, 0 },; { "SAISON", "L", 1, 0 },; { "KATEGORIE2", "N", 2, 0 },; { "WE", "N", 10, 2 },; { "KURTAXE", "L", 1, 0 },; { "PROVISION", "L", 1, 0 },; { "KELLNERLAG", "L", 1, 0 },; { "GROUPLINK", "C", 2, 0 },; { "FLAGMWST", "C", 2, 0 },; { "FLAGKUECHE", "C", 2, 0 },; { "KP", "C", 2, 0 },; { "PAUSCHALE", "L", 1, 0 },; { "GUELTIG", "N", 2, 0 },; { "UMSATZ", "N", 15, 2 },; { "UNIWELL", "L", 1, 0 },; { "GSTTEXT", "C", 30, 0 },; { "KONTO1", "N", 10, 0 },; { "KONTO2", "N", 10, 0 },; { "KONTO3", "N", 10, 0 },; { "KONTO4", "N", 10, 0 },; { "KONTO5", "N", 10, 0 },; { "BETRAG1", "N", 10, 2 },; { "BETRAG2", "N", 10, 2 },; { "BETRAG3", "N", 10, 2 },; { "BETRAG4", "N", 10, 2 },; { "BETRAG5", "N", 10, 2 },; { "ANTEIL1", "C", 15, 0 },; { "ANTEIL2", "C", 15, 0 },; { "ANTEIL3", "C", 15, 0 },; { "ANTEIL4", "C", 15, 0 },; { "ANTEIL5", "C", 15, 0 },; { "UPDATE", "L", 1, 0 },; { "MWST1", "N", 5, 2 },; { "MWST2", "N", 5, 2 },; { "MWST3", "N", 5, 2 },; { "MWST4", "N", 5, 2 },; { "MWST5", "N", 5, 2 },; { "KONTOBEZ", "C", 30, 0 },; { "UEBERS3", "C", 30, 0 },; { "S3POS", "N", 5, 0 },; { "UEBERS4", "C", 30, 0 },; { "S4POS", "N", 5, 0 },; { "ANZAHL", "N", 3, 0 },; { "STB_ARTNUM", "N", 4, 0 },; { "FOLIO", "C", 1, 0 },; { "TAX", "N", 1, 0 },; { "VON9", "D", 8, 0 },; { "BIS9", "D", 8, 0 },; { "VK_PREIS9", "N", 10, 2 },; { "VON10", "D", 8, 0 },; { "BIS10", "D", 8, 0 },; { "VK_PREIS10", "N", 10, 2 },; { "VON11", "D", 8, 0 },; { "BIS11", "D", 8, 0 },; { "VK_PREIS11", "N", 10, 2 },; { "VON12", "D", 8, 0 },; { "BIS12", "D", 8, 0 },; { "VK_PREIS12", "N", 10, 2 },; { "VON13", "D", 8, 0 },; { "BIS13", "D", 8, 0 },; { "VK_PREIS13", "N", 10, 2 },; { "VON14", "D", 8, 0 },; { "BIS14", "D", 8, 0 },; { "VK_PREIS14", "N", 10, 2 },; { "VON15", "D", 8, 0 },; { "BIS15", "D", 8, 0 },; { "VK_PREIS15", "N", 10, 2 },; { "UPDATEDATE", "D", 8, 0 } } DbCreate( "myfile.dbf", aFields, "DBFCDX" )
fwdbu request
We can enhance FiveDBU code this way: [code=fw:yjk93q13]<div class="fw" id="{CB}" style="font-family: monospace;">   n = <span style="color: #000000;">1</span><br />  <span style="color: #00C800;">while</span> ! Empty<span style="color: #000000;">&#40;</span> IndexKey<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      cCode += CRLF + CRLF + <span style="color: #ff0000;">"INDEX ON "</span> + IndexKey<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> + ;<br />               <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"DBFNTX"</span>, <span style="color: #ff0000;">" TO "</span>, <span style="color: #ff0000;">" TAG "</span> <span style="color: #000000;">&#41;</span> + ;<br />               OrdName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> OrdFor<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />         cCode += <span style="color: #ff0000;">' FOR '</span> + OrdFor<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />      n++<br />   end<br /> </div>[/code:yjk93q13] thanks for your feedback <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
fwdbu request
Dear Antonio, thank you. The same code is in errorsys.prg too. Best regards and Happy Easter Otto
fwdbu request
Antonio Al elegir un indice, me da este error: [code=fw:3h6ayfqx]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1004</span> &nbsp;No exported <span style="color: #00C800;">method</span>: <span style="color: #0000ff;">REFRESH</span><br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = U &nbsp; <br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> <span style="color: #0000ff;">REFRESH</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">fivedbu</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BUILDINDEXESDROPMENU<span style="color: #000000;">&#40;</span> <span style="color: #000000;">176</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">MENU</span>.PRG => TMENU:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1586</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">934</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1721</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1909</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3368</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> WINRUN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1043</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">fivedbu</span>.prg => FIVEDBU<span style="color: #000000;">&#40;</span> <span style="color: #000000;">59</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3h6ayfqx]
fwdbu request
Otto, [quote="Otto":10rwn1tl]Dear Antonio, thank you. The same code is in errorsys.prg too. Best regards and Happy Easter Otto[/quote:10rwn1tl] Modified and included for next FWH 18.03 many thanks
fwdbu request
Gonzalo, Arreglado, Por favor vuelve a descargar FiveDBU, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [url:15wwrovw]https&#58;//bitbucket&#46;org/fivetech/fivewin-contributions/downloads/fivedbu_20180327&#46;zip[/url:15wwrovw]
fwdbu request
Dear Antonio, in my copy I changed size of the dialogs and I inserted AUTOSORT. Best regards, Otto [img:24sgp1nb]http&#58;//www&#46;atzwanger-software&#46;com/fw/fivedbu&#46;jpg[/img:24sgp1nb]
fwdbu request
Otto, What size are you using ? thanks
fwdbu request
Dear Antonio, I like large screens so I use DEFINE DIALOG oDlg ; TITLE Alias() + " " + FWString( "fields" ) ; SIZE 900, GetSysMetrics( 1 )- 100 . Perhaps you can add a setup to FiveDBU. Thank you for your work and best regards, Otto
fwdbu request
HI, i need use with ADS files and index (ADT,ADX) , and open existing index files (adx), this can implemented? i use remote local server, eg 192.168.1.10:6562 to ADS server. thanks.
fwdbu request
Antonio, when you resize the dialog the button "copy to clipboard" is moved on the middle of dialog
fwdbu request
Silvio, Yes, I know it Thinking how to fix it...
fwdbu request
ok and think to use it in a tablet ....
fwh + hp officejet 55
estou com o problema que é o seguinte: usando a impressora hp officejet 55 mando imprimir pelo sistema quando abro a tela novamente demonstra um erro estranho, pois a impressora mudou o caminho do sistema como resolver isso
fwh + hp officejet 55
Ronaldo, Has probado la misma aplicación con otra impresora ?
fwh + hp officejet 55
com outra impressora funciona normal.
fwh 10.01 and xhb commercial
Antonio When trying to compile one of my apps with xhb commercial i get an unresolved external symbol -hb-mbtowc I am linking xhb2.obj any clue ? Thanks
fwh 10.01 and xhb commercial
Richard, Please try to add this code to your main PRG: [code=fw:2bp25tnv]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br />void * AnsiToWide<span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span>;<br /><br />void * hb_mbtowc<span style="color: #000000;">&#40;</span> char * c <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   <span style="color: #00C800;">return</span> AnsiToWide<span style="color: #000000;">&#40;</span> c <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:2bp25tnv]
fwh 10.01 and xhb commercial
Antonio Still not good , this is the message i get Redeclaration of 'hb_mbtowc' previously declared at c:\xhb\include\hbwince.h (165) : found 'void * _cdec1 function (char *) expected unsigned short *_cdec1 function (const char *) Richard
fwh 10.01 and xhb commercial
Richard, Lets try it this way: [code=fw:17a3l0ty]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br />unsigned short * AnsiToWide<span style="color: #000000;">&#40;</span> const char * <span style="color: #000000;">&#41;</span>;<br /><br />unsigned short * hb_mbtowc<span style="color: #000000;">&#40;</span> const char * c <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   <span style="color: #00C800;">return</span> AnsiToWide<span style="color: #000000;">&#40;</span> c <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:17a3l0ty] Curiously the function prototype is declared in hbwince.h but its code is not available, unless there is a missing lib to link. I have searched in xharbour\lib but I only find common.lib and rtl.lib which are already linked.
fwh 10.01 and xhb commercial
Antonio It compiles ok now I get module activex was compiled in pcode version 10 and this version of xharbour requires pcode 9 I guess i have to recopile the whole fw lib Or maybe easier to create the uestudio project for this app, Thanks for the help, Richard
fwh 10.01 and xhb commercial
Richard, Isn't there available a xhb commercial with pcode 10 ?
fwh 10.01 and xhb commercial
Richard, I also use xHarbour commercial and I don't have any problem. Which version do you use ?