topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
menuitem muy anchos | Estimados,
no se si habran notado que los menus de fwh son my, anchos, casi es el doble de tamaño del prompt
copmo se puede solucionar esto.
[img:mxxgr2s0]http://img405.imageshack.us/img405/6402/menuth.jpg[/img:mxxgr2s0] |
menuitem muy anchos | Carlos...
Podrias cambiar solo un valor en la clase window (aunque realmentre no sabria decir por que existe dicho valor o la logica por la cual fue creado en su momento)
[code=fw:341l39rr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> MeasureItem<br />...<br /><span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oItem:<span style="color: #000000;">oMenu</span>:<span style="color: #000000;">hMenu</span> != <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">oMenu</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oMenu</span>:<span style="color: #000000;">hMenu</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, <span style="color: #B900B9;">/*100*/</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>,; <span style="color: #B900B9;">// CAMBIAR DE 100 A 30</span><br />...</div>[/code:341l39rr] |
menuitem muy anchos | nadie sabe al respecto <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> |
menuitem muy anchos | Daniel
Me parece que es para cuando se pone "Ayuda"+Chr(9)+"F1" y todos los que tengan acceso rápido se alinen en la misma posición.
Poniendole 30 como indicas el F1 sale unido
Saludos
Adhemar |
menuitem muy anchos | Adhemar
Gracias por la respuesta... |
menus | Los menus en FWPPC o en PPC siempre ban abajo? |
menus | Paco,
Si, van abajo.
Windows CE (que no es igual que el Windows Mobile de Pocket PC) permite ponerlos arriba. |
menus | [quote="Paco Garcia":2v4067wp]Los menus en FWPPC o en PPC siempre ban abajo?[/quote:2v4067wp]
Te he enviado un email el jueves de la semana pasada
por favor si no te llegó, pegame un toque a
<!-- e --><a href="mailto:jcso@esm.com.mx">jcso@esm.com.mx</a><!-- e --> y dame una direccion donde
me pueda poner en contacto.
Saludos |
menus - Separador | Mais um pedido de Ajuda, e peço desculpa por isso, é que estoua começar no FWPPC, e vão surgindo algumas dúvidas..Como meto o separador nos Menus tipo:Opção AOpção B--------------- (Separator)Opção CObrigado |
menus - Separador | Sergio,Please review samples\TestMnu2.rc[code:2nduq560]
...
POPUP ""
BEGIN
MENUITEM "Manual", 310
MENUITEM SEPARATOR
MENUITEM "Acerca de...", 320
END
END
[/code:2nduq560] |
menus - Separador | Obrigado é isso, funcionou |
menus 2007 | HI, clause omenu:l2007 := .t. is working only in main menu, but menuitens still in normal mode.
<!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
menus 2007 | Norberto,
You have to use the clause 2007 when you create the MENU:
MENU oMenu 2007
if you modify it later on, it will not properly work |
menus 2007 | i try like this:
#Define _2007_ .T.
.
.
.
MENU oWndMnuMain
oMainMenu:l2007 := _2007_
.
.
.
BUT ONLY menumain (top) is 2007, menuitems still in normal mode. |
menus 2007 | Norberto,
Do it this way:
[code:23vbdihg]
if lUse2007 // Your user wants 2007 look
MENU oMenu 2007
...
else
MENU oMenu
...
endif
[/code:23vbdihg] |
menus tipo office | alguien tendra los fuentes de arturo tamayo, ya que su pagina no funciona, me los pudieran enviar a
<!-- e --><a href="mailto:fjhorta@yahoo.com.mx">fjhorta@yahoo.com.mx</a><!-- e -->
gracias
salu2
paco |
menus tipo office | a mi también por favor
<!-- e --><a href="mailto:fivewidi@jazzfree.com">fivewidi@jazzfree.com</a><!-- e -->
Saludos
Carlos G. |
menus tipo office | Mira aqui
<!-- w --><a class="postlink" href="http://www.quark-costos.com">www.quark-costos.com</a><!-- w --> en descargas |
menus tipo office | hOla
Ya esta habilitada la pagina
<!-- w --><a class="postlink" href="http://www.quark-costos.com">www.quark-costos.com</a><!-- w -->
saludos |
menus tipo office 2003 y Xp - ?? Dónde?? | [quote:301xqrs5]Aqui les dejo las fuentes para crear menus tipo office 2003 y Xp, basado en las fuentes originales de Fivewin
Pueden descargar de <!-- w --><a class="postlink" href="http://www.quark-costos.com">www.quark-costos.com</a><!-- w -->
Felices fiestas
Saludos
Arturo Tamayo Daza
[/quote:301xqrs5]
[color=red:301xqrs5][size=150:301xqrs5]não funciona
[/size:301xqrs5][/color:301xqrs5]
This Account Has Been Suspended
Please contact the billing/support department as soon as possible. |
menus tipo office 2003 y Xp - ?? Dónde?? | Tienes un mail en HOTMAIL.COM ,, sino crea uno y me lo das para pasarte un ZIP con MENU STYLE OFFICE 2003 Y XP
el mio,,, <!-- e --><a href="mailto:Leiva_36@hotmail.com">Leiva_36@hotmail.com</a><!-- e -->
Nos leemos
BYE |
menus tipo office 2003 y Xp - ?? Dónde?? | class of Paco run ok in w2000, Xp
instead the arthuro class not run ok ...!!
I think you must use the Paco classes |
menus tipo office 2003 y Xp - ?? Dónde?? | Hola
Yo utilizo la clase de arturo y funciona muy bien, tanto en win98 como XP
pd: El nuevo look le da un toque especial
Saludos
Patricio |
menus tipo office 2003 y Xp - ?? Dónde?? | Hello,
class of Paco is 5MENU? Where I find? How much? Works with xHarbour xBuilder?
Thanks |
menus tipo office 2003 y Xp - ?? Dónde?? | Syda,
The Paco Garcia C5MENU class is excellent and work fine with xHarbour Builder + FWH.
I am using it with xHarbour Builder Jan 07 + FWH 2.8.
Technical Support from Paco is very good.
The only complaint that I have is that C5MENU class allow office style menues in the pull-down menu and not in the Horizontal Menu.
Paco said me that a new C5MENU version will address this issue.
Regards
George |
merge cells | XBrowser is an array.
{ {"AA", "BB"}, ;
{"AA", "BB"}, ;
{date(), date()-1}, ;
{date(), date()-2}, ;
{"CC", "DD"}, ;
{"CC", "DD"} }
The first column should be merged vertically. Is it possible to specify that you need to merge only cells of the array with the text type ? |
merge cells | You can if you have the latest version of FWH, using oCol:bMergeValue. |
merge cells | I'm using version 17.01 How to use bMergeValue in this case ? |
merge cells | [code=fw:24x6xz53]<div class="fw" id="{CB}" style="font-family: monospace;"> :<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">lMergeVert</span> := .t.<br /> :<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">bMergeValue</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ValType<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aRow</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">'C'</span>, oBrw:<span style="color: #000000;">aRow</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, Str<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">KeyNo</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> </div>[/code:24x6xz53] |
merge cells | Tried, but got error comparison string value and date |
merge cells | [quote="Natter":2hnxzltx]Tried, but got error comparison string value and date[/quote:2hnxzltx]
If you tried my exact code you will not get the error.
You might have changed my code.
Please note: I never post here any code without first testing, so you can safely trust the code I post in the forums. |
merge cells | Excuse me mr.Rao. I wasn't paying attention. Everything works ! |
merge de pdfs mediante ole | Por si a alguien le viene bien .
Pequeño ejemplo de unir dos pdf en uno nuevo .
Necesita el Adobe Acrobat ( no vale el Reader ) pues utiliza la automatización OLE .
[code=fw:3884gy3c]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// FiveWin Pdf Merger</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oBtn1, oBtn2, oSay1, oSay2, oSay3<br /> <span style="color: #00C800;">local</span> oGet1, cGet1 := Space<span style="color: #000000;">(</span> <span style="color: #000000;">20</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oGet2, cGet2 := Space<span style="color: #000000;">(</span> <span style="color: #000000;">20</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oGet3, cGet3 := Space<span style="color: #000000;">(</span> <span style="color: #000000;">20</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oFontDlg <br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontDlg <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Ms Sans Serif'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-13</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Merge pdf"</span> ;<br /> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">22</span>, <span style="color: #000000;">48</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">112</span> <span style="color: #0000ff;">FONT</span> oFontDlg <br /> <br /> @ <span style="color: #000000;">116</span>, <span style="color: #000000;">140</span> <span style="color: #0000ff;">BUTTON</span> oBtn1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Ok"</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">ACTION</span> MergePdf<span style="color: #000000;">(</span>cGet1, cGet2, cGet3 <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">116</span>, <span style="color: #000000;">196</span> <span style="color: #0000ff;">BUTTON</span> oBtn2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Cancel"</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">ACTION</span> odlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">34</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">SAY</span> oSay1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Pdf Inicial "</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">64</span>, <span style="color: #000000;">16</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">58</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">SAY</span> oSay2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Pdf a Insertar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">64</span>, <span style="color: #000000;">16</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">82</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">SAY</span> oSay3 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Pdf de Salida"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">64</span>, <span style="color: #000000;">16</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">32</span>, <span style="color: #000000;">68</span> <span style="color: #0000ff;">GET</span> oGet1 <span style="color: #0000ff;">VAR</span> cGet1 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">148</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">ACTION</span> oGet1:<span style="color: #000000;">cText</span><span style="color: #000000;">(</span> cGetFile<span style="color: #000000;">(</span><span style="color: #ff0000;">"*.pdf"</span>, <span style="color: #ff0000;">"Select a file"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">56</span>, <span style="color: #000000;">68</span> <span style="color: #0000ff;">GET</span> oGet2 <span style="color: #0000ff;">VAR</span> cGet2 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">148</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">ACTION</span> oGet2:<span style="color: #000000;">cText</span><span style="color: #000000;">(</span> cGetFile<span style="color: #000000;">(</span><span style="color: #ff0000;">"*.pdf"</span>, <span style="color: #ff0000;">"Select a file"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">80</span>, <span style="color: #000000;">68</span> <span style="color: #0000ff;">GET</span> oGet3 <span style="color: #0000ff;">VAR</span> cGet3 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">148</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg;<br /> <span style="color: #0000ff;">ACTION</span> oGet3:<span style="color: #000000;">cText</span><span style="color: #000000;">(</span> cGetFile<span style="color: #000000;">(</span><span style="color: #ff0000;">"*.pdf"</span>, <span style="color: #ff0000;">"Select a file"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">return</span> oDlg<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> MergePdf<span style="color: #000000;">(</span>cEntra1, cEntra2, cSalida <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">local</span> app := CreateObject<span style="color: #000000;">(</span><span style="color: #ff0000;">"AcroExch.App"</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">local</span> oAVDoc1 := CreateObject<span style="color: #000000;">(</span><span style="color: #ff0000;">"AcroExch.AVDoc"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oAVDoc2 := CreateObject<span style="color: #000000;">(</span><span style="color: #ff0000;">"AcroExch.AVDoc"</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">local</span> lOk<br /> <br /><span style="color: #00C800;">local</span> oPDDoc1 := CreateObject<span style="color: #000000;">(</span><span style="color: #ff0000;">"AcroExch.PDDoc"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oPDDoc2 := CreateObject<span style="color: #000000;">(</span><span style="color: #ff0000;">"AcroExch.PDDoc"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> destDoc := CreateObject<span style="color: #000000;">(</span><span style="color: #ff0000;">"AcroExch.PDDoc"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> x<br /><br />lok = oAVDoc1:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span>cEntra1, <span style="color: #ff0000;">""</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> !lOk<br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"error al abrir "</span>+ cEntra1 +<span style="color: #ff0000;">" pdf"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> .f.<br /> <span style="color: #00C800;">ENDIF</span><br /><br />lok = oAVDoc2:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span>cEntra2, <span style="color: #ff0000;">""</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> !lOk<br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"error al abrir "</span>+ cEntra2 +<span style="color: #ff0000;">" pdf"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> .f.<br /> <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #B900B9;">// app:hide()</span><br /> <br /> oPDDoc1 = oAVDoc1:<span style="color: #000000;">GetPDDoc</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oPDDoc2 = oAVDoc2:<span style="color: #000000;">GetPDDoc</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> X = oPDDoc1:<span style="color: #000000;">GetNumPages</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> - <span style="color: #000000;">1</span><br /><br />lok := opDDoc1:<span style="color: #000000;">InsertPages</span><span style="color: #000000;">(</span> x, OPDDoc2, <span style="color: #000000;">0</span>, oPDDoc2:<span style="color: #000000;">GetNumPages</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> !lOk<br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Se no pudo insertar el documento "</span>+ cEntra2 +<span style="color: #ff0000;">"en "</span> +cEntra1 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> .f.<br /> <span style="color: #00C800;">ENDIF</span><br /><br />lok := opDDoc1:<span style="color: #000000;">Save</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, cSalida <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> !lOk<br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Se no pudo Grabar "</span>+ cSalida <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> .f.<br /> <span style="color: #00C800;">ENDIF</span><br /><br />opDDoc1:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />opDDoc2:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />opddoc1:= <span style="color: #00C800;">nil</span><br />opddoc2:= <span style="color: #00C800;">nil</span><br />oAVDoc1:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br />oAVDoc2:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /><br />app:<span style="color: #000000;">CloseAllDocs</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />app:<span style="color: #000000;">Exit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:3884gy3c] |
merge de pdfs mediante ole | Manuel,
gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
message error ""Too many recursive error handler calls&q | Antonio, I have a problem with FWH 8.2 message error "Too many recursive error handler calls" I view link <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?p=20996">http://fivetechsoft.com/forums/viewtopic.php?p=20996</a><!-- m -->I link fils 'Error.Ch' with my system. Problem Not End ..I use bcb with xharbour.HATHAL. |
message error ""Too many recursive error handler calls&q | Hathal,Please modify fwh\source\function\errsysw.prg and place a MsgInfo( e:Description ) before if ( e:genCode == EG_ZERODIV )so you will see the recursive error description |
message to client | socket send a small message to client ok
to GURU
but we can send rtf message to client ? and How ?
Can we send an offline message ?
I saw there are also :
hb_socketSetBroadcast(hSocket, lValue)
hb_socketSetMulticast(hSocket, [nFamily = HB_SOCKET_AF_INET], cAddr)
hb_socketSend(hSocket, cBuffer, [nLen = Len( cBuffer )], [nFlags = 0], [nTimeout = FOREVER])
hb_socketSendTo(hSocket, cBuffer, [nLen = Len( cBuffer )], [nFlags = 0], aAddr, [nTimeout = FOREVER])
hb_socketRecv(hSocket, @cBuffer, [nLen = Len( cBuffer )], [nFlags = 0], [nTimeout = FOREVER])
hb_socketRecvFrom(hSocket, @cBuffer, [nLen = Len( cBuffer )], [nFlags = 0], @aAddr, [nTimeout = FOREVER])
how it run ? |
messaggio ""end of file"" scorrendo fino in fondo un | Uso questo codice per alimentare un array (aTIPI) con il contenuto del campo "descri" del dbf "tipi" :[code:ctk63e22]local aTIPI:={}
local dTIPI
use tipi index tipi new
database dTIPI
dTIPI:gotop()
do while ! dTIPI:eof()
aadd(aTIPI,dTIPI:descri)
dTIPI:skip()
enddo
dTIPI:close()[/code:ctk63e22]Tutto funziona bene, ma non capisco perché mi viene fuori automaticamente un messaggio di stop con "end of file" che non riesco ad evitare... Io uso solo eof() nel ciclo proprio per fermarmi prima, e lo skip lo faccio solo se eof() è .F. ....MTFWH 8.04 - XHARBOUR 1.1.0 |
messaggio ""end of file"" scorrendo fino in fondo un | Ho notato che utilizzando eof() e skip , senza mettere i riferimenti a dtipi (l'oggetto database), i msgstop di "end of file" o "begin of file" non vengono fuori.Per ora ho aggirato così. |
messaggio per mercurial | Ti spiego ho perso i sorgenti che avevo per il mio programma e ho decompilato un vecchio exe in dos clipper ( non trovo neache i sorgenti di questo in dos)
Orario .dbf
è un elenco di lezioni che devono fare i docenti
per ogni docente ci sono x record a seconda delle ore di cattedra
per esempio il prof Bartolini ha 11 ore di cattedra materia RELIGIONE (12) e nell'archivio ci sono elencate le sue lezioni
per esempio
[img:1lpruxm8]http://www.eoeo.it/wp-content/uploads/2015/02/hh.jpg[/img:1lpruxm8]
ogni volta che devo inserire il giorno e l'ora ( giorno 1-6 e ora 1-6) vado a controllare se la classe e le aule solo libere
quindi ho alcune funzioni che devo ricostruire
Classelib()
AulaLib()
che sono quasi identiche cambiano solo per cosa bisogna ricercare la classe o le aule
[code=fw:1lpruxm8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> CLASSELIB<span style="color: #000000;">(</span>Arg1, Arg2, Arg3<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> Local1:= orario->classe, Local2:= orario-><span style="color: #000000;">(</span>RecNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>, ;<br /> Local3:= <span style="color: #000000;">1</span><br /> orario-><span style="color: #000000;">(</span>dbSetOrder<span style="color: #000000;">(</span><span style="color: #000000;">3</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> Local3:= <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> Arg1 - <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span>orario-><span style="color: #000000;">(</span>dbSeek<span style="color: #000000;">(</span>Local1 + Str<span style="color: #000000;">(</span>Arg2, <span style="color: #000000;">1</span><span style="color: #000000;">)</span> + iif<span style="color: #000000;">(</span>Arg3 + Local3 ;<br /> == <span style="color: #000000;">10</span>, <span style="color: #ff0000;">"0"</span>, Str<span style="color: #000000;">(</span>Arg3 + Local3, <span style="color: #000000;">1</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> orario-><span style="color: #000000;">(</span>dbSetOrder<span style="color: #000000;">(</span><span style="color: #000000;">8</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> orario-><span style="color: #000000;">(</span>dbGoto<span style="color: #000000;">(</span>Local2<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .F.<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /> orario-><span style="color: #000000;">(</span>dbSetOrder<span style="color: #000000;">(</span><span style="color: #000000;">8</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> orario-><span style="color: #000000;">(</span>dbGoto<span style="color: #000000;">(</span>Local2<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .T.<br /><br />********************************<br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> AULALIB<span style="color: #000000;">(</span>Arg1, Arg2, Arg3<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> Local1:= orario->aula, Local2:= orario-><span style="color: #000000;">(</span>RecNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>, Local3:= <span style="color: #000000;">1</span><br /> orario-><span style="color: #000000;">(</span>dbSetOrder<span style="color: #000000;">(</span><span style="color: #000000;">4</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> Local3:= <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> Arg1 - <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span>orario-><span style="color: #000000;">(</span>dbSeek<span style="color: #000000;">(</span>Local1 + Str<span style="color: #000000;">(</span>Arg2, <span style="color: #000000;">1</span><span style="color: #000000;">)</span> + iif<span style="color: #000000;">(</span>Arg3 + Local3 ;<br /> == <span style="color: #000000;">10</span>, <span style="color: #ff0000;">"0"</span>, Str<span style="color: #000000;">(</span>Arg3 + Local3, <span style="color: #000000;">1</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> orario-><span style="color: #000000;">(</span>dbSetOrder<span style="color: #000000;">(</span><span style="color: #000000;">8</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> orario-><span style="color: #000000;">(</span>dbGoto<span style="color: #000000;">(</span>Local2<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .F.<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /> orario-><span style="color: #000000;">(</span>dbSetOrder<span style="color: #000000;">(</span><span style="color: #000000;">8</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> orario-><span style="color: #000000;">(</span>dbGoto<span style="color: #000000;">(</span>Local2<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .T.<br /><br /> </div>[/code:1lpruxm8]
gli indici di orario sono
[code=fw:1lpruxm8]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><br /> <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> str<span style="color: #000000;">(</span>PROF,<span style="color: #000000;">3</span><span style="color: #000000;">)</span> TAG ORARIO1 EVAL <span style="color: #000000;">(</span>oProgress:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span>nProgress++<span style="color: #000000;">)</span>, Sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> EVERY <span style="color: #000000;">1</span><br /><br /> <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> <span style="color: #000000;">(</span>str<span style="color: #000000;">(</span>PROF,<span style="color: #000000;">3</span><span style="color: #000000;">)</span>+upper<span style="color: #000000;">(</span>CLASSE<span style="color: #000000;">)</span>+upper<span style="color: #000000;">(</span>GG_ORA<span style="color: #000000;">)</span>+ORESEQ<span style="color: #000000;">)</span> TAG ORARIO2 EVAL <span style="color: #000000;">(</span>oProgress:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span>nProgress++<span style="color: #000000;">)</span>, Sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> EVERY <span style="color: #000000;">1</span><br /> <br /> <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> <span style="color: #000000;">(</span>upper<span style="color: #000000;">(</span>CLASSE<span style="color: #000000;">)</span>+upper<span style="color: #000000;">(</span>GG_ORA<span style="color: #000000;">)</span><span style="color: #000000;">)</span> TAG ORARIO3 EVAL <span style="color: #000000;">(</span>oProgress:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span>nProgress++<span style="color: #000000;">)</span>, Sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> EVERY <span style="color: #000000;">1</span><br /> <br /> <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> <span style="color: #000000;">(</span>upper<span style="color: #000000;">(</span>AULA<span style="color: #000000;">)</span>+upper<span style="color: #000000;">(</span>GG_ORA<span style="color: #000000;">)</span><span style="color: #000000;">)</span> TAG ORARIO4 EVAL <span style="color: #000000;">(</span>oProgress:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span>nProgress++<span style="color: #000000;">)</span>, Sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> EVERY <span style="color: #000000;">1</span><br /> <br /> <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> <span style="color: #000000;">(</span><span style="color: #000000;">(</span>str<span style="color: #000000;">(</span>GRUPPO,<span style="color: #000000;">3</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>+upper<span style="color: #000000;">(</span>GG_ORA<span style="color: #000000;">)</span><span style="color: #000000;">)</span> TAG ORARIO5 EVAL <span style="color: #000000;">(</span>oProgress:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span>nProgress++<span style="color: #000000;">)</span>, Sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> EVERY <span style="color: #000000;">1</span><br /> <br /> <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> <span style="color: #000000;">(</span><span style="color: #000000;">(</span>str<span style="color: #000000;">(</span>PROF,<span style="color: #000000;">3</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>+upper<span style="color: #000000;">(</span>GG_ORA<span style="color: #000000;">)</span><span style="color: #000000;">)</span> TAG ORARIO6 EVAL <span style="color: #000000;">(</span>oProgress:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span>nProgress++<span style="color: #000000;">)</span>, Sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> EVERY <span style="color: #000000;">1</span><br /> <br /> <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> <span style="color: #000000;">(</span>str<span style="color: #000000;">(</span>MATERIA,<span style="color: #000000;">3</span><span style="color: #000000;">)</span>+str<span style="color: #000000;">(</span>PROF,<span style="color: #000000;">3</span><span style="color: #000000;">)</span>+ORESEQ<span style="color: #000000;">)</span> TAG ORARIO7 EVAL <span style="color: #000000;">(</span>oProgress:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span>nProgress++<span style="color: #000000;">)</span>, Sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> EVERY <span style="color: #000000;">1</span><br /> </div>[/code:1lpruxm8]
poi la vecchia procedur ain dos crea altri due file index Orario.$$1 e orario $$2
ma non si capisce molto
[code=fw:1lpruxm8]<div class="fw" id="{CB}" style="font-family: monospace;"> or-><span style="color: #000000;">(</span>dbCreateIndex<span style="color: #000000;">(</span><span style="color: #ff0000;">"orario.$$1"</span>, ;<br /> <span style="color: #ff0000;">"ma->prec + do->punti"</span>, <span style="color: #000000;">{</span>|| ;<br /> <span style="color: #000000;">(</span>ma-><span style="color: #000000;">(</span>dbGoto<span style="color: #000000;">(</span>or->materia<span style="color: #000000;">)</span><span style="color: #000000;">)</span>, ;<br /> do-><span style="color: #000000;">(</span>dbGoto<span style="color: #000000;">(</span>or->prof<span style="color: #000000;">)</span><span style="color: #000000;">)</span>, ma->prec + ;<br /> do->punti + eval<span style="color: #000000;">(</span><span style="color: #000000;">{</span>|| <span style="color: #000000;">(</span>DevPos<span style="color: #000000;">(</span><span style="color: #000000;">14</span>, <span style="color: #000000;">14</span><span style="color: #000000;">)</span>, iif<span style="color: #000000;">(</span>!EOF<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ;<br /> DevOut<span style="color: #000000;">(</span>Replicate<span style="color: #000000;">(</span><span style="color: #ff0000;">"²"</span>, RecNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span> * <span style="color: #000000;">51</span> / LastRec<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>, <span style="color: #00C800;">Nil</span><span style="color: #000000;">)</span>, ;<br /> <span style="color: #ff0000;">""</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /><br /> or-><span style="color: #000000;">(</span>dbCreateIndex<span style="color: #000000;">(</span><span style="color: #ff0000;">"orario.$$2"</span>, ;<br /> <span style="color: #ff0000;">"or->classe + str( or->gruppo, 3 ) + or->gg_ora"</span>, ;<br /> <span style="color: #000000;">{</span>|| or->classe + Str<span style="color: #000000;">(</span>or->gruppo, <span style="color: #000000;">3</span><span style="color: #000000;">)</span> + or->gg_ora + ;<br /> eval<span style="color: #000000;">(</span><span style="color: #000000;">{</span>|| <span style="color: #000000;">(</span>DevPos<span style="color: #000000;">(</span><span style="color: #000000;">14</span>, <span style="color: #000000;">14</span><span style="color: #000000;">)</span>, iif<span style="color: #000000;">(</span>!EOF<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, DevOut<span style="color: #000000;">(</span>Replicate<span style="color: #000000;">(</span><span style="color: #ff0000;">"²"</span>, ;<br /> RecNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span> * <span style="color: #000000;">51</span> / LastRec<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>, <span style="color: #00C800;">Nil</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">""</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span></div>[/code:1lpruxm8]
prima di salvare il giorno e l'ora della lezione corrispondente la procedura vede se la classe e le aule solo libere però è strano perchè mentre per le classi il controllo mi puo stre bene per le aule no perchè è logico per esempio che la classe 1A stia alla'aula 1A anche se per alcune materie è possibile che l'aula per esempio la palestra sia occupata |
messaggio per mercurial | Quindi in pratica in orario.dbf in una prima fase "sviluppi" la cattedra di un docente per poi in un secondo momento andare ad indicare giorno e ora.
Il controllo deve essere doppio perché alcuni docenti potrebbero dover usare un laboratorio... ma questo dovrebbe essere settabile quando sviluppi la cattedra...
ora vedo |
messaggio per mercurial | si... quando inserisco un docente gli inserisco anche le cattedre per quel docente.
Adesso ho un 'altro problema in un altro pezzo della procedura dove assegna le ore .. non capisco il perchè non entra in questo ciclo
[code=fw:3l4853pl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">if</span> <span style="color: #000000;">(</span>!Empty<span style="color: #000000;">(</span>DO->oredispo<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #00C800;">while</span> <span style="color: #000000;">(</span>OR->prof == DO-><span style="color: #000000;">(</span>RecNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">XBROWSE</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span>Empty<span style="color: #000000;">(</span>OR->gg_ora<span style="color: #000000;">)</span> .AND. OR->classe == DA->cla_dis<span style="color: #000000;">)</span><br /><br /> AAdd<span style="color: #000000;">(</span>Local7, <span style="color: #000000;">{</span>or-><span style="color: #000000;">(</span>RecNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">""</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span><br /><br /> elseif <span style="color: #000000;">(</span>!Empty<span style="color: #000000;">(</span>OR->gg_ora<span style="color: #000000;">)</span> .AND. OR->classe != DA->cla_dis<span style="color: #000000;">)</span><br /><br /> AAdd<span style="color: #000000;">(</span>Local6, Val<span style="color: #000000;">(</span>or->gg_ora<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">endif</span><br /><br /> or-><span style="color: #000000;">(</span>dbSkip<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> end<br /><br /><br /><br /><br />....<br /><br /><span style="color: #00C800;">endif</span></div>[/code:3l4853pl]
e quindi non popola gli array local7 e local6
ma l'espressione while (OR->prof == DO->(RecNo())) è corretta? |
messaggio per mercurial | Faccio riferimento al pezzettino di codice che hai inviato l'altro giorno:
[code=fw:yjzuqgl6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> CL<br />CL-><span style="color: #000000;">(</span>dbSeek<span style="color: #000000;">(</span>OR->classe<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br />nOreClasse := CL->MAX_ORE-CL->ORE_ASS<br />....<br /><span style="color: #00C800;">IF</span> CLASSELIB<span style="color: #000000;">(</span> nOreClasse, nGiorno, nOre <span style="color: #000000;">)</span><br /> cl->ore_ass += <span style="color: #000000;">1</span><br /> or->gg_ora := nGG_Ora<br /><span style="color: #00C800;">ENDIF</span><br /> </div>[/code:yjzuqgl6]
nOreClasse cosa rappresenta?
Hai scritto: "The parameter passed nOreClasse is a number corresponding to the difference in how many hours a class must be committed [un]less the value of the field ore_as"
Non capisco... che range di valori può assumere nOreClasse?
Perché vedo che ORE_ASS è incrementato di 1 e lo puo essere in teoria 36 volte...
Veniamo al codice
[code=fw:yjzuqgl6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> CLASSELIB<span style="color: #000000;">(</span>nOreClasse, nGiorno, nOre<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> Local1:= orario->classe<br /> <span style="color: #00C800;">local</span> Local2:= orario-><span style="color: #000000;">(</span>RecNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> Local3:= <span style="color: #000000;">1</span><br /><br /> orario-><span style="color: #000000;">(</span>dbSetOrder<span style="color: #000000;">(</span><span style="color: #000000;">3</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// upper(CLASSE)+upper(GG_ORA)</span><br /><br /> <span style="color: #B900B9;">// questo loop cicla da 0 a nOreClasse - 1</span><br /> <span style="color: #00C800;">for</span> Local3:= <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> nOreClasse - <span style="color: #000000;">1</span><br /> <span style="color: #B900B9;">// la dbSeek su order 3 ci dice che</span><br /> <span style="color: #B900B9;">// Local1 è la classe (e si legge sopra)</span><br /> <span style="color: #B900B9;">// nGiorno è il giorno</span><br /> <span style="color: #B900B9;">// Arg3 è l'ora</span><br /> <span style="color: #B900B9;">// Quindi se hai fatto ClasseLib( 2, 2, 3 )</span><br /> <span style="color: #B900B9;">// il loop *può* venir fatto per</span><br /> <span style="color: #B900B9;">// 1A23</span><br /> <span style="color: #B900B9;">// 1A24</span><br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span>orario-><span style="color: #000000;">(</span>dbSeek<span style="color: #000000;">(</span> ;<br /> Local1 + ;<br /> Str<span style="color: #000000;">(</span>nGiorno, <span style="color: #000000;">1</span><span style="color: #000000;">)</span> + ;<br /> iif<span style="color: #000000;">(</span>Arg3 + Local3 == <span style="color: #000000;">10</span>, <span style="color: #ff0000;">"0"</span>, Str<span style="color: #000000;">(</span>Arg3 + Local3, <span style="color: #000000;">1</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> orario-><span style="color: #000000;">(</span>dbSetOrder<span style="color: #000000;">(</span><span style="color: #000000;">8</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> orario-><span style="color: #000000;">(</span>dbGoto<span style="color: #000000;">(</span>Local2<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .F.<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /><br /> orario-><span style="color: #000000;">(</span>dbSetOrder<span style="color: #000000;">(</span><span style="color: #000000;">8</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> orario-><span style="color: #000000;">(</span>dbGoto<span style="color: #000000;">(</span>Local2<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .T.<br /> </div>[/code:yjzuqgl6]
Quindi sembra che la funzione controlli se la classe non è disponibile un determinato giorno (nGiorno) in una determinata ora (nOre) e per nOreClasse consecutive.
Infatti se la dbSeek trova almeno un'ora assegnata fra quelle controllate, la funzione ritorna .F.
Se invece esce dal FOR/NEXT significa che tutti i test sono andati a vuoto perché la classe non è assegnata in quell'ora (GG_ORA è vuoto) e la funzione ritorna .T.
Non posso andare oltre perché mi mancano delle informazioni e soprattutto mi manca un pezzo di codice integro e sicuramente funzionante in cui questa funzione è usata.
Mi rimane invece forte il dubbio su nOreClasse e sul range di valori che può acquisire perché un valore alto andrebbe a inficiare la chiave della dbSeek...
Quindi, per me, analizzando la funzione, questa svolge - correttamente - un compito preciso, con l'unico dubbio su nOreClasse: verifica se una classe è disponibile in un dato giorno e per un numero consecutivo di ore.
PS: poi in un altro thread avevi postato una ClasseLib completamente diversa... hai letto le mie risposte ai vari thread inglesi? |
messaggio per mercurial | [quote="Silvio.Falconi":m2toaiyf]si... quando inserisco un docente gli inserisco anche le cattedre per quel docente.
Adesso ho un 'altro problema in un altro pezzo della procedura dove assegna le ore .. non capisco il perchè non entra in questo ciclo
[code=fw:m2toaiyf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">while</span> <span style="color: #000000;">(</span>OR->prof == DO-><span style="color: #000000;">(</span>RecNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> </div>[/code:m2toaiyf]
[/quote:m2toaiyf]
Perché OR->prof è diverso da DO->(Recno())... (non sono bravo a usare le faccine, mettici quella giusta...)
[quote:m2toaiyf]
e quindi non popola gli array local7 e local6
ma l'espressione while (OR->prof == DO->(RecNo())) è corretta?[/quote:m2toaiyf]
L'espressione è sintatticamente corretta ma non è detto che lo sia logicamente. Ti hanno già detto che usare il Recno() come chiave sia una cosa molto pericolosa e sulla quale occorre fare molta attenzione, soprattutto se il programma consente di fare DELETE e PACK....
Dovresti prima della IF stampare il valore di OR-prof e di DO->(RecNo()) e vedere se sono quelli che ti aspetti... magari qualche funzione ti ha spostato il record corrente senza ripristinarlo...
Una curiosità: questo programma era stato sviluppato con un CASE? |
messaggio per mercurial | scusa mancava un or->(dbSetOrder(1)) |
messaggio per mercurial | >Una curiosità: questo programma era stato sviluppato con un CASE?
si sweet..qualchecosa non mi ricordo il nome nel 92 |
messaggio per mercurial | >Perché OR->prof è diverso da DO->(Recno())... (non sono bravo a usare le faccine, mettici quella giusta...)
faccine ? non capisco
il file index è INDEX ON str(PROF,3) TAG ORARIO1
or->prof è numerico e do->recno() dovrebbe essere numerico
è stato usato il numero del record , lo so che è sbagliato ma adesso devo usare lo stesso metodo , poi in futuro potro moficarlo nelle prime 4 lettere del cognome che so per farti un esempio |
messaggio per mercurial | La funzione assegnaore poi è ingarbugliata...ma solo non capisco il perchè lui assegna le ore solo per lunedi,martedi,mercoledi e giovedi
[img:2w0ykpcm]http://www.eoeo.it/wp-content/uploads/2015/02/hhv.jpg[/img:2w0ykpcm]
probabilmente non ci sono i controlli per classelib e aulalib e giornolib del docente
probabilmente perchè le ore cioè le cattedre finiscono e non ha altre da inserire |
messaggio per mercurial | [quote="Silvio.Falconi":12p0uav1]>Una curiosità: questo programma era stato sviluppato con un CASE?
si sweet..qualchecosa non mi ricordo il nome nel 92[/quote:12p0uav1]
Per caso era dbSee?
Comunque si spiegano alcune cose, così come quella follia dell'indice orario.$$1 che un qualunque essere umano avrebbe gestito con una serie di SET RELATION TO... perché un umano non avrebbe mai scritto una cosa del genere... spero...
Comunqnue questo indice serve per mettere in relazione 3 tabelle. Non so come viene usata quindi non saprei dire ma in un relazionale avremmo dovuto creare (e gestire) una apposita tabella mentre in questo modo l'indice gestisce tutto.
Quindi hai recuperato tutte le funzioni decompilando un vecchio exe clipper ma mancano queste due funzioni? Come è possibile che manchino se erano nell'exe? o forse erano usate in una versione successiva? non è che stai mischiando sorgenti di versioni differenti?
Comunque a mettere le mani su codice generato da un CASE e poi decompilato è veramente un'impresa ! |
messaggio per mercurial | [quote="mercurial":2x5uw7oj]
Quindi sembra che la funzione controlli se la classe non è disponibile un determinato giorno (nGiorno) in una determinata ora (nOre) e per nOreClasse consecutive.
[/quote:2x5uw7oj]
nOreClasse secondo me non è data da quella operazione che avevo messo ma è dato dal calcolo della materia e quindi nOremateria cioè
tale docente X insegna la materia RELIGIONE (12) ma questa materia puo' essere ripetuta in quella classe solo 1 volte alla settimana cioè nei 6 giorni e la materia ha un valore di precedenza 9 cioè alla fine della piramide valori da Da 1 a 9 |
messaggio per mercurial | non mancano ce le ho le funzioni ma non funzionano come dovrebbero |
messaggio per mercurial | [quote="Silvio.Falconi":2ege9y8c]La funzione assegnaore poi è ingarbugliata...ma solo non capisco il perchè lui assegna le ore solo per lunedi,martedi,mercoledi e giovedi
probabilmente non ci sono i controlli per classelib e aulalib e giornolib del docente
[/quote:2ege9y8c]
Sembrerebbe quello il problema... infatti le classi hanno più docenti in contemporanea...
[quote:2ege9y8c]
probabilmente perchè le ore cioè le cattedre finiscono e non ha altre da inserire[/quote:2ege9y8c]
Si, sono tutte concentrate all'inizio. Ma come le distribuisci le lezioni? Usi un algoritmo automatico? Mi è venuto in mente che un mio amico una volta mi consigliò di dare uno sguardo agli algoritmi genetici... ma non credo sia possibile cambiare in corsa... |
messaggio per mercurial | [quote="Silvio.Falconi":2wzpoyjq]
nOreClasse secondo me non è data da quella operazione che avevo messo ma è dato dal calcolo della materia e quindi nOremateria cioè
[/quote:2wzpoyjq]
Quindi non devi solo ricompilare il codice (per caso, l'hai fatto? [color=#FF0000:2wzpoyjq]Hai ricompilato il decompilato senza cambiare nulla?[/color:2wzpoyjq]) ma devi pure scrivere del codice... se scrivi "non è data da quella operazione che avevo messo" io capisco che stai facendo delle modifiche...
Prima di farle verifica le altre chiamate a CLASSELIB... E poi occorre sapere se il codice che posti sia quello generato/decompilato o tuo, perché si potrebbero sommare due errori...
[quote:2wzpoyjq]
tale docente X insegna la materia RELIGIONE (12) ma questa materia puo' essere ripetuta in quella classe solo 1 volte alla settimana cioè nei 6 giorni e la materia ha un valore di precedenza 9 cioè alla fine della piramide valori da Da 1 a 9
[/quote:2wzpoyjq]
Si, immagino che ci siano molti parametri di "desiderata" e per questo algoritimi genetici sono da preferire a quelli algoritmici puri... a meno che nel 2015 non vai di forza bruta e ti crei tutte le possibili combinazioni di orario.... sarebbe divertente da provare... poi per religione, in un liceo e se hai una classe con molti che non si avvalgono, conviene piazzare la lezione in prima o ultima...
Comunque mi sembra che anche questa tua seconda ipotesi non sia corretta... che valore avrebbe la prof.ssa Frati che ha 10 ore in 1D? 10? |
messaggio per mercurial | L'archivio dei docenti è l'archivio stravecchio del 1992 .
C'è una procedura che si chiama Ciclone che apre gli archivi, li azzera cioè azzera alcuni campi di orario ( gg_ora se non trova un carattere nel campo Blocco) , classi ed aule ( campo ore_ass cioè le ore assegnate).
Da questa funzione si arriva in un altra funzione che si chiama ciclomater : in questa funzione inizia il ciclo for next che puo' essere fino a 2.
Sempre in questa funzione ci sono tre righe che io avevo erroneamente remmato che vanno a caricare le ore sequenziali e restituendo un array e un'altra variabile quante volte la materia deve essere consecutiva : questa variabile che poi è usata nella funzione Classelib che giustamente tu hai detto la funzione classelib svolge un compito ben preciso cioè verifica se una classe è disponibile in un dato giorno e per [b:2nlo804h]un numero consecutivo di ore[/b:2nlo804h].
Per assegnare le ore c'è una funzione assegnaore(ngiro) che al momento funziona ma a volte cioè ancora non capisco come funziona , e io ho aggiunto in questa funzione la classe Tprogress ( 3 barre) una per il ciclo delle lezioni, una per il ciclo dei docenti e l'altra il ciclo che è in mezzo dei giorni per vedere ogni volta in quale parte del ciclo si trovi .
In questa funzione AssegnaOre seleziona i docenti e fa un ciclo do while not eof() poi
cerca in orario il record del docente . orario è indicizzato nel primo index cioè INDEX ON str(PROF,3) TAG ORARIO1
OR->(dbSeek(Str(DO->(RecNo()), 3)))
poi apre un IF
if (!Empty(DO->oredispo))
se non è vuota oredispo ma è un controsenso perchè è sempre pieno questo campo anche quando il campo c'è un zero ( il campo è un campo carattere)
poi apre un altro ciclo do while
DO while (OR->prof == DO->(RecNo()))
if (Empty(OR->gg_ora) .AND. OR->classe != DA->cla_dis)
AAdd(Local7, {or->(RecNo()), ""})
elseif (!Empty(OR->gg_ora) .AND. OR->classe != DA->cla_dis)
AAdd(Local6, Val(or->gg_ora))
endif
or->(dbSkip())
end
Local7 e local6 sono due array ma anche qui c'è un controsenso perchè il local6 non si formerà mai perchè all'inizio della funzione ciclone va a cancellare il campo or->gg_ora sempre se il campo or->blocco è vuoto mentre local7 si popola con i numeri dei record . forse nel ennesimo ciclo trova il campo or->gg_ora pieno e popola anche il local6 ma non è detto . ti dico cosi perchè la funzione integra io lo provata e riprovat aun sacco di volte e non salva le ore nell'archivio se invece metto una mappatura oraria nell'array local6 del tipo :
Local6:= {10,20,30,40,50,60,;
11,21,31,41,51,61,;
12,22,32,42,52,61,;
13,23,33,43,53,63,;
14,24,34,44,54,64,;
15,25,35,45,55,65,;
16,26,36,46,56,66 }
allora la parte finale della funzione assegna le ore prendendole dal local6 e poi puoi vedere il risultato della schermata che ti ho postato cioè le ore le mette ma sono tutte in fila ... ma almeno le mette...
ma lo so che non va bene .... se mi scrivi a silvio[dot]falconi[at]gmail[dot]com ti invio il file
E' possible quindi che una lezione sia bloccata cioè che nel campo or-> blocco ci sia un asterisco e quella lezione non deve essere cambiata, in via di sviluppo di formazione orario l'utente puo' attraverso un inserimento visivo assegnare delle ore "a mano" al docente , quando accade questo il programma mette un asterisco nel campo or->blocco
[img:2nlo804h]http://www.eoeo.it/wp-content/uploads/2015/02/Immagine.jpg[/img:2nlo804h]
o questo puo' accadere per una determinata classe o aula
Una cosa che non ti ho detto ---- la formazione dell'archivio Orario viene fatto ogni volta che si inserisce un docente ed il totale delle lezioni ( cattedre) è il campo do->ore_catt
[b:2nlo804h]Prof[/b:2nlo804h] il codice recno del docente
Il campo [b:2nlo804h]Classe[/b:2nlo804h] Indica la classe in cui il professore deve insegnare. Per e ore a disposizione inserire il "Codice classe per le
ore a disposizione" caricato nei "Parametri generali" che generalmente e in questo caso è 1DISP ma nel tabello non si vede bene e quindi lo devo cambiare in XX o altro codice tipo DD perchè il tabellone fa vedere solo 2 cr per casella
la [b:2nlo804h]materia[/b:2nlo804h] di insegnamento del professore in quell'ora.
Per il campo [b:2nlo804h]Aula [/b:2nlo804h] bisogna dire che non e' necessario inserire l'aula, in quanto per il programma rimane sottinteso e dovrebbe essere così che ogni classe rimanga nella propria aula per lo svolgimento delle normali ore di lezioni. E' invece obbligatorio inserire il laboratorio per le ore svolte in esso al fine di evitare accavallamenti di piu' classi, non appartenenti ad un gruppo, per la stessa ora nello stesso laboratorio.
[b:2nlo804h]FLAG[/b:2nlo804h] prevede l'inserimento di un flag, che serve poi al programma per conteggiare le ore di cattedra
[b:2nlo804h]ORESEQ[/b:2nlo804h] Nel caso in cui si desidera che piu' ore inserite vengano collocate una di seguito all'altra, bisogna indicare per tali
ore in questa colonna un medesima lettera. Ad esempio supponiamo che il professore insegni 6 ore di
matematica sia in Prima C che in Prima D. Se vogliamo che per entrambe le classi vi siano 2 ore consecutive, basta collocare
in questo campo per due ore cattedra nella classe Prima C, la lettera "A" e indicare "B" per altre 2 ore cattedra nella
classe Prima D.
[b:2nlo804h]GRUPPO[/b:2nlo804h] è il codice di un gruppo inserito nell'archivio complementare. I gruppi servono per gestire la presenza di piu' di
una classe per una medesima ora di lezione. Se si desidera, ad esempio, che la Prima A e la Prima B facciano Chimica insieme e' sufficiente che per tali ore venga indicato il medesimo codice gruppo in questa colonna
l'Index Orario.$$2 quello super ingarbugliato è usato solo in una funzione che ho messo da parte per adesso cioè quella che gestisce i gruppi. che per adesso non voglio occuparmene perchè vorrei risolvere le altre funzioni che non funziano bene o che non capisco cosa fanno ... |
messaggio per mercurial | [quote:10gcajw8]Comunque mi sembra che anche questa tua seconda ipotesi non sia corretta... che valore avrebbe la prof.ssa Frati che ha 10 ore in 1D? 10?[/quote:10gcajw8]
il problema che alcune funzioni non le trovo
ho trovato solo le funzioni
classelib
aulalib
giornolib ( giorno libero per il docente e in base al campo do->punti precedenza)
PROFLIB ( c'è una schema formata da tanti SSSSSSSSSSSS in 6 campi dal l_lun a L_sab, per vedere se il docente ha chiesto di entrare alla seconda ora oppure avere un ora anziche un altra ecc) una specie di mammaptura e la funzione assegnaore usa questo controllo
poi alcuni controlli sono chiamati dentro ai tbrowse di clipper come chk_oreseq e CHK_FLAG
poi ho altre funzioni che non capisco bene ... probabilmente nel 92 facevo le pugnette...
PROFPRES
AULECOMP che gestisce i gruppi di cui ti ho parlato sopra
AULALAB
MATRIP
MAXCLA
CHK_GG
CHK_CLASSE
CHK_AULE
CHK_ORE
CONTAORE
Poi non trovo le funzioni che servono per esempio a calcolare che un docente
deve fare n ore min al giorno e n ore max al giorno
deve avere n ore min buche al giorno e n ore max al giorno |
messaggio per mercurial | Ho letto velocemente i tuoi due post e devo rileggerli per cercare di entrare meglio nei meccanismi...
Ma prima ti devo chiedere di inquadrare meglio il lavoro che stai facendo e ciò che hai a disposizione, perché leggo delle frasi che possono sembrare contraddirsi mentre magari è solo un modo di esprimersi dovuto alla velocità.
Da quello che ho capito devi fare il porting di una vecchia applicazione scritta da te nel 1992 usando un tool di sviluppo di terze parti. Questo tool ha generato sorgenti che poi andavano compilati ed eseguiti. E questo programma funzionava regolarmente.
Sia di questa versione 92 che di eventuali successive non hai piu i codici e nemmeno gli eseguibili se non per l'eseguibile del 92.
Di questo 92 quindi hai un set completo eseguibili/basi dati che puoi usare come riferimento.
Ora, hai decompilato l'eseguibile e quindi hai i sorgenti - Valkirye crea dei file .SRC e anche mi sembra un paio di file di note di decompilazione.
Hai recuperato tutti i codici? Tutte le funzioni?
Il programma compila usando il decompilato? Funziona il link?
Lo so che andresti a creare un programma textmode ma è necessario capire che sia tutto a posto, che non manchi nulla...
Inoltre è un modo per verificare se passando da Clipper XX a Harbour magari è cambiato qualcosa nella gestione di qualche aspetto...
In più ti fornisce la possibilità di fotografare lo stato di alcune funzioni/variabili partendo da uno stato conosciuto... penso a quella local6 che citi... facendo girare l'app harbour, che valore assume?
Magari è una cosa che hai già fatto... ma non si capisce dai tuoi messaggi... perché quando dici:
[quote:tkllbalj]
Poi non trovo le funzioni che servono per esempio a calcolare.....
[/quote:tkllbalj]
non riesco a capire se non ci sono nel decompilato, se non le riesci ad identificare, o cosa.. |
messaggio per mercurial | Ho provato a ricreare la struttura delle funzioni partendo dalla tua descrizione... ciclone() chiama ciclomater() o ciclomater() è eseguita dopo? assegnaOre() è chiamata da dentro ciclomater due volte (citi il for/next)... il pezzo di codice che hai postato è dentro assegnaOre? ma è troppo ridotto e con una descrizione scarna e non si riesce, almeno io, a inquadrarlo bene. Ad esempio nGiro.. che valori può assumere e che comportamenti diversi ha la funzione per i vari valori? così, per istinto, immagino che assegnaOre() sia una funzione abbastanza lunga, a meno che i vari array creati non vengano ritornati indietro...
Le variabili Local6 e Local7 (dal cui nome capisco che erano variabili Local di un programma decompilato) dove e soprattuto come sono poi usate? che nome g
L'assegnare un valore a Local6 come hai fatto tu non basta, perché Local6 è popolata con delle condizioni ben precise: !empty( GG_ORA ) AND OR->CLASSE != DA->CLA_DIS e nello stesso tempo NON DEVE stare il record dentro Local7... dalla tua citazione non si capisce. (BTW: cose' la tabella DA?) Magari anche forzando Local6 il codice successivo fa altri controlli che vanificano la tua forzatura...
Ma ad esempio, se "blocchi" delle ore a 5 docenti, che succede? Vengono rispettati i vincoli?
Che succede se parti da una certa situazione di DBF e fai fare lo stesso giro sul programma clipper e quello fivewin? Ovviamente ricreando gli indici... a proposito, non è che ci sono di mezzo, in qualcuna di queste funzioni, degli indici temporanei o "strani" come il $$1?
Per quanto riguarda DO->oredispo, se sicuro che sia un CHAR? In questo passaggio, l'alias OR punta proprio al file originale ORARIO? Non magari ad un file temporaneo dove il campo è ora numerico?
Proprio in questi giorni sto facendo una conversione di un programma da Clipper 87 a Harbour, documentando tutto in un blog, quindi capisco perfettamente quello che stai passando perché ci sono passato anche io nell'ultimo mese...
Ho visto che mi hai lasciato la mail, ti scrivo |
messaggio per mercurial | [quote="mercurial":4466suo4]
Sia di questa versione 92 che di eventuali successive non hai piu i codici e nemmeno gli eseguibili se non per l'eseguibile del 92.
[/quote:4466suo4]
Il problema più grave che nel 2012 io avevo rifatto già il programma convertendolo dal dos del 1992 e nella cartella source avevo messo un cartella old dove erano tutti i vecchi sorgenti. Ora nel riprenderlo non ho trovato ne la cartella e ne un versione corretta del 2012. Ho perso tutto un disco fisso , ho provato persino con Stellar per riprendere i file del disco ci ha provato anche un mio amico carabiniere con un programma che hanno i cc ma niente da fare.
Quindi sono andato alla ricerca dei sorgenti del 92 in una marea di dischetti HD e DD...ed ho trovato parti di sorgenti...Péurtrop o da allora ho fatto 5 trasloshi e cambiato 3 citta sicchè non posso pretendere di trovarli tutti.
Forse se il codice era un clipperSummer87 era più facile, il Walkyrie per clipper5 non mette i nomi delle variabili per quanto riguarda il clipper5 ma le le mette con il clipper87. |
method add del in DBCOMBO | if there is method in DBCOMBO with add or del an item form list /list - database/
maybe an example |
method add del in DBCOMBO | It all depends on what you need to do.
DBCombo can load an array or read a source database.
If you are reading a small database, you can add or delete records in the source database, then just call the Refill() method which will reload the array.
Depending on the size of the database rereading it could be too slow for a good user experience. If this is the case, then you can add/delete data directly to the existing array using the existing Add() and Del() methods to change the list. Then you need to also add/delete to the source database also.
If you are just using a list (and not a database) then just use the Add() or Del() methods.
Regards,
James |
method add del in DBCOMBO | Saludos, yo lo hago asi, espero te ayude...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
[code=fw:kqurw8t4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// REASIGNO VALORES A UN DBCOMBO</span><br /><br /><span style="color: #00C800;">local</span> aNuevo1 := <span style="color: #000000;">{</span><span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"2"</span>,<span style="color: #ff0000;">"3"</span>,<span style="color: #ff0000;">"4"</span><span style="color: #000000;">}</span>, aNuevo2 := <span style="color: #000000;">{</span><span style="color: #ff0000;">"Valor 1"</span>,<span style="color: #ff0000;">"Valor 2"</span>, <span style="color: #ff0000;">"Valor 3"</span>, <span style="color: #ff0000;">"Valor 4"</span><span style="color: #000000;">}</span><br /><br /> oCmb:<span style="color: #000000;">aItems</span> := aNuevo1<br /><br /> oCmb:<span style="color: #000000;">aList</span> := aNuevo2<br /><br /> oCmb:<span style="color: #000000;">SetItems</span><span style="color: #000000;">(</span> oCmb:<span style="color: #000000;">aItems</span>, oCmb:<span style="color: #000000;">aList</span>, .t. <span style="color: #000000;">)</span><br /><br /> aVar<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span> := <span style="color: #ff0000;">"0"</span><br /><br /> oCmb:<span style="color: #0000ff;">REFRESH</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> </div>[/code:kqurw8t4] |
method print of xbrowse | ACTION oApp():oGrid:Print( .t., , "Elenco Soci" )
it make error
[code:3cyq3tvl]
Application
===========
Path and name: C:\work\errori\fsdi2006\prg\fsdi2006.Exe (32 bits)
Size: 2,059,776 bytes
Time from start: 0 hours 0 mins 2 secs
Error occurred at: 04-02-2007, 01:13:23
Error description: Error BASE/1004 Class: 'NIL' has no exported method: EVAL
Args:
Stack Calls
===========
Called from: => EVAL(0)
Called from: RCOLUMN.PRG => TRCOLUMN:NEW(0)
Called from: XBrowse.prg => TXBROWSE:PRINT(3525)
Called from: pcustomer.prg => (b)SOCI(505)
Called from: VMenu.prg => TVMENU:EVALACTION(1722)
Called from: VMenu.prg => TVMENU:LBUTTONUP(1423)
Called from: window.prg => TWINDOW:HANDLEEVENT(0)
Called from: CONTROL.PRG => TCONTROL:HANDLEEVENT(0)
Called from: VMenu.prg => TVMENU:HANDLEEVENT(900)
Called from: window.prg => _FWH(3165)
Called from: => WINRUN(0)
Called from: window.prg => TWINDOW:ACTIVATE(883)
Called from: main.prg => TAPPLICATION:ACTIVATE(164)
Called from: main.prg => MAIN(42)
[/code:3cyq3tvl]
I add a method print into Xbrowse but it not run ok
[code:3cyq3tvl]
METHOD Print( lPreview, lModal, cTitle ) CLASS TXBrowse
local oPrn, oRep, oCol
local aCols
local xValue
local cAlias
local nFor, nLines, nLine, nBookMark
DEFAULT lPreview := .t.,;
lModal := .f.,;
cTitle := ::oWnd:cCaption
If Empty( cTitle )
cTitle := "No Title"
Endif
If lPreview
If lModal
PRINTER oPrn NAME cTitle PREVIEW MODAL
else
PRINTER oPrn NAME cTitle PREVIEW
Endif
else
PRINTER oPrn NAME cTitle
Endif
If oPrn:hDC == 0
return .f.
Endif
If !Empty( ::cAlias )
cAlias := DbSelectArea( ::cAlias )
Endif
REPORT oRep TITLE "*** " + cTitle + " ***", "" ;
HEADER DToC( Date() ) + "-" + Left(Time(), 5), "" RIGHT ;
FOOTER "#: " + Str( oRep:nPage, 3 ) CENTER;
TO DEVICE oPrn
aCols := ::GetVisibleCols()
for nFor := 1 to len( aCols )
If !aCols[nFor]:lHide
oCol := oRep:AddColumn( TrColumn():New( { FInfo1(aCols, nFor) } ,,;
{ FInfo2(aCols, nFor) },,,,,,,,,, oRep ) )
xValue := Eval(aCols[nFor]:bStrData)
nLines := MlCount(xValue, 250)
oCol:nPad := aCols[nFor]:nDataStrAlign + 1
If nLines > 1
oCol:aData := Array(nLines)
oCol:aPicture := Afill(Array(nLines), "")
For nLine := 1 to nLines
oCol:aData[nLine] := FInfo3(aCols, nFor, nLine)
Next
Endif
Endif
next
ENDREPORT
nBookMark := Eval( ::bBookMark )
If ::aArrayData != nil .and. len( ::aArrayData ) > 0
::nArrayAt := 1
oRep:bSkip := { || ::nArrayAt++ }
ACTIVATE REPORT oRep WHILE ::nArrayAt <= len( ::aArrayData ) ON END ::nArrayAt := 1
else
ACTIVATE REPORT oRep
Endif
Eval(::bBookMark, nBookMark )
If !Empty( cAlias )
DbSelectArea( cAlias )
Endif
return .t.
[/code:3cyq3tvl] |
method print of xbrowse | Silvio
Don't have a XBrowse print method?
Verify a code of your method and search for de internal methods of xBrowse, your application is trying to acess this methods
????::oWnd:cCaption
????::cAlias
????::GetVisibleCols()
????::bBookMark
????::aArrayData
????::nArrayAt
Make sure if exist in xBrowse code the same methods.
Your application don't know ????::object. |
method print of xbrowse | I not understand Waht YOU say me
I add this method to xbrowse fivetech it run sometimes
obrw:print("namereport",.t.,.t.)
it is as print method of wbrowse of hernan |
method print of xbrowse | Excuse. |
method seek Dolphin | La siguiente funcion yo la utilizo con tablas DBF, con un pequeño ajuste
funciona con tdolphin para buscar sobre una tabla de mysql,
la busqueda se realiza con el method seek, partiendo desde un GET, y el query se encuentra en un xbrowse.
acontinuacion un pedazo de codigo:
Saludos.
[code=fw:10celbvk]<div class="fw" id="{CB}" style="font-family: monospace;">::<span style="color: #000000;">oClientes</span> := ::<span style="color: #000000;">oMain</span>:<span style="color: #000000;">oCon</span>:<span style="color: #000000;">Query</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"SELECT * FROM clientes ORDER BY nombre"</span> <span style="color: #000000;">)</span> <br /><br />@ <span style="color: #000000;">100</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> ::<span style="color: #000000;">cBuscar</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!k"</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span><span style="color: #000000;">(</span> oSelf:<span style="color: #000000;">oGrid</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oSelf:<span style="color: #000000;">Buscar</span><span style="color: #000000;">(</span> nKey, oGet <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br />* busqueda incremental partiendo desde un objeto <span style="color: #0000ff;">GET</span>.<br /><span style="color: #00C800;">METHOD</span> Buscar<span style="color: #000000;">(</span> nKey, oGet <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> Clientes<br /> <span style="color: #00C800;">local</span> cFras<br /> <span style="color: #00C800;">if</span> nKey <> <span style="color: #000000;">13</span><br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span> nKey >= <span style="color: #000000;">032</span> .OR. nKey <= <span style="color: #000000;">126</span> <span style="color: #000000;">)</span><br /> cFras:= upper<span style="color: #000000;">(</span> AllTrim<span style="color: #000000;">(</span> oGet:<span style="color: #000000;">cTitle</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> nSeek := ::<span style="color: #000000;">oClientes</span>:<span style="color: #000000;">Seek</span><span style="color: #000000;">(</span> cFras, <span style="color: #000000;">2</span>, , , .T.<span style="color: #000000;">)</span> <span style="color: #B900B9;">// lSoft := .T. </span><br /> <span style="color: #00C800;">if</span> nSeek > <span style="color: #000000;">0</span><br /> ::<span style="color: #000000;">oClientes</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">else</span><br /> ::<span style="color: #000000;">oClientes</span>:<span style="color: #000000;">Gotop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oClientes</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">endif</span> <br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /> ::<span style="color: #000000;">oGrid</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> .t.</div>[/code:10celbvk] |
method seek Dolphin | Cesar
Gracias por compartirlo |
method seek Dolphin | Muy interensante,
agrego unas modificaciones para que sea mas generico el codigo
[code=fw:2mh1xjhc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> cBusca <span style="color: #0000ff;">ID</span> <span style="color: #000000;">111</span> ;<br /> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br /> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span><span style="color: #000000;">(</span> oQry:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, Buscar_Inc<span style="color: #000000;">(</span> nKey, @aGet<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>, oQry, oBrw <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Buscar_Inc<span style="color: #000000;">(</span> nKey, oGet, oQry, oBrw <span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">local</span> cFras<br /> <span style="color: #00C800;">if</span> nKey <> <span style="color: #000000;">13</span><br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span> nKey >= <span style="color: #000000;">032</span> .OR. nKey <= <span style="color: #000000;">126</span> <span style="color: #000000;">)</span><br /> cFras:= upper<span style="color: #000000;">(</span> AllTrim<span style="color: #000000;">(</span> oGet:<span style="color: #000000;">cTitle</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> nSeek := oQry:<span style="color: #000000;">Seek</span><span style="color: #000000;">(</span> cFras, <span style="color: #000000;">2</span>, , , .T.<span style="color: #000000;">)</span> <span style="color: #B900B9;">// lSoft := .T. </span><br /> <span style="color: #00C800;">if</span> nSeek > <span style="color: #000000;">0</span><br /> oQry:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">else</span><br /> oQry:<span style="color: #000000;">Gotop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oQry:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span> <br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /> oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> .t.</div>[/code:2mh1xjhc]
//-----------------------------------------------------------------------//
Daniel cuando el query tiene mas de una tabla la busqueda incremental el seek no funciona aunque este ordenada por la columna correcta
Eje:
cSql:="SELECT c.codciud as codigop,c.nomciud as puerto,p.codpuer as codigom,p.nompuer as muelle "+;
" FROM puertos p INNER JOIN ciudad c ON p.codciud=c.codciud "+;
"ORDER BY p.nompuer "
Si hago un locate funciona :
oQry:locate( { cBusca },{"muelle"},,.t. )
Slds,
Nicanor Martinez |
method seek Dolphin | Nicanor
a mi me fucniona bien, si pudieras enviarmen un ejemplo a mi correo que pueda probar te lo agradezco |
method syntax | I'm porting large OO app from Clipper Fivewin.
Is it possible to declare several methods in just one line,
like this:
[code:2x7ppe34]CLASS T3DOBJ
DATA aVertex
DATA aFaces
METHOD New() CONSTRUCTOR
METHOD AddVertex(), Paint()
// METHOD Paint()
ENDCLASS[/code:2x7ppe34]
At the moment, harbour compiler does not like
this (Syntax error: parse error at ...)
Thanks, Roman |
method syntax | No, if you check the hbclass.ch header file, you will notice that METHOD is a single line directive. |
method syntax | Roman,
You may modify Harbour hbclass.ch and implement it for you. |
method syntax | I think it will be faster if I manually change source of our modules.
I looked into objects.ch to see how you implemented "method" in FW
for clipper and it seems quite complicated.
Roman |
method syntax | Roman,
FWH does not use objects.ch, just hbclass.ch which it is much more simple. |
method: EditBaseRecord | Hello,
I am with a doubt as to the use of the method: EditBaseRecord, if in the rowset I put "* " The method works, if specified the field in the rowset does not work. Shouldn't he use all the fields in the rowset independent table?
[b:1izdejav]Example: Doesn't work
[/b:1izdejav]oTabela: = oCon: RowSet ( "[b:1izdejav]SELECT codigo, descricao FROM ocorrencia[/b:1izdejav]")
DEFINE VMENUITEM the item OF omenu;
IMAGE "";
CAPTION "incluir ";
ACTION (oTabela: EditBaseRecord (NIL,. T., {| oRec | Editar_Tabela (ORec, CTabela)}, OBrowse);
oTabela: Rewanty (),;
oBrowse: SetFocus ())
[b:1izdejav]Example: works
[/b:1izdejav]oTabela: = oCon: RowSet ( "[b:1izdejav]SELECT * FROM ocorrencia[/b:1izdejav]")
DEFINE VMENUITEM the item OF omenu;
IMAGE "";
CAPTION "incluir ";
ACTION (oTabela: EditBaseRecord (NIL,. T., {| oRec | Editar_Tabela (ORec, CTabela)}, OBrowse);
oTabela: Rewanty (),;
oBrowse: SetFocus ())
Did I misunderstand the operation of the method?
Att.,
Oliveiros Junior |
method: EditBaseRecord | <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=35054&p=208563#p208563">viewtopic.php?f=3&t=35054&p=208563#p208563</a><!-- l --> |
method: EditBaseRecord | Hello Mr. Rao,
Thanks for the answer. "Rewanty () " was the translator.
I'll make the indicated changes and return here. Thanks again.
Att.,
Oliveiros Junior |
metodo Get | Hola amigos del forum.
Que tiene un ejemplo del metodo Get-> MH_GetPairs() --> Hash, el cual retorna un hash. |
metodo Get | Estimado Alfredo,
[code=fw:18qf8gn6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> ? MH_GetPairs<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// según la versión que tengas, puede usar AP_GetPairs()</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:18qf8gn6]
Si en la URL escribes localhost/test.prg?nombre=alfredo obtendrás:
[quote:18qf8gn6]{
"nombre": "alfredo"
}[/quote:18qf8gn6]
Si quiseras acceder al valor de "nombre" haces desde el PRG:
[code=fw:18qf8gn6]<div class="fw" id="{CB}" style="font-family: monospace;">? MH_GetPairs<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">[</span> <span style="color: #ff0000;">"nombre"</span> <span style="color: #000000;">]</span></div>[/code:18qf8gn6]
Si te animás a usar la versión mod_harbour CGI (en mi opinión es la versión más robusta) entonces tienes que hacer (solo cambia la llamada):
[url:18qf8gn6]http://localhost/cgi-bin/modharbour.exe?prg=test.prg&nombre=alfredo[/url:18qf8gn6]
si aplicas la regla que te indico más abajo, entonces puedes hacer:
[url:18qf8gn6]http://localhost/test.prg?nombre=alfredo[/url:18qf8gn6]
Puedes descargar modharbour.exe desde aqui:
[url:18qf8gn6]https://github.com/FiveTechSoft/mod_harbour/blob/master/cgi/windows/modharbour.exe[/url:18qf8gn6]
también tienes que copiar la DLL:
[url:18qf8gn6]https://github.com/FiveTechSoft/mod_harbour/blob/master/cgi/windows/libcurl-x64.dll[/url:18qf8gn6]
y situarlos en: c:\Apache\cgi-bin
y recuerda copiar esta regla dentro de c:\apache\httpd.conf
[quote:18qf8gn6]<Directory C:/apache/htdocs>
RewriteEngine on
RewriteRule ^([a-zA-Z]*)$ /cgi-bin/modharbour.exe?prg=$1 [NC,QSA]
</Directory>[/quote:18qf8gn6] |
metodo Get | Gracias Antonio.
Con respecto a mod_harbour CGI. Poraqui estare molestando. |
metodo Get | Encantado de ayudar <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
metodo Get | Buenas Antonio, quiero incursionar con mod_harbour CGI, no logro que me funcione, hice la descargue de los archivos en link que me diste, copie las dll y el modharbour.exe en C:\xampp\cgi-bin, agregue estas estas lineas:
En Httpd.conf, que se encuetra en esta carpeta: C:\xampp\apache\conf
LoadModule harbour_module modules/mod_harbour.so
<FilesMatch "\.(prg|hrb)$">
SetHandler harbour
</FilesMatch>
Tengo funcionando modharbour, y estoy practicando los ejemplo, pero con mod_harbour CGI, no se que cambio tengo que hacer, los que hice como te explico arriba no me funciona |
metodo Get | Estimado Alfredo,
Estas son las instrucciones a seguir para usar mod_harbour CGI:
<!-- l --><a class="postlink-local" href="http://fivetechsupport.com/forums/viewtopic.php?p=255731&sid=31b907208c75ae4a3d445dac45d152b5#p255731">viewtopic.php?p=255731&sid=31b907208c75ae4a3d445dac45d152b5#p255731</a><!-- l -->
Estás líneas no se usan para mod_harbour CGI:
[code=fw:2d8y729z]<div class="fw" id="{CB}" style="font-family: monospace;">LoadModule harbour_module modules/mod_harbour.so<br /><FilesMatch <span style="color: #ff0000;">"<span style="color: #000000;">\.</span>(prg|hrb)$"</span>><br />SetHandler harbour<br /></FilesMatch></div>[/code:2d8y729z] |
metodo Get | Gracias Antonio.
Cualquier inquietud, le comento. |
metodo Get | No he podido configurarlo.
1.-Instalo Xampp 64 bit y lo reinicio y todo bien
2.-Copio todas las dll y modharbour.exe a la siguiente direccion C:\xampp\cgi-bin
3.-copio httpd.conf a la siguiente direccion C:\xampp\apache\conf
4.-copio htaccess a la siguiente direccion C:\xampp\htdocs.
5. reinicio xampp
6.-Me sale el siguiente error:
4:33:03 p. m. [Apache] Status change detected: stopped
4:33:03 p. m. [Apache] Error: Apache shutdown unexpectedly.
4:33:03 p. m. [Apache] This may be due to a blocked port, missing dependencies,
4:33:03 p. m. [Apache] improper privileges, a crash, or a shutdown by another method.
4:33:03 p. m. [Apache] Press the Logs button to view error logs and check
4:33:03 p. m. [Apache] the Windows Event Viewer for more clues
4:33:03 p. m. [Apache] If you need more help, copy and post this
4:33:03 p. m. [Apache] entire log window on the forums
[b:1c5768v9]Este es el archivo:htaccess[/b:1c5768v9]
[code=fw:1c5768v9]<div class="fw" id="{CB}" style="font-family: monospace;"># Harbour - forward all request <span style="color: #0000ff;">to</span> modharbour.exe<br /><br />RewriteEngine <span style="color: #0000ff;">on</span><br />RewriteRule ^<span style="color: #000000;">(</span>.*\.prg<span style="color: #000000;">)</span> /cgi-bin/modharbour.exe?$<span style="color: #000000;">1</span> <span style="color: #000000;">[</span>L,QSA<span style="color: #000000;">]</span><br /><br />RewriteEngine <span style="color: #0000ff;">on</span><br />RewriteRule ^<span style="color: #000000;">(</span><span style="color: #000000;">[</span>^\.<span style="color: #000000;">]</span>+<span style="color: #000000;">)</span> /cgi-bin/modharbour.exe?$<span style="color: #000000;">1</span>.prg <span style="color: #000000;">[</span>L,QSA<span style="color: #000000;">]</span><br /> </div>[/code:1c5768v9]
Este es el archivo: httpd.conf
[code=fw:1c5768v9]<div class="fw" id="{CB}" style="font-family: monospace;"># Apache Hause .conf file <span style="color: #00C800;">for</span> TLS/<span style="color: #000000;">1.3</span> supported versions<br />#<br /># This is the main Apache HTTP <span style="color: #00C800;">server</span> configuration file. It contains the<br /># configuration directives that give the <span style="color: #00C800;">server</span> its instructions.<br /># See <URL:<span style="color: #000000;">http</span>:<span style="color: #B900B9;">//httpd.apache.org/docs/2.4/> for detailed information.</span><br /># In particular, see <br /># <URL:<span style="color: #000000;">http</span>:<span style="color: #B900B9;">//httpd.apache.org/docs/2.4/mod/directives.html></span><br /># <span style="color: #00C800;">for</span> a discussion <span style="color: #0000ff;">of</span> each configuration directive.<br />#<br /># <span style="color: #00C800;">Do</span> NOT simply read the instructions in here without understanding<br /># what they <span style="color: #00C800;">do</span>. They<span style="color: #ff0000;">'re here only as hints or reminders. If you are unsure<br /># consult the online docs. You have been warned. <br />#<br /># Configuration and logfile names: If the filenames you specify for many<br /># of the server'</span>s control files begin with <span style="color: #ff0000;">"/"</span> <span style="color: #000000;">(</span>or <span style="color: #ff0000;">"drive:/"</span> <span style="color: #00C800;">for</span> Win32<span style="color: #000000;">)</span>, the<br /># <span style="color: #00C800;">server</span> will use that explicit path. <span style="color: #00C800;">If</span> the filenames <span style="color: #00C800;">do</span> *not* begin<br /># with <span style="color: #ff0000;">"/"</span>, the value <span style="color: #0000ff;">of</span> ServerRoot is prepended -- so <span style="color: #ff0000;">"logs/access_log"</span><br /># with ServerRoot set <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">"/usr/local/apache2"</span> will be interpreted by the<br /># <span style="color: #00C800;">server</span> as <span style="color: #ff0000;">"/usr/local/apache2/logs/access_log"</span>, whereas <span style="color: #ff0000;">"/logs/access_log"</span> <br /># will be interpreted as <span style="color: #ff0000;">'/logs/access_log'</span>.<br />#<br /># NOTE: <span style="color: #0000ff;">Where</span> filenames are specified, you must use forward slashes<br /># instead <span style="color: #0000ff;">of</span> backslashes <span style="color: #000000;">(</span>e.g., <span style="color: #ff0000;">"c:/apache"</span> instead <span style="color: #0000ff;">of</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\a</span>pache"</span><span style="color: #000000;">)</span>.<br /># <span style="color: #00C800;">If</span> a drive letter is omitted, the drive <span style="color: #0000ff;">on</span> which httpd.exe is located<br /># will be used by <span style="color: #00C800;">default</span>. It is recommended that you always supply<br /># an explicit drive letter in absolute paths <span style="color: #0000ff;">to</span> avoid confusion.<br /><br />#<br /># ServerRoot: <span style="color: #000000;">The</span> top <span style="color: #0000ff;">of</span> the directory tree under which the <span style="color: #00C800;">server</span><span style="color: #ff0000;">'s<br /># configuration, error, and log files are kept.<br />#<br /># Do not add a slash at the end of the directory path. If you point<br /># ServerRoot at a non-local disk, be sure to specify a local disk on the<br /># Mutex directive, if file-based mutexes are used. If you wish to share the<br /># same ServerRoot for multiple httpd daemons, you will need to change at<br /># least PidFile.<br />#<br /><br />Define SRVROOT "/Apache24"<br />ServerRoot "${SRVROOT}"<br /><br />#<br /># Uncomment below line to enable TLS/1.3 in server.<br /># (Requires OpenSSL 1.1.1 and up)<br /><br />Define ENABLE_TLS13 "Yes"<br /><br />#<br /># Mutex: Allows you to set the mutex mechanism and mutex file directory<br /># for individual mutexes, or change the global defaults<br />#<br /># Uncomment and change the directory if mutexes are file-based and the default<br /># mutex file directory is not on a local disk or is not appropriate for some<br /># other reason.<br />#<br /># Mutex default:logs<br /><br />#<br /># Listen: Allows you to bind Apache to specific IP addresses and/or<br /># ports, instead of the default. See also the <VirtualHost><br /># directive.<br />#<br /># Change this to Listen on specific IP addresses as shown below to <br /># prevent Apache from glomming onto all bound IP addresses.<br />#<br />#Listen 12.34.56.78:80<br />Listen 80<br /><br />#<br /># Dynamic Shared Object (DSO) Support<br />#<br /># To be able to use the functionality of a module which was built as a DSO you<br /># have to place corresponding `LoadModule'</span> lines <span style="color: #00C800;">at</span> this location so the<br /># directives contained in it are actually available _before_ they are used.<br /># Statically compiled modules <span style="color: #000000;">(</span>those listed by `httpd -l<span style="color: #ff0000;">') do not need<br /># to be loaded here.<br />#<br /># Example:<br /># LoadModule foo_module modules/mod_foo.so<br />#<br />#LoadModule access_compat_module modules/mod_access_compat.so<br />LoadModule actions_module modules/mod_actions.so<br />LoadModule alias_module modules/mod_alias.so<br />LoadModule allowmethods_module modules/mod_allowmethods.so<br />LoadModule asis_module modules/mod_asis.so<br />LoadModule auth_basic_module modules/mod_auth_basic.so<br />#LoadModule auth_digest_module modules/mod_auth_digest.so<br />#LoadModule auth_form_module modules/mod_auth_form.so<br />#LoadModule authn_anon_module modules/mod_authn_anon.so<br />LoadModule authn_core_module modules/mod_authn_core.so<br />#LoadModule authn_dbd_module modules/mod_authn_dbd.so<br />#LoadModule authn_dbm_module modules/mod_authn_dbm.so<br />LoadModule authn_file_module modules/mod_authn_file.so<br />#LoadModule authn_socache_module modules/mod_authn_socache.so<br />#LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so<br />#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so<br />LoadModule authz_core_module modules/mod_authz_core.so<br />#LoadModule authz_dbd_module modules/mod_authz_dbd.so<br />#LoadModule authz_dbm_module modules/mod_authz_dbm.so<br />LoadModule authz_groupfile_module modules/mod_authz_groupfile.so<br />LoadModule authz_host_module modules/mod_authz_host.so<br />#LoadModule authz_owner_module modules/mod_authz_owner.so<br />LoadModule authz_user_module modules/mod_authz_user.so<br />LoadModule autoindex_module modules/mod_autoindex.so<br />#LoadModule buffer_module modules/mod_buffer.so<br />#LoadModule cache_module modules/mod_cache.so<br />#LoadModule cache_disk_module modules/mod_cache_disk.so<br />#LoadModule cache_socache_module modules/mod_cache_socache.so<br />#LoadModule cern_meta_module modules/mod_cern_meta.so<br />LoadModule cgi_module modules/mod_cgi.so<br />#LoadModule charset_lite_module modules/mod_charset_lite.so<br />#LoadModule data_module modules/mod_data.so<br />#LoadModule dav_module modules/mod_dav.so<br />#LoadModule dav_fs_module modules/mod_dav_fs.so<br />#LoadModule dav_lock_module modules/mod_dav_lock.so<br />#LoadModule dbd_module modules/mod_dbd.so<br />#LoadModule deflate_module modules/mod_deflate.so<br />LoadModule dir_module modules/mod_dir.so<br />#LoadModule dumpio_module modules/mod_dumpio.so<br />LoadModule env_module modules/mod_env.so<br />#LoadModule expires_module modules/mod_expires.so<br />#LoadModule ext_filter_module modules/mod_ext_filter.so<br />#LoadModule file_cache_module modules/mod_file_cache.so<br />#LoadModule filter_module modules/mod_filter.so<br />#LoadModule headers_module modules/mod_headers.so<br />#LoadModule heartbeat_module modules/mod_heartbeat.so<br />#LoadModule heartmonitor_module modules/mod_heartmonitor.so<br />LoadModule http2_module modules/mod_http2.so<br />#LoadModule ident_module modules/mod_ident.so<br />#LoadModule imagemap_module modules/mod_imagemap.so<br />LoadModule include_module modules/mod_include.so<br />LoadModule info_module modules/mod_info.so<br />LoadModule isapi_module modules/mod_isapi.so<br />#LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so<br />#LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so<br />#LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so<br />#LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so<br />#LoadModule ldap_module modules/mod_ldap.so<br />#LoadModule logio_module modules/mod_logio.so<br />LoadModule log_config_module modules/mod_log_config.so<br />#LoadModule log_debug_module modules/mod_log_debug.so<br />#LoadModule log_forensic_module modules/mod_log_forensic.so<br />#LoadModule lua_module modules/mod_lua.so<br />#LoadModule macro_module modules/mod_macro.so<br />#LoadModule md_module modules/mod_md.so<br />LoadModule mime_module modules/mod_mime.so<br />#LoadModule mime_magic_module modules/mod_mime_magic.so<br />LoadModule negotiation_module modules/mod_negotiation.so<br />#LoadModule proxy_module modules/mod_proxy.so<br />#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so<br />#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so<br />#LoadModule proxy_connect_module modules/mod_proxy_connect.so<br />#LoadModule proxy_express_module modules/mod_proxy_express.so<br />#LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so<br />#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so<br />#LoadModule proxy_html_module modules/mod_proxy_html.so<br />#LoadModule proxy_http_module modules/mod_proxy_http.so<br />#LoadModule proxy_http2_module modules/mod_proxy_http2.so<br />#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so<br />#LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so<br />#LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so<br />#LoadModule ratelimit_module modules/mod_ratelimit.so<br />#LoadModule reflector_module modules/mod_reflector.so<br />#LoadModule remoteip_module modules/mod_remoteip.so<br />#LoadModule request_module modules/mod_request.so<br />#LoadModule reqtimeout_module modules/mod_reqtimeout.so<br />LoadModule rewrite_module modules/mod_rewrite.so<br />#LoadModule sed_module modules/mod_sed.so<br />#LoadModule session_module modules/mod_session.so<br />#LoadModule session_cookie_module modules/mod_session_cookie.so<br />#LoadModule session_crypto_module modules/mod_session_crypto.so<br />#LoadModule session_dbd_module modules/mod_session_dbd.so<br />LoadModule setenvif_module modules/mod_setenvif.so<br />#LoadModule slotmem_plain_module modules/mod_slotmem_plain.so<br />#LoadModule slotmem_shm_module modules/mod_slotmem_shm.so<br />#LoadModule socache_dbm_module modules/mod_socache_dbm.so<br />#LoadModule socache_memcache_module modules/mod_socache_memcache.so<br />#LoadModule socache_redis_module modules/mod_socache_redis.so<br />LoadModule socache_shmcb_module modules/mod_socache_shmcb.so<br />#LoadModule speling_module modules/mod_speling.so<br />LoadModule ssl_module modules/mod_ssl.so<br />LoadModule status_module modules/mod_status.so<br />#LoadModule substitute_module modules/mod_substitute.so<br />#LoadModule unique_id_module modules/mod_unique_id.so<br />#LoadModule userdir_module modules/mod_userdir.so<br />#LoadModule usertrack_module modules/mod_usertrack.so<br />#LoadModule version_module modules/mod_version.so<br />#LoadModule vhost_alias_module modules/mod_vhost_alias.so<br />#LoadModule watchdog_module modules/mod_watchdog.so<br />#LoadModule xml2enc_module modules/mod_xml2enc.so<br /><br /><IfModule unixd_module><br />#<br /># If you wish httpd to run as a different user or group, you must run<br /># httpd as root initially and it will switch. <br />#<br /># User/Group: The name (or #number) of the user/group to run httpd as.<br /># It is usually good practice to create a dedicated user and group for<br /># running httpd, as with most system services.<br />#<br />User daemon<br />Group daemon<br /><br /></IfModule><br /><br /># '</span>Main<span style="color: #ff0000;">' server configuration<br />#<br /># The directives in this section set up the values used by the '</span>main<span style="color: #ff0000;">'<br /># server, which responds to any requests that aren'</span>t handled by a<br /># <VirtualHost> definition. These values also provide defaults <span style="color: #00C800;">for</span><br /># any <VirtualHost> containers you may <span style="color: #0000ff;">define</span> later in the file.<br />#<br /># All <span style="color: #0000ff;">of</span> these directives may appear inside <VirtualHost> containers,<br /># in which <span style="color: #00C800;">case</span> these <span style="color: #00C800;">default</span> settings will be overridden <span style="color: #00C800;">for</span> the<br /># virtual host being defined.<br />#<br /><br />#<br /># ServerAdmin: <span style="color: #000000;">Your</span> address, <span style="color: #0000ff;">where</span> problems with the <span style="color: #00C800;">server</span> should be<br /># e-mailed. This address appears <span style="color: #0000ff;">on</span> some server-generated pages, such<br /># as error documents. e.g. <!-- e --><a href="mailto:admin@your-domain.com">admin@your-domain.com</a><!-- e --><br />#<br />ServerAdmin <!-- e --><a href="mailto:admin@example.com">admin@example.com</a><!-- e --><br /><br />#<br /># ServerName gives the <span style="color: #0000ff;">name</span> and port that the <span style="color: #00C800;">server</span> uses <span style="color: #0000ff;">to</span> identify itself.<br /># This can often be determined automatically, but we recommend you specify<br /># it explicitly <span style="color: #0000ff;">to</span> prevent problems during startup.<br />#<br /># <span style="color: #00C800;">If</span> your host doesn<span style="color: #ff0000;">'t have a registered DNS name, enter its IP address here.<br />#<br />ServerName localhost:80<br /><br />#<br /># Deny access to the entirety of your server'</span>s filesystem. You must<br /># explicitly permit access <span style="color: #0000ff;">to</span> web content directories in other <br /># <Directory> blocks below.<br />#<br /><Directory /><br /> AllowOverride All<br /> Require all granted<br /></Directory><br /><br />#<br /># Note that <span style="color: #0000ff;">from</span> this point forward you must specifically allow<br /># particular features <span style="color: #0000ff;">to</span> be enabled - so <span style="color: #00C800;">if</span> something<span style="color: #ff0000;">'s not working as<br /># you might expect, make sure that you have specifically enabled it<br /># below.<br />#<br /><br />#<br /># DocumentRoot: The directory out of which you will serve your<br /># documents. By default, all requests are taken from this directory, but<br /># symbolic links and aliases may be used to point to other locations.<br />#<br />DocumentRoot "${SRVROOT}/htdocs"<br /><Directory "${SRVROOT}/htdocs"><br /><br /> Options +ExecCGI +Indexes +FollowSymLinks<br /><br /> AllowOverride All<br /> Require all granted<br /><br /></Directory><br /><br />#<br /># DirectoryIndex: sets the file that Apache will serve if a directory<br /># is requested.<br />#<br /><IfModule dir_module><br /> DirectoryIndex index.html<br /></IfModule><br /><br />#<br /># The following lines prevent .htaccess and .htpasswd files from being <br /># viewed by Web clients. <br />#<br /><Files ".ht*"><br /> Require all denied<br /></Files><br /><br />#<br /># ErrorLog: The location of the error log file.<br /># If you do not specify an ErrorLog directive within a <VirtualHost><br /># container, error messages relating to that virtual host will be<br /># logged here. If you *do* define an error logfile for a <VirtualHost><br /># container, that host'</span>s errors will be logged there and not here.<br />#<br />ErrorLog <span style="color: #ff0000;">"logs/error.log"</span><br /><br />#<br /># LogLevel: <span style="color: #000000;">Control</span> the number <span style="color: #0000ff;">of</span> messages logged <span style="color: #0000ff;">to</span> the error_log.<br /># Possible values include: <span style="color: #000000;">debug</span>, info, notice, warn, error, crit,<br /># alert, emerg.<br />#<br />LogLevel warn<br /><br /><IfModule log_config_module><br /> #<br /> # The following directives <span style="color: #0000ff;">define</span> some format nicknames <span style="color: #00C800;">for</span> use with<br /> # a CustomLog directive <span style="color: #000000;">(</span>see below<span style="color: #000000;">)</span>.<br /> #<br /> LogFormat <span style="color: #ff0000;">"%h %l %u %t <span style="color: #000000;">\"</span>%r<span style="color: #000000;">\"</span> %>s %b <span style="color: #000000;">\"</span>%{Referer}i<span style="color: #000000;">\"</span> <span style="color: #000000;">\"</span>%{User-Agent}i<span style="color: #000000;">\"</span>"</span> combined<br /> LogFormat <span style="color: #ff0000;">"%h %l %u %t <span style="color: #000000;">\"</span>%r<span style="color: #000000;">\"</span> %>s %b"</span> common<br /><br /> <IfModule logio_module><br /> # You need <span style="color: #0000ff;">to</span> enable mod_logio.c <span style="color: #0000ff;">to</span> use %I and %O<br /> LogFormat <span style="color: #ff0000;">"%h %l %u %t <span style="color: #000000;">\"</span>%r<span style="color: #000000;">\"</span> %>s %b <span style="color: #000000;">\"</span>%{Referer}i<span style="color: #000000;">\"</span> <span style="color: #000000;">\"</span>%{User-Agent}i<span style="color: #000000;">\"</span> %I %O"</span> combinedio<br /> </IfModule><br /><br /> #<br /> # The location and format <span style="color: #0000ff;">of</span> the access logfile <span style="color: #000000;">(</span>Common Logfile Format<span style="color: #000000;">)</span>.<br /> # <span style="color: #00C800;">If</span> you <span style="color: #00C800;">do</span> not <span style="color: #0000ff;">define</span> any access logfiles within a <VirtualHost><br /> # container, they will be logged here. Contrariwise, <span style="color: #00C800;">if</span> you *<span style="color: #00C800;">do</span>*<br /> # <span style="color: #0000ff;">define</span> per-<VirtualHost> access logfiles, transactions will be<br /> # logged therein and *not* in this file.<br /> #<br /> CustomLog <span style="color: #ff0000;">"logs/access.log"</span> common<br /><br /> #<br /> # <span style="color: #00C800;">If</span> you prefer a logfile with access, agent, and referer information<br /> # <span style="color: #000000;">(</span>Combined Logfile Format<span style="color: #000000;">)</span> you can use the following directive.<br /> #<br /> #CustomLog <span style="color: #ff0000;">"logs/access.log"</span> combined<br /></IfModule><br /><br />AddHandler cgi-script .exe<br /><br /><IfModule alias_module><br /> #<br /> # Redirect: <span style="color: #000000;">Allows</span> you <span style="color: #0000ff;">to</span> tell clients about documents that used <span style="color: #0000ff;">to</span> <br /> # exist in your <span style="color: #00C800;">server</span><span style="color: #ff0000;">'s namespace, but do not anymore. The client <br /> # will make a new request for the document at its new location.<br /> # Example:<br /> # Redirect permanent /foo <!-- m --><a class="postlink" href="http://www.example.com/bar">http://www.example.com/bar</a><!-- m --><br /><br /> #<br /> # Alias: Maps web paths into filesystem paths and is used to<br /> # access content that does not live under the DocumentRoot.<br /> # Example:<br /> # Alias /webpath /full/filesystem/path<br /> #<br /> # If you include a trailing / on /webpath then the server will<br /> # require it to be present in the URL. You will also likely<br /> # need to provide a <Directory> section to allow access to<br /> # the filesystem path.<br /><br /> #<br /> # ScriptAlias: This controls which directories contain server scripts. <br /> # ScriptAliases are essentially the same as Aliases, except that<br /> # documents in the target directory are treated as applications and<br /> # run by the server when requested rather than as documents sent to the<br /> # client. The same rules about trailing "/" apply to ScriptAlias<br /> # directives as to Alias.<br /> #<br /> ScriptAlias /cgi-bin/ "${SRVROOT}/cgi-bin/"<br /><br /></IfModule><br /><br /><IfModule cgid_module><br /> #<br /> # ScriptSock: On threaded servers, designate the path to the UNIX<br /> # socket used to communicate with the CGI daemon of mod_cgid.<br /> #<br /> #Scriptsock logs/cgisock<br /></IfModule><br /><br />#<br /># "${SRVROOT}/cgi-bin" should be changed to whatever your ScriptAliased<br /># CGI directory exists, if you have that configured.<br />#<br /><Directory "${SRVROOT}/cgi-bin"><br /><br /><br /><br /> # AllowOverride None<br /> # Options None<br /> # Require all granted<br /></Directory><br /><br /><IfModule mime_module><br /> #<br /> # TypesConfig points to the file containing the list of mappings from<br /> # filename extension to MIME-type.<br /> #<br /> TypesConfig conf/mime.types<br /><br /> #<br /> # AddType allows you to add to or override the MIME configuration<br /> # file specified in TypesConfig for specific file types.<br /> #<br /> #AddType application/x-gzip .tgz<br /> #<br /> # AddEncoding allows you to have certain browsers uncompress<br /> # information on the fly. Note: Not all browsers support this.<br /> #<br /> #AddEncoding x-compress .Z<br /> #AddEncoding x-gzip .gz .tgz<br /> #<br /> # If the AddEncoding directives above are commented-out, then you<br /> # probably should define those extensions to indicate media types:<br /> #<br /> AddType application/x-compress .Z<br /> AddType application/x-gzip .gz .tgz<br /><br /> #<br /> # AddHandler allows you to map certain file extensions to "handlers":<br /> # actions unrelated to filetype. These can be either built into the server<br /> # or added with the Action directive (see below)<br /> #<br /> # To use CGI scripts outside of ScriptAliased directories:<br /> # (You will also need to add "ExecCGI" to the "Options" directive.)<br /> #<br /> #AddHandler cgi-script .cgi .pl<br /><br /> # For type maps (negotiated resources):<br /> #AddHandler type-map var<br /><br /> #<br /> # Filters allow you to process content before it is sent to the client.<br /> #<br /> # To parse .shtml files for server-side includes (SSI):<br /> # (You will also need to add "Includes" to the "Options" directive.)<br /> #<br /> #AddType text/html .shtml<br /> #AddOutputFilter INCLUDES .shtml<br /></IfModule><br /><br />#<br /># The mod_mime_magic module allows the server to use various hints from the<br /># contents of the file itself to determine its type. The MIMEMagicFile<br /># directive tells the module where the hint definitions are located.<br />#<br />#MIMEMagicFile conf/magic<br /><br />#<br /># Customizable error responses come in three flavors:<br /># 1) plain text 2) local redirects 3) external redirects<br />#<br /># Some examples:<br />#ErrorDocument 500 "The server made a boo boo."<br />#ErrorDocument 404 /missing.html<br />#ErrorDocument 404 "/cgi-bin/missing_handler.pl"<br />#ErrorDocument 402 <!-- m --><a class="postlink" href="http://www.example.com/subscription_info.html">http://www.example.com/subscription_info.html</a><!-- m --><br />#<br /><br />#<br /># MaxRanges: Maximum number of Ranges in a request before<br /># returning the entire resource, or one of the special<br /># values '</span><span style="color: #00C800;">default</span><span style="color: #ff0000;">', '</span>none<span style="color: #ff0000;">' or '</span>unlimited<span style="color: #ff0000;">'.<br /># Default setting is to accept 200 Ranges.<br />#MaxRanges unlimited<br /><br />#<br /># EnableMMAP and EnableSendfile: On systems that support it, <br /># memory-mapping or the sendfile syscall may be used to deliver<br /># files. This usually improves server performance, but must<br /># be turned off when serving from networked-mounted <br /># filesystems or if support for these functions is otherwise<br /># broken on your system.<br /># Defaults: EnableMMAP On, EnableSendfile Off<br />#<br />#EnableMMAP off<br />#EnableSendfile on<br /><br />#AcceptFilter http none<br />#AcceptFilter https none<br /><br /># Supplemental configuration<br />#<br /># The configuration files in the conf/extra/ directory can be <br /># included to add extra features or to modify the default configuration of <br /># the server, or you may simply copy their contents here and change as <br /># necessary.<br /><br /># Server-pool management (MPM specific)<br />#Include conf/extra/httpd-mpm.conf<br /><br /># Multi-language error messages<br />#Include conf/extra/httpd-multilang-errordoc.conf<br /><br /># Fancy directory listings<br />Include conf/extra/httpd-autoindex.conf<br /><br /># Language settings<br />#Include conf/extra/httpd-languages.conf<br /><br /># User home directories<br />#Include conf/extra/httpd-userdir.conf<br /><br /># Real-time info on requests and configuration<br />Include conf/extra/httpd-info.conf<br /><br /># Virtual hosts<br /># Include conf/extra/httpd-vhosts.conf<br /><br /># Local access to the Apache HTTP Server Manual<br />#Include conf/extra/httpd-manual.conf<br /><br /># Distributed authoring and versioning (WebDAV)<br />#Include conf/extra/httpd-dav.conf<br /><br /># Various default settings<br />#Include conf/extra/httpd-default.conf<br /><br /># Configure mod_proxy_html to understand HTML4/XHTML1<br /><IfModule proxy_html_module><br />Include conf/extra/httpd-proxy-html.conf<br /></IfModule><br /><br /># Secure (SSL/TLS) connections<br /># Note: The following must must be present to support<br /># starting without SSL on platforms with no /dev/random equivalent<br /># but a statically compiled-in mod_ssl.<br />#<br /><IfModule ssl_module><br />#Include conf/extra/httpd-ssl.conf<br />Include conf/extra/httpd-ahssl.conf<br />SSLRandomSeed startup builtin<br />SSLRandomSeed connect builtin<br /></IfModule><br /><IfModule http2_module><br /> ProtocolsHonorOrder On<br /> Protocols h2 h2c http/1.1<br /></IfModule><br /><br /># PHP FastCGI<br />#<br /># Edit conf/extra/httpd-fcgid.conf to match your php location<br /># and uncomment the Include line below.<br />#<br />#Include conf/extra/httpd-fcgid.conf<br /><br /><IfModule lua_module><br /> AddHandler lua-script .lua<br /></IfModule><br /><br /><br /></span></div>[/code:1c5768v9] |
metodo Get | Ve a la carpeta en donde has copiado modharbour.exe y las DLLs y ejecuta modharbour.exe directamente y comprueba que funcione.
Te mostrará un mensaje salvo que te diga que le faltan DLLs |
metodo Get | Lo ejecuto directamente asi:
[code=fw:24xrf4a5]<div class="fw" id="{CB}" style="font-family: monospace;"> C:\xampp\cgi-bin>dir<br /> El volumen de la unidad C no tiene etiqueta.<br /> El número de serie del volumen es: <span style="color: #000000;">E472</span><span style="color: #000000;">-1459</span><br /><br /> Directorio de C:\xampp\cgi-bin<br /><br /><span style="color: #000000;">12</span>/<span style="color: #000000;">12</span>/<span style="color: #000000;">2022</span> <span style="color: #000000;">04</span>:<span style="color: #000000;">22</span> p. m. <DIR> .<br /><span style="color: #000000;">12</span>/<span style="color: #000000;">12</span>/<span style="color: #000000;">2022</span> <span style="color: #000000;">04</span>:<span style="color: #000000;">22</span> p. m. <DIR> ..<br /><span style="color: #000000;">12</span>/<span style="color: #000000;">12</span>/<span style="color: #000000;">2022</span> <span style="color: #000000;">04</span>:<span style="color: #000000;">13</span> p. m. <span style="color: #000000;">87</span> cgi.cgi<br /><span style="color: #000000;">06</span>/<span style="color: #000000;">12</span>/<span style="color: #000000;">2022</span> <span style="color: #000000;">04</span>:<span style="color: #000000;">26</span> a. m. <span style="color: #000000;">3.404</span><span style="color: #000000;">.288</span> libcrypto-1_1-x64.dll<br /><span style="color: #000000;">06</span>/<span style="color: #000000;">12</span>/<span style="color: #000000;">2022</span> <span style="color: #000000;">04</span>:<span style="color: #000000;">26</span> a. m. <span style="color: #000000;">1.102</span><span style="color: #000000;">.968</span> libcurl-x64.dll<br /><span style="color: #000000;">06</span>/<span style="color: #000000;">12</span>/<span style="color: #000000;">2022</span> <span style="color: #000000;">04</span>:<span style="color: #000000;">26</span> a. m. <span style="color: #000000;">682.496</span> libssl-1_1-x64.dll<br /><span style="color: #000000;">06</span>/<span style="color: #000000;">12</span>/<span style="color: #000000;">2022</span> <span style="color: #000000;">04</span>:<span style="color: #000000;">26</span> a. m. <span style="color: #000000;">6.042</span><span style="color: #000000;">.112</span> modharbour.exe<br /><span style="color: #000000;">12</span>/<span style="color: #000000;">12</span>/<span style="color: #000000;">2022</span> <span style="color: #000000;">04</span>:<span style="color: #000000;">13</span> p. m. <span style="color: #000000;">363</span> perltest.cgi<br /><span style="color: #000000;">12</span>/<span style="color: #000000;">12</span>/<span style="color: #000000;">2022</span> <span style="color: #000000;">04</span>:<span style="color: #000000;">13</span> p. m. <span style="color: #000000;">302</span> printenv.pl<br /> <span style="color: #000000;">7</span> archivos <span style="color: #000000;">11.232</span><span style="color: #000000;">.616</span> bytes<br /> <span style="color: #000000;">2</span> dirs <span style="color: #000000;">81.153</span><span style="color: #000000;">.974</span><span style="color: #000000;">.272</span> bytes libres<br /><br />C:\xampp\cgi-bin>modharbour<br /><br />Attention: <span style="color: #000000;">This</span> is modharbour CGI version and has <span style="color: #0000ff;">to</span> be executed <span style="color: #0000ff;">from</span> the <span style="color: #00C800;">server</span> as a cgi-bin, i.e.:<br /> http:<span style="color: #B900B9;">//server_address/cgi-bin/modharbour.exe?prg=test.prg (c) FiveTech Software 2012-2022</span><br /> http:<span style="color: #B900B9;">//www.fivetechsoft.com</span><br />https:<span style="color: #B900B9;">//github.com/FiveTechSoft/mod_harbour </span><br /> <br /> </div>[/code:24xrf4a5] |
metodo Get | Lo cual quiere decir que tiene todas las DLLs que necesita para funcionar
Revisa error.log y access.log en la carpeta logs y mira a ver que error reporta |
metodo Get | No he podido configurarlo, seguire trabajando como lo vengo haciendo, Que ese si me funciona sin ningun problema. |
metodo cGenprg de tget para dialogos. | El metodo que viene en la clase TGet no me funciona correctamente . ¿ Es cosa mia ( or algún cambio en las clases ) , o pasa a mas gente ? . Por cierto que tambien existe un gazapor en la declaracion del metodo New ya que aparece dos veces cVarname , se tendría que quitar la última supongo.
[code=fw:2lgglu9u]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> nRow, nCol, bSetGet, oWnd, nWidth, nHeight, cPict, bValid,;<br /> nClrFore, nClrBack, oFont, lDesign, oCursor, lPixel,;<br /> cMsg, lUpdate, bWhen, lCenter, lRight, bChanged,;<br /> lReadOnly, lPassword, lNoBorder, nHelpId,;<br /> lSpinner, bUp, bDown, bMin, bMax, bAction, cBmpName, cVarName,;<br /> cCueText, cVarName <span style="color: #000000;">)</span> CONSTRUCTOR<br /> </div>[/code:2lgglu9u]
Pongo el metodo modificado que a mi si me funciona .:
[code=fw:2lgglu9u]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">METHOD</span> cGenPrg<span style="color: #000000;">(</span> lDlgUnits<span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TGet <span style="color: #B900B9;">// cambiado</span><br /> <span style="color: #00C800;">local</span> nFactorX, nFactorY<br /> <span style="color: #00C800;">local</span> cTop, cLeft, cWidth, cHeight<br /> <span style="color: #00C800;">local</span> cCode := <span style="color: #ff0000;">""</span><br /><br /><span style="color: #00C800;">DEFAULT</span> lDlgUnits := .F.<br /><br /> nFactorX = <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> lDlgUnits, <span style="color: #000000;">4</span> / nLoWord<span style="color: #000000;">(</span> GetDlgBaseUnits<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> nFactorY = <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> lDlgUnits, <span style="color: #000000;">8</span> / nHiWord<span style="color: #000000;">(</span> GetDlgBaseUnits<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /><br /> cTop = LTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> Int<span style="color: #000000;">(</span> ::<span style="color: #000000;">nTop</span> * nFactorX <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> cLeft = LTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> Int<span style="color: #000000;">(</span> ::<span style="color: #000000;">nLeft</span> * nFactorY <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> cWidth = LTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> Int<span style="color: #000000;">(</span> ::<span style="color: #000000;">nWidth</span> * nFactorY <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> cHeight = LTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> Int<span style="color: #000000;">(</span> ::<span style="color: #000000;">nHeight</span> * nFactorX <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><br /> ::<span style="color: #000000;">CoorsUpdate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> cCode += CRLF + <span style="color: #ff0000;">" @ "</span> + cTop + <span style="color: #ff0000;">", "</span> + cLeft + ;<br /> <span style="color: #ff0000;">" GET "</span>+ ::<span style="color: #000000;">cVarName</span> +<span style="color: #ff0000;">" VAR "</span>+ <span style="color: #ff0000;">"c"</span> + <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">cVarName</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> + ;<br /> <span style="color: #ff0000;">" SIZE "</span> + cWidth + ;<br /> <span style="color: #ff0000;">", "</span> + cHeight + ;<br /> <span style="color: #ff0000;">" PIXEL OF "</span> + ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">cVarName</span> + CRLF<br /><br /><span style="color: #B900B9;">/*<br /><br /> cCode += CRLF + " @ " + Str( ::nTop, 3 ) + ", " + Str( ::nLeft, 3 ) + ;<br /> " GET " + ::cVarName + " VAR " + "c" + SubStr( ::cVarName, 2 ) + ;<br /> " SIZE " + Str( ::nWidth, 3 ) + ", " + Str( ::nHeight, 3 ) + ;<br /> " PIXEL OF " + ::oWnd:cVarName + CRLF<br /><br />*/</span><br /><br /><span style="color: #00C800;">return</span> cCode<br /> </div>[/code:2lgglu9u] |
metodo find de ado / Method find with ado | Amigos del foro:
Estoy pasando dbf a sql ... hasta ahora voy convirtiendo con exito, solo que tengo un incoveniente
Es posible buscar con el metodo find de ado mas de dos columnas?
[code=fw:kpvfg47i]<div class="fw" id="{CB}" style="font-family: monospace;">oRsCli:<span style="color: #000000;">Find</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"ruc ="</span>+cRuc+<span style="color: #ff0000;">" and ubica = "</span>+cUbica+<span style="color: #ff0000;">""</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// no funciona</span><br />oRsCli:<span style="color: #000000;">Find</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"ruc ="</span>+cRuc+<span style="color: #ff0000;">""</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// si funciona</span><br /> </div>[/code:kpvfg47i]
Friends:
Im passing from dbf to sql ... until now It's ok, but i have a problem
is it possible find on more fields with ADO?
[code=fw:kpvfg47i]<div class="fw" id="{CB}" style="font-family: monospace;">oRsCli:<span style="color: #000000;">Find</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"ruc ="</span>+cRuc+<span style="color: #ff0000;">" and ubica = "</span>+cUbica+<span style="color: #ff0000;">""</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// NOT run</span><br />oRsCli:<span style="color: #000000;">Find</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"ruc ="</span>+cRuc+<span style="color: #ff0000;">""</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// run</span><br /> </div>[/code:kpvfg47i]
Gracias
Gracias por su ayuda |
metodo find de ado / Method find with ado | Hola Artu:
Recorda que si alguno de los campos es tipo texto, deberias ponerle las comillas para que lo encuentre...
Probaste asi?
[code=fw:2qhprpqc]<div class="fw" id="{CB}" style="font-family: monospace;">oRsCli:<span style="color: #000000;">Find</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"ruc ="</span>+cRuc+<span style="color: #ff0000;">" and ubica = '"</span>+cUbica+<span style="color: #ff0000;">"'"</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// no funciona</span></div>[/code:2qhprpqc] |
metodo find de ado / Method find with ado | Efectivamente se debe formar la cadena SQL como si la estuvieras dando directamente en SQL SERVER MANAGEMENT STUDIO o algún otro, para tal efecto tendras que alternar entre " y ' (comillas dobles y tilde)para formar strings que incluyan otras strings anidadas
La string resultante final deberia verse tal como la tecleas para ejecutar el comando.
Puedes usar la funcion msgget(cmsg1,cmsg2,@variable1) para verla y editarla antes de enviarla
suponiendo que la string final esta en variable1
Saludos |
metodo find de ado / Method find with ado | Creo recordar que en ADO la función find está definida para una única columna, por eso dejé de usarla al convertir mis programas de DBF a SQL.
Yo uso el comando Filter, de la siguiente forma :
[code=fw:mzcfnu5u]<div class="fw" id="{CB}" style="font-family: monospace;">oRsCli:<span style="color: #000000;">Filter</span> := <span style="color: #ff0000;">"ruc = "</span> + cRuc + <span style="color: #ff0000;">" and ubica = "</span> + cUbica</div>[/code:mzcfnu5u]
Revisa como te indican los otros compañeros que si la variables son String debes incluir un apóstrofe ' al inicio y fin del String.
Un saludo. |
metodo find de ado / Method find with ado | Artu01
[quote:3iv5ra2e]
oRsCli: Filter : = "ruc =" + cRuc + "and locate =" + cUbica
[/quote:3iv5ra2e]
Try it this way
[code=fw:3iv5ra2e]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRsCli:<span style="color: #000000;">Filter</span> := <span style="color: #ff0000;">"[ruc] = '"</span>+cRuc+<span style="color: #ff0000;">"' and [locate] = '"</span>+cUbica+<span style="color: #ff0000;">"'"</span><br /> </div>[/code:3iv5ra2e]
Filter is faster than Find .. if you use the find method you have to rewind the recordset to the beginning .. oRsCli:MoveFirst() .. then use the find method .. as you will notice ( for clarity ) I use brackets [] to designate table fields .. and character values ( as mentioned above ) have to be surrounded with a single quote.
Rick Lipkin |
metodo find de ado / Method find with ado | Gracias amigos por sus repuestas
Con filter corre ok pero con find no corre, lei que find no acepta mas de una columna entonces
tengo duda el siguiente select que haga obtendre menos filas por la aplicacion del filtro?
Thank you guys for their responses
With filter run ok but with find not run, i read that more than one column not is accepted by find so
i have a dude the next select that do the recordset shows less rows by the effect of the filter? |
metodo find de ado / Method find with ado | Artu01
Find works basically the same way ... :Find is like a function and you have to pass the search parameters within the () .. :Find searches for the first matching record where Filter will retrieve all records that match your query.
[code=fw:19k4dpuj]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRsCli:<span style="color: #000000;">MoveFirst</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oRsCli:<span style="color: #000000;">Find</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"[ruc] = '"</span> + cRuc + <span style="color: #ff0000;">"' and [locate] = '"</span> + cUbica + <span style="color: #ff0000;">"'"</span> <span style="color: #000000;">)</span><br /> </div>[/code:19k4dpuj]
Rick Lipkin |
metro back button | I have speed up the handling of my programs with the metro back button.
This way also my old fashioned WINDOWS programs are much better to use.
I have attached on the metro back button and on the standard end button a log counter.
First tests show that after some days mainly the metro back button is used.
A second advantage is the users get used how the new metro style programs work.
Best regards,
Otto
[img:n5ej5tx0]http://www.atzwanger-software.com/fw/metrobackbutton.jpg[/img:n5ej5tx0] |
metro back button | Otto
++++1 |
metro buttons (solved) | Good morning
I am testing the metro interface,
i have compiled touch.prg and run it in fwh\samples folder , i can see the complete process
When i copy the touch.exe to my directory and the appropriate bitmaps, i can not see some of the images and at the company xbrowse , buttons have no action fired
Is there a particular dll or anything else that has to be present for this purpose ?
My freeimage.dll is the same than fwh.
Thanks for help, |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.