topic
stringlengths
1
63
text
stringlengths
1
577k
last source of rpreview
Günther, if I remember, the mini-pages are created in memory not in disk regards Marcelo
last source of rpreview
Marcelo, it seems not so! If I change in function create_minipage() closeenhmetafile(hEMF) to deleteenhmetafile(hEmf) the files are deleted at end of preview. (or getenhmetafile(cFile) not releases the handle from cFile??) Have you a new version?
last source of rpreview
Günther, the EMF are created by tprinter class, the preview only open it, Create_minipage open the emf and copy it into bmp (in memory), the problem about erase the emf can be in other place [code=fw:3n8lcewu]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">FUNCTION</span> Create_minipage<span style="color: #000000;">&#40;</span> cEmf, nWidth, nHeight <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br />   <span style="color: #00C800;">local</span> hDC1 := GetDC<span style="color: #000000;">&#40;</span> GetDesktopWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> hDC := CreateCompatibleDC<span style="color: #000000;">&#40;</span> hDC1 <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> hBmp := CreateCompatibleBitmap<span style="color: #000000;">&#40;</span> hDC1, nWidth, nHeight <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> hOldBmp := SelectObject<span style="color: #000000;">&#40;</span> hDC, hBmp <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> hEMF := GetEnhMetaFile<span style="color: #000000;">&#40;</span> cEmf <span style="color: #000000;">&#41;</span><br /><br />   Rectangle<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, nHeight, nWidth <span style="color: #000000;">&#41;</span><br /><br />   MyPlayEnhMetaFile<span style="color: #000000;">&#40;</span> hDC, hEMF, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, nHeight, nWidth <span style="color: #000000;">&#41;</span><br /><br />   CloseEnhMetafile<span style="color: #000000;">&#40;</span> hEMF <span style="color: #000000;">&#41;</span><br /><br />   SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldBmp <span style="color: #000000;">&#41;</span><br />   DeleteDC<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br /> </div>[/code:3n8lcewu] and I am sorry I did't work more in the preview, but I will try to get more time to do others improves <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> saludos Marcelo [quote="byte-one":3n8lcewu]Marcelo, it seems not so! If I change in function create_minipage() closeenhmetafile(hEMF) to deleteenhmetafile(hEmf) the files are deleted at end of preview. (or getenhmetafile(cFile) not releases the handle from cFile??) Have you a new version?[/quote:3n8lcewu]
last source of rpreview
Marcelo, I sent you also mine features for create multipages( 2x4x6x8x10) as winword preview , have you insert it on new release ?
last source of rpreview
Sorry Silvio I didn't it
last source of rpreview
I have started with a new preview with ribbonbar based on this code i will publish here when ready
last source of rpreview
[quote="Silvio.Balcony":36meb3qv]I have started with a new preview with ribbonbar based on this code i will publish here when ready[/quote:36meb3qv] Someone ask me If I..am you!!! <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Can you change your username or post your photo ? thanks
last source of rpreview
Hi, Any news? Thanks <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
last useful line in a sheet
assuming you have an A4 format sheet how can I calculate the last useful line to print ( with tprinter class) information like timestamp or page number? I try with @ 28, 0 PRINT TO oPrn TEXT TimeStamp() ; SIZE 6.90, 0.8 CM ALIGN "TL" FONT oFnt COLOR CLR_BLACK but not print any
last useful line in a sheet
Mira se ayuda: Mira se ayuda: [code=fw:22t0fpfm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// c:\fwh..\samples\SILSTAMP.PRG</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> PAD_LEFT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> PAD_RIGHT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> PAD_CENTER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">2</span><br /><br /><span style="color: #00C800;">static</span> oWnd<br /><br />MEMVAR nCopias<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;nCopias := <span style="color: #000000;">1</span> &nbsp;<span style="color: #B900B9;">// ponga en el dialogo Number of copies.</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>, <span style="color: #000000;">60</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Printing a Window"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Print me"</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> PrintMe_Copias<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// try also with oWnd:HardCopy()</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">5</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&End"</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> PrintMe_Copias<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nI<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> nI := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nCopias<br /><br />&nbsp; &nbsp; &nbsp; SYSREFRESH<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; PrintMe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> PrintMe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oPrn, oFont, oPen, aPrn, nLinha, nColuna, ResLinha, ResColuna<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cData := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, cText<br /><br />&nbsp; &nbsp;aPrn := GetPrinters<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span> aPrn <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Empty( oPrn:hDC )</span><br /><br />&nbsp; &nbsp; &nbsp; MsgStop <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No se encontró impresora"</span>, <span style="color: #ff0000;">"No se encontró impresora"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">PRINTER</span> oPrn PREVIEW <span style="color: #0000ff;">MODAL</span> <span style="color: #B900B9;">// PARA TESTAR A IMPRESSORA ANTES DE IMPRIMIR</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> EMPTY<span style="color: #000000;">&#40;</span> oPrn:<span style="color: #000000;">hDC</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span> <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"HABÍA ALGO MAL CON LA IMPRESORA"</span>, <span style="color: #ff0000;">"ENCIENDA LA IMPRESORA"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;oPrn:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cText := TimeZone<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// EL TEXTO para el preview.</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">PRINT</span> oPrn PREVIEW <span style="color: #0000ff;">MODAL</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-30</span> BOLD <span style="color: #0000ff;">OF</span> oPrn<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> PEN oPen WIDTH &nbsp;<span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oPrn<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">SetPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">SetPortrait</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ResLinha &nbsp;:= oPrn:<span style="color: #000000;">nLogPixely</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>/<span style="color: #000000;">2.54</span><br />&nbsp; &nbsp; &nbsp; ResColuna := oPrn:<span style="color: #000000;">nLogPixelx</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>/<span style="color: #000000;">2.54</span><br /><br />&nbsp; &nbsp; &nbsp; nLinha &nbsp; &nbsp;:= <span style="color: #000000;">01</span><br />&nbsp; &nbsp; &nbsp; nColuna &nbsp; := <span style="color: #000000;">10</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PAGE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">15</span>, <span style="color: #000000;">01</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> cText <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">19</span>,<span style="color: #000000;">3</span> CM <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">COLOR</span> CLR_RED<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">19</span>, <span style="color: #000000;">05</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> cText <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">19</span>,<span style="color: #000000;">3</span> CM ALIGN <span style="color: #ff0000;">"TL"</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">COLOR</span> CLR_BLACK<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> nLinha * ResLinha, &nbsp;<span style="color: #000000;">7.25</span> * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"TimeZone: "</span> + TimeZone<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span>, oFont,, CLR_BLACK,, PAD_CENTER <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDPAGE</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDPRINT</span><br /><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> TimeZone<span style="color: #000000;">&#40;</span> dData <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cDateTimeZone,aTimeStamp,cTzd<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Default</span> dData:=Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;aTimeStamp := hb_atokens<span style="color: #000000;">&#40;</span>tip_timestamp<span style="color: #000000;">&#40;</span>dData<span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">" "</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cTzd:=aTail<span style="color: #000000;">&#40;</span>aTimeStamp<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cTzd:=<span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>cTzd,Len<span style="color: #000000;">&#40;</span>cTzd<span style="color: #000000;">&#41;</span><span style="color: #000000;">-2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">":"</span>+<span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>cTzd,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cDateTimeZone:=StrZero<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">Year</span><span style="color: #000000;">&#40;</span>dData<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"-"</span>+StrZero<span style="color: #000000;">&#40;</span>Month<span style="color: #000000;">&#40;</span>dData<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"-"</span>+StrZero<span style="color: #000000;">&#40;</span>Day<span style="color: #000000;">&#40;</span>dData<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"T"</span>+Time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+cTzd<br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span> cDateTimeZone <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// fin / end</span><br />&nbsp;</div>[/code:22t0fpfm] Regards, saludos.
last useful line in a sheet
[code=fw:3gruo3h3]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oPrn, oFont<br /><br />   <span style="color: #00C800;">PRINT</span> oPrn PREVIEW<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span> <span style="color: #0000ff;">OF</span> oPrn<br />   <span style="color: #0000ff;">PAGE</span><br />   @ <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> HB_DateTime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">SIZE</span> oPrn:<span style="color: #000000;">PageWidth</span><span style="color: #000000;">&#40;</span>  <span style="color: #ff0000;">"INCHES"</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1.5</span>, ;<br />           oPrn:<span style="color: #000000;">PageHeight</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"INCHES"</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1.5</span>  ;<br />           INCHES ;<br />      ALIGN <span style="color: #ff0000;">"BR"</span> <span style="color: #0000ff;">FONT</span> oFont<br />   <span style="color: #0000ff;">ENDPAGE</span><br />   <span style="color: #0000ff;">ENDPRINT</span><br /><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3gruo3h3] [url=https&#58;//imageshack&#46;com/i/pminmM9sp:3gruo3h3][img:3gruo3h3]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq70/922/inmM9s&#46;png[/img:3gruo3h3][/url:3gruo3h3]
last useful line in a sheet
[quote="nageswaragunupudi":316y7ofw][code=fw:316y7ofw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oPrn, oFont<br /><br />   <span style="color: #00C800;">PRINT</span> oPrn PREVIEW<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span> <span style="color: #0000ff;">OF</span> oPrn<br />   <span style="color: #0000ff;">PAGE</span><br />   @ <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> HB_DateTime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">SIZE</span> oPrn:<span style="color: #000000;">PageWidth</span><span style="color: #000000;">&#40;</span>  <span style="color: #ff0000;">"INCHES"</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1.5</span>, ;<br />           oPrn:<span style="color: #000000;">PageHeight</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"INCHES"</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1.5</span>  ;<br />           INCHES ;<br />      ALIGN <span style="color: #ff0000;">"BR"</span> <span style="color: #0000ff;">FONT</span> oFont<br />   <span style="color: #0000ff;">ENDPAGE</span><br />   <span style="color: #0000ff;">ENDPRINT</span><br /><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:316y7ofw] [url=https&#58;//imageshack&#46;com/i/pminmM9sp:316y7ofw][img:316y7ofw]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq70/922/inmM9s&#46;png[/img:316y7ofw][/url:316y7ofw][/quote:316y7ofw] Nages, run ok as you can see here [img:316y7ofw]https&#58;//i&#46;postimg&#46;cc/XJ7PfNJs/k&#46;png[/img:316y7ofw] How could I calculate any page numbers and page total?
last useful line in a sheet
[quote="Silvio.Falconi":16j7s33i][quote="nageswaragunupudi":16j7s33i][code=fw:16j7s33i]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oPrn, oFont<br /><br />   <span style="color: #00C800;">PRINT</span> oPrn PREVIEW<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span> <span style="color: #0000ff;">OF</span> oPrn<br />   <span style="color: #0000ff;">PAGE</span><br />   @ <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> HB_DateTime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">SIZE</span> oPrn:<span style="color: #000000;">PageWidth</span><span style="color: #000000;">&#40;</span>  <span style="color: #ff0000;">"INCHES"</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1.5</span>, ;<br />           oPrn:<span style="color: #000000;">PageHeight</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"INCHES"</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1.5</span>  ;<br />           INCHES ;<br />      ALIGN <span style="color: #ff0000;">"BR"</span> <span style="color: #0000ff;">FONT</span> oFont<br />   <span style="color: #0000ff;">ENDPAGE</span><br />   <span style="color: #0000ff;">ENDPRINT</span><br /><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:16j7s33i] [/quote:16j7s33i][/quote:16j7s33i] Nages, run ok as you can see here [img:16j7s33i]https&#58;//i&#46;postimg&#46;cc/XJ7PfNJs/k&#46;png[/img:16j7s33i] How could I calculate any page numbers and page total?
last xharbour behavior
hi, after compile fwh27 july build with last cvs, (30/10), my appl works, but open e close an cmd prompt quick, this is right? thanks <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
last xharbour behavior
Norberto, > but open e close an cmd prompt quick, this is right? What do you mean ? Please explain it,
last xharbour behavior
Antonio, when i call the aplication, an fast dos prompt is open and closed.but all runs ok. only guess this strange because this dont ocour in version more old;
last xharbour behavior
Replace gtwin.lib with gtgui.lib. EMG
last xharbour compile error
Hi I use new xharbour compile xbrowse.prg(1312/1512...) and get error message Error E0047 Code block contains both macro and declared symbol references [quote:115zfqhd] xHarbour 1.2.3 Intl. (SimpLex) (Build 20161001) Copyright 1999-2015, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Compiling '.\SOURCE32\Fwh_LIB\xBrowse-1312-wang.prg'... 1 error .\SOURCE32\Fwh_LIB\xBrowse-1312-wang.prg(5266) Error E0047 Code block contains both macro and declared symbol references [/quote:115zfqhd] anyone suggestion? Thanks a lot.
last xharbour compile error
Can I see a simple and compilable PRG showing the error, please? I can't reproduce it here EMG
last xharbour compile error
[quote="Enrico Maria Giordano":1ax1x24i]Can I see a simple and compilable PRG showing the error, please? I can't reproduce it here EMG[/quote:1ax1x24i] this is code from xbrowse.prg [code=fw:1ax1x24i]<div class="fw" id="{CB}" style="font-family: monospace;"><br />nNum = AScan<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span>| o | !Empty<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">cOrder</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> =><span style="color: #000000;">5266</span><br />oTree &nbsp; &nbsp; &nbsp; := SummaryDataAsTree<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bSkip</span>, <span style="color: #000000;">&#123;</span> |nRow| nRow > ::<span style="color: #000000;">nLen</span> <span style="color: #000000;">&#125;</span>, aBlocks, ::<span style="color: #000000;">bBookMark</span> <span style="color: #000000;">&#41;</span> =><span style="color: #000000;">5387</span><br />bOnSkip &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || Eval<span style="color: #000000;">&#40;</span> bBookMark, ::<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">cargo</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> =><span style="color: #000000;">5388</span><br /><span style="color: #00C800;">DEFAULT</span> bOnSkip &nbsp; := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span> =><span style="color: #000000;">5394</span> <br />......more<br />&nbsp;</div>[/code:1ax1x24i] if I use old xharbour-20160423 bcc70 no problem.
last xharbour compile error
This compiles just fine here: [code=fw:b20lruvb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oBrw := <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> aBlocks := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oDummy, bBookMark<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> nNum &nbsp; &nbsp;:= AScan<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span>| o | !Empty<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">cOrder</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oTree &nbsp; := SummaryDataAsTree<span style="color: #000000;">&#40;</span> oDummy:<span style="color: #000000;">bSkip</span>, <span style="color: #000000;">&#123;</span> |nRow| nRow > oDummy:<span style="color: #000000;">nLen</span> <span style="color: #000000;">&#125;</span>, aBlocks, oDummy:<span style="color: #000000;">bBookMark</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> bOnSkip := <span style="color: #000000;">&#123;</span> || Eval<span style="color: #000000;">&#40;</span> bBookMark, oDummy:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">cargo</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">DEFAULT</span> bOnSkip &nbsp; := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; ? nNum, oTree, bOnSkip<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:b20lruvb] EMG
last xharbour compile error
[quote="Enrico Maria Giordano":1dsnp8u4]This compiles just fine here: [code=fw:1dsnp8u4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">LOCAL</span> oBrw := <span style="color: #00C800;">NIL</span><br /><br />    <span style="color: #00C800;">LOCAL</span> aBlocks := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />    <span style="color: #00C800;">LOCAL</span> oDummy, bBookMark<br /><br />    <span style="color: #00C800;">LOCAL</span> nNum    := AScan<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span>| o | !Empty<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">cOrder</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">LOCAL</span> oTree   := SummaryDataAsTree<span style="color: #000000;">&#40;</span> oDummy:<span style="color: #000000;">bSkip</span>, <span style="color: #000000;">&#123;</span> |nRow| nRow > oDummy:<span style="color: #000000;">nLen</span> <span style="color: #000000;">&#125;</span>, aBlocks, oDummy:<span style="color: #000000;">bBookMark</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">LOCAL</span> bOnSkip := <span style="color: #000000;">&#123;</span> || Eval<span style="color: #000000;">&#40;</span> bBookMark, oDummy:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">cargo</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />    <span style="color: #00C800;">DEFAULT</span> bOnSkip   := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span><br /><br />    ? nNum, oTree, bOnSkip<br /><br />    <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:1dsnp8u4] EMG[/quote:1dsnp8u4] ok, I remove all and setup again. Thank you.
last xharbour compile error
Hi EMG I use last xharbour xhb10162_bcc70, when I buildx fwh\sample [quote:183k2p38] Compiling... xHarbour 1.2.3 Intl. (SimpLex) (Build 20161004) Copyright 1999-2016, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Compiling 'maria01.prg' and generating preprocessed output to 'maria01.ppo'... Generating C source output to 'maria01.c'... Done. Lines 53, Functions/Procedures 2, pCodes 215 Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc. maria01.c: Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc. * Application successfully built * [/quote:183k2p38] I got this run error [quote:183k2p38] Module: '.\source\classes\ACTIVEX.PRG' was compiled into PCODE version: 0, this version of xHarbour expects versio: 10 [/quote:183k2p38]
last xharbour compile error
It looks like a problem with the compiled FWH modules. I tried to recompile them and the problem went away. EMG
last xharbour compile error
[quote="Enrico Maria Giordano":o1c23qz2]It looks like a problem with the compiled FWH modules. I tried to recompile them and the problem went away. EMG[/quote:o1c23qz2] OK. Thank you. I just to go back xharbour xhb10159 for bcc70/bcc72, compile and run EXE work fine.
last xharbour compile error
Can you try with the previous FWH release? EMG
last xharbour compile error
[quote="Enrico Maria Giordano":ku37jucl]Can you try with the previous FWH release? EMG[/quote:ku37jucl] I will test it, Please wait.... I try to make TMySQL.prg to LIB, I find fwh and xharbour include folder hbcompat.ch need to add this [code=fw:ku37jucl]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Line <span style="color: #000000;">127</span> #xtranslate hb_SToD<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#91;</span><x><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=> SToD<span style="color: #000000;">&#40;</span> <x> <span style="color: #000000;">&#41;</span> <br />...<br />Line <span style="color: #000000;">405</span> #xtranslate SToD<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#91;</span><x><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; => hb_SToD<span style="color: #000000;">&#40;</span> <x> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:ku37jucl]
last xharbour compile error
So, should I add those two xtranslate commands? EMG
last xharbour compile error
[quote="Enrico Maria Giordano":3drlaz9x]So, should I add those two xtranslate commands? EMG[/quote:3drlaz9x] Yes, Thanks a lot.
last xharbour compile error
Ok, I'll do it. Antonio, you shold remove hbcompat.ch from FWH because it's already in xHarbour. EMG
last xharbour compile error
Done: [code=fw:33kjlj1u]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">2016</span><span style="color: #000000;">-10</span><span style="color: #000000;">-08</span> <span style="color: #000000;">19</span>:<span style="color: #000000;">05</span> UTC<span style="color: #000000;">+0200</span> Enrico Maria Giordano <e.m.giordano@emagsoftware.it><br />&nbsp; * include/hbcompat.ch<br />&nbsp; &nbsp; + added translation rules <span style="color: #00C800;">for</span> hb_SToD<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> and SToD<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:33kjlj1u] EMG
last xharbour compile error
[quote="Enrico Maria Giordano":387ve4tm]Done: [code=fw:387ve4tm]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">2016</span><span style="color: #000000;">-10</span><span style="color: #000000;">-08</span> <span style="color: #000000;">19</span>:<span style="color: #000000;">05</span> UTC<span style="color: #000000;">+0200</span> Enrico Maria Giordano <e.m.giordano@emagsoftware.it><br />  * include/hbcompat.ch<br />    + added translation rules <span style="color: #00C800;">for</span> hb_SToD<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> and SToD<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:387ve4tm] EMG[/quote:387ve4tm] I modify hbcompat.ch and add #include "hbcompat.ch" in TMySQL.prg work fine. New version not add #include "hbcompat.ch"
last xharbour compile error
[quote="richard-service":2jtogrg5]Hi EMG I use last xharbour xhb10162_bcc70, when I buildx fwh\sample [quote:2jtogrg5] Compiling... xHarbour 1.2.3 Intl. (SimpLex) (Build 20161004) Copyright 1999-2016, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Compiling 'maria01.prg' and generating preprocessed output to 'maria01.ppo'... Generating C source output to 'maria01.c'... Done. Lines 53, Functions/Procedures 2, pCodes 215 Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc. maria01.c: Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc. * Application successfully built * [/quote:2jtogrg5] I got this run error [quote:2jtogrg5] Module: '.\source\classes\ACTIVEX.PRG' was compiled into PCODE version: 0, this version of xHarbour expects versio: 10 [/quote:2jtogrg5][/quote:2jtogrg5] I use fwh1512 and my friend fwh16xx same as PCODE problem when xhb10162_bcc70/bcc72
last xharbour compile error
As I already said, FWH has to be recompiled using latest xHarbour. Otherwise you are forced to stick with the old xHarbour version. EMG
last xharbour compile error
[quote="Enrico Maria Giordano":3no43t1x]As I already said, FWH has to be recompiled using latest xHarbour. Otherwise you are forced to stick with the old xHarbour version. EMG[/quote:3no43t1x] I see.
last xharbour compile error
FWH does not include hbcompat.ch in any of its modules. This is for information.
last xharbour compile error
Ok, but it is in the include directory. It has to be removed. And what is worst, it's a very old version. EMG
last xharbour compile error
I just found that the following FWH modules do include hbcompat.ch: [code=fw:2lw9yp9l]<div class="fw" id="{CB}" style="font-family: monospace;">database.prg<br />valtostr.prg</div>[/code:2lw9yp9l] EMG
last xharbour compile error
[quote="Enrico Maria Giordano":luliar84]I just found that the following FWH modules do include hbcompat.ch: [code=fw:luliar84]<div class="fw" id="{CB}" style="font-family: monospace;">database.prg<br />valtostr.prg</div>[/code:luliar84] EMG[/quote:luliar84] I test xharbour->\xhb10162_con\xharbour\contrib\MySQL folder, TMySQL.prg not include hbcompat.ch so when make EXE, appear Error message .... 'HB_STOD' , ' HB_SYMBOL_UNUSED' add hpcompat.ch include and fix hpcompat.ch HB_SToD , no problem.
last xharbour compile error
[quote="Enrico Maria Giordano":2s3l589r]As I already said, FWH has to be recompiled using latest xHarbour. Otherwise you are forced to stick with the old xHarbour version. EMG[/quote:2s3l589r] Hold on! It could be a bug. I'm waiting for a response from Luiz... EMG
last xharbour compile error
[quote="Enrico Maria Giordano":2xen2ef6][quote="Enrico Maria Giordano":2xen2ef6]As I already said, FWH has to be recompiled using latest xHarbour. Otherwise you are forced to stick with the old xHarbour version. EMG[/quote:2xen2ef6] Hold on! It could be a bug. I'm waiting for a response from Luiz... EMG[/quote:2xen2ef6] OK.....
last xharbour compile error
[quote="Enrico Maria Giordano":k234mnlh]I just found that the following FWH modules do include hbcompat.ch: [code=fw:k234mnlh]<div class="fw" id="{CB}" style="font-family: monospace;">database.prg<br />valtostr.prg</div>[/code:k234mnlh] EMG[/quote:k234mnlh] Myabe FWH include hbcompat.ch need to add two codes.
last xharbour compile error
Dear EMG, I found these from TMySQL.prg [code=fw:1t2yyeez]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">SWITCH</span> aField<span style="color: #000000;">&#91;</span>MYSQL_FS_TYPE<span style="color: #000000;">&#93;</span><br />               <span style="color: #00C800;">case</span> MYSQL_TYPE_STRING     <br />               <span style="color: #00C800;">case</span> MYSQL_TYPE_VAR_STRING <br />.....<br /><span style="color: #00C800;">otherwise</span><br />                    aRow<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> := <span style="color: #ff0000;">""</span><br />            endswitch  <br /> </div>[/code:1t2yyeez] I try to add hbcompat.ch file( from FWH or xharbour ) and search it command [code=fw:1t2yyeez]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/* SWITCH ... ; case ... ; DEFAULT ; ... ; END */</span><br />   #xcommand <span style="color: #00C800;">DEFAULT</span> => <span style="color: #00C800;">OTHERWISE</span><br />...<br /><span style="color: #B900B9;">/* Some statement endings */</span><br />   #xcommand ENDSEQUENCE => END<br />   #xcommand ENDSWITCH => END<br />   #xcommand END <span style="color: #00C800;">SWITCH</span> => END<br />   #xcommand ENDWITH => END<br /> </div>[/code:1t2yyeez] I compile it and still got error message [quote:1t2yyeez] source\tmysq.prg(945) Error E0030 Syntax error: "syntax error at 'OTHERWISE'" source\tmysql.prg(949) Error E0010 ENDIF does not match IF [/quote:1t2yyeez] If I "SWITCH" change to "DO CASE ...Otherwise ENDCASE" work fine. anyone good idea?
last xharbour compile error
You can't use switch with otherwise. This compiles fine here: [code=fw:1lx4wffn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> aField := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> i := <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> aRow<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">SWITCH</span> aField<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aRow<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; endswitch<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:1lx4wffn] EMG
last xharbour compile error
No more PCODE problem after this changelog: [code=fw:8bt59awc]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">2016</span><span style="color: #000000;">-10</span><span style="color: #000000;">-10</span> <span style="color: #000000;">22</span>:<span style="color: #000000;">05</span> UTC<span style="color: #000000;">-0300</span> Luiz Rafael Culik <luiz@xharbour.com.br></div>[/code:8bt59awc] <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
latest Harbour build
Hello, When will Fivetech update the Harbour build?. Thank you.
latest version of xHarbour.org
Hi enrico. In the page xHarbour.org the link: xHarbour Binaries for Borland C + + 5.8 NO provides the latest version of xHarbour.org Is that right? regards
latest version of xHarbour.org
[url:1dcfahn2]http&#58;//code&#46;google&#46;com/p/harbour-and-xharbour-builds/downloads/list[/url:1dcfahn2]
latest version of xHarbour.org
[quote="devtuxtla":1x8zo5aw]Hi enrico. In the page xHarbour.org the link: xHarbour Binaries for Borland C + + 5.8 NO provides the latest version of xHarbour.org Is that right? regards[/quote:1x8zo5aw] Yes, sorry. Official xHarbour release is too late... <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
latest version xHarbour
Please, latest version xHarbour for download?
latest version xHarbour
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=186129">viewtopic.php?p=186129</a><!-- l -->
latest version xHarbour
thanks
launching and waiting for closing excel
Hello, Some days ago Driessen posted "Qestion about shellexecute" , regarding closing a aplication which was launched from the FW aplication (Shellexcute , TOleAuto() or CreateObject) In many cases we want that the use closes this aplication , so FW aplication should be disabled till the user closes the other aplication. Driessen proposed : [code=fw:3bjcfpnz]<div class="fw" id="{CB}" style="font-family: monospace;"><br />ShellExecute<span style="color: #000000;">&#40;</span><span style="color: #00C800;">nil</span>,<span style="color: #ff0000;">"Open"</span>,DOCUMENT<span style="color: #000000;">&#41;</span><br />SYSWAIT<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> cRet<br />   cRet := .F.<br />   hFile := FOPEN<span style="color: #000000;">&#40;</span>DOCUMENT,FO_READWRITE + FO_EXCLUSIVE<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">IF</span> FERROR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <> <span style="color: #000000;">0</span><br />      cRet := .T.<br />   <span style="color: #00C800;">ELSE</span><br />      FCLOSE<span style="color: #000000;">&#40;</span>hFile<span style="color: #000000;">&#41;</span><br />      EXIT<br />   <span style="color: #00C800;">ENDIF</span><br />   SYSREFRESH<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   SYSWAIT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0.5</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDDO</span><br /> </div>[/code:3bjcfpnz] BUT , THIS DOESN'T WORK IN A MDI ENVIRONNEMENT ! I have found a good solution , using a dialog to start the other aplication with a timer. : [code=fw:3bjcfpnz]<div class="fw" id="{CB}" style="font-family: monospace;"><br />PROC TechnFich<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*****************<br /><span style="color: #00C800;">LOCAL</span> oDlg , txt , oBut<br /><span style="color: #00C800;">LOCAL</span> lOk := .T.<br /><span style="color: #00C800;">LOCAL</span> cFile := <span style="color: #ff0000;">"Test.xls"</span><br />Txt := <span style="color: #ff0000;">"Excel will be launched with Test.xls . You have to close excel before the aplication will continue. This dialog will close automatically"</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">400</span>  <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Launching and closing excel"</span> <span style="color: #0000ff;">PIXEL</span><br />@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> txt <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>,<span style="color: #000000;">60</span> <span style="color: #0000ff;">PIXEL</span><br />@ <span style="color: #000000;">60</span>,<span style="color: #000000;">80</span> <span style="color: #0000ff;">BUTTON</span> oBut <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Ok"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">ACTION</span> Techn_Fich<span style="color: #000000;">&#40;</span>oDlg , cFile, oBut , @lOk<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">PIXEL</span><br /><br />DlgDisEnable<span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">VALID</span> lOk  <span style="color: #B900B9;">// ON INIT EVAL(oBut:bAction) , with this the dialog is executed without the user has to click on the ok button</span><br />DlgDisEnable<span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span><br />******************************************************************<br />PROC Techn_Fich<span style="color: #000000;">&#40;</span>oDlg , cFile , oBut , lOk<span style="color: #000000;">&#41;</span><br />*************************************<br /><span style="color: #00C800;">LOCAL</span> oSheed , oWorkBook , n <br /><span style="color: #00C800;">LOCAL</span> hWnd , cCaption<br /><span style="color: #00C800;">LOCAL</span>  oWin  , oTimer<br />lOk := .F.<br />oBut:<span style="color: #000000;">DisAble</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">TRY</span><br />    <span style="color: #B900B9;">//oExcel := CreateObject( "Excel.Application" ) </span><br />    oExcel := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Excel.Application"</span> <span style="color: #000000;">&#41;</span><br />    oWorkBook := oExcel:<span style="color: #000000;">WorkBooks</span>:<span style="color: #000000;">open</span><span style="color: #000000;">&#40;</span>cFile<span style="color: #000000;">&#41;</span><br />CATCH<br />  oExcel := <span style="color: #00C800;">nil</span><br />END<br /><span style="color: #00C800;">IF</span> ! IsNil<span style="color: #000000;">&#40;</span>oExcel<span style="color: #000000;">&#41;</span><br />    oSheed := oExcel:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ActiveSheet"</span> <span style="color: #000000;">&#41;</span><br />    oExcel:<span style="color: #000000;">Visible</span> := .T.<br />    oWin := oExcel:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ActiveWindow"</span> <span style="color: #000000;">&#41;</span><br />    cCaption := oWin:<span style="color: #000000;">Caption</span><br />    <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">timer</span> oTimer <span style="color: #0000ff;">interval</span> <span style="color: #000000;">500</span> <span style="color: #0000ff;">of</span> oDlg    ;<br />    <span style="color: #0000ff;">action</span> <span style="color: #000000;">&#40;</span>IIF<span style="color: #000000;">&#40;</span>IsNil<span style="color: #000000;">&#40;</span>hWnd := FindWnd<span style="color: #000000;">&#40;</span>cCaption<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> , <span style="color: #000000;">&#40;</span>oTimer:<span style="color: #000000;">DeActivate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> , oDlg:<span style="color: #000000;">bValid</span> := <span style="color: #000000;">&#123;</span>||.T.<span style="color: #000000;">&#125;</span> , oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> , oExcel := <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> , <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// WindowTopMost ???</span><br /> <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">timer</span> oTimer<br />END<br /><br /><span style="color: #00C800;">RETURN</span><br />*****************************************<br />**************************************************************************************<br />PROC DlgDisEnable<span style="color: #000000;">&#40;</span>lMOde<span style="color: #000000;">&#41;</span><br />************************<br /><span style="color: #00C800;">LOCAL</span> el<br /><span style="color: #00C800;">LOCAL</span> aWin , aDlg<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span><br /><span style="color: #00C800;">DEFAULT</span> lMode := .F. <span style="color: #B900B9;">// Disable</span><br /><span style="color: #00C800;">IF</span> ! lMode<br />    oWnd:<span style="color: #000000;">oMenu</span>:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />    oWnd:<span style="color: #000000;">oMenu</span>:<span style="color: #000000;">Enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />END<br />aWin := GetAllWin<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">FOR</span> EACH el IN aWin<br />    <span style="color: #00C800;">IF</span> ValType<span style="color: #000000;">&#40;</span> el <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"O"</span> .and. Upper<span style="color: #000000;">&#40;</span> el:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"TDIALOG"</span> .AND. ! EMPTY<span style="color: #000000;">&#40;</span>el:<span style="color: #000000;">cTitle</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// .and. o:cTitle == cNonModalTitle </span><br />        AADD<span style="color: #000000;">&#40;</span>aDlg,el<span style="color: #000000;">&#41;</span><br />    END<br /><span style="color: #00C800;">NEXT</span><br /><span style="color: #00C800;">FOR</span> EACH el In aDlg<br />    <span style="color: #00C800;">IF</span> lMode<br />        el:<span style="color: #000000;">enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">ELSE</span><br />        el:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    end<br /><span style="color: #00C800;">NEXT</span><br /><span style="color: #00C800;">RETURN</span><br />*******************************************************************************<br /><span style="color: #B900B9;">// Uit <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=1346&start=0&postdays=0&postorder=asc&highlight=findwindow%2A">http://fivetechsoft.com/forums/viewtopi ... dwindow%2A</a><!-- m --></span><br /><span style="color: #00D7D7;">#define</span> GW_HWNDFIRST <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> GW_HWNDLAST  <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> GW_HWNDNEXT  <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> GW_HWNDPREV  <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> GW_OWNER     <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> GW_CHILD     <span style="color: #000000;">5</span><br /><br /><span style="color: #00C800;">FUNCTION</span> FINDWND<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> hWnd := GETWINDOW<span style="color: #000000;">&#40;</span> GETDESKTOPWINDOW<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, GW_CHILD <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">WHILE</span> hWnd != <span style="color: #000000;">0</span><br />    <span style="color: #00C800;">IF</span> UPPER<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> $ UPPER<span style="color: #000000;">&#40;</span> GETWINDOWTEXT<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">RETURN</span> hWnd<br />    <span style="color: #00C800;">ENDIF</span><br /><br />    hWnd = GETWINDOW<span style="color: #000000;">&#40;</span> hWnd, GW_HWNDNEXT <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDDO</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><br /> </div>[/code:3bjcfpnz]
launching and waiting for closing excel
Frank, Thanks for sharing it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
lector codigo de barras y dialogo
Estimados, necesito que me den una mano, he tratado de hacer algo y no lo "veo".. como hacer.. el tema es el siguiente.. como hay en ciertos locales de atencion de publico, una persona se va acercar a un pc que tiene una pistola de codigo bidireccional, para leer cedulas de indentidad con formato PDF417 o QR, la idea es tener un campo Get, que capture el dato, que me de de forma automatica el enter, para evaluar el dato recibido, entregar un comprobante de ingreso de registro y el get, se quede en blanco esperando a otra persona.. la pistola no es automatica, es como pistola.. tengo esto.. pero no me resulta, ya que el enter automatico no se como llamarlo, luego de pistolear la cedula. Function Carga_Lector(cEmpresa,cUsuario) Local cGet LOCAL oGet Local oBtns:= Array( 2 ) Local oBmp,oDlg1,oFont1 Local aCampos,aValues,aWhere LOCAL lAceptar := .F. Local Dato:=" " Local Rut:=" " cGet:=Space(70) Define Font oFont1 Name "Tahoma" Size 0,-11 Bold DEFINE DIALOG oDlg1 RESOURCE "Captura_Barra" REDEFINE GET cGet PICTURE "@!" ID 1000 OF oDlg1 Valid(Leercodigo(@cGet,odlg1)) UPDATE FONT oFont1 COLOR Rgb( 064, 0, 0 ), Rgb(255,255,200) ACTIVATE DIALOG oDlg1 CENTERED **** si no coloco esto no me resulta.. y la idea es no tener estos botones, si no que con solo pistolear el valid, lo procese REDEFINE BUTTONBMP oBtns[1] ID 201 OF oDlg1 PROMPT "&Grabar" ; ACTION ( lAceptar := .T., oDlg1:End() ) BITMAP "Grabar" TEXTRIGHT REDEFINE BUTTONBMP oBtns[2] ID 202 OF oDlg1 PROMPT "&Salir"; ACTION ( oDlg1:End() ) BITMAP "Cancelar" TEXTRIGHT cancel ACTIVATE DIALOG oDlg30 CENTERED IF lAceptar == .T. Endif Return Nil Function LeerCodigo(cGet,oDlg1) Local Dato:=" " Local Rut:=" " Dato:=substr(cGet,1,5) If "HTTPS" = Alltrim(Dato) MsgInfo("rut nuevo") Rut:=Substr(cGet,53,8)+"-"+Substr(cGet,62,1) MsgInfo(rut) cGet:=Space(70) return .t. Else Msginfo("no carga") cGet:=Space(70) Return .f. Endif Return .f.
lector codigo de barras y dialogo
Amigo, normalmente o ENTER já é executado automaticamente ao ler um código de barras com um leitor.
lector codigo de barras y dialogo
Si, habitualmente las pistolas de codigo de barras en su lectura, suelen añadir un INTRO al final, pero es posible que no ( recuerdo hace tiempo que encontré un modelo que era configurable ) Si necesitas que en el VALID te haga un enter tambien, puedes probar esto [code=fw:se81umg7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGetC <span style="color: #0000ff;">VAR</span> cGet <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">1000</span> <span style="color: #0000ff;">OF</span> oDlg1 ;<br />&nbsp; &nbsp;<span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span>Leercodigo<span style="color: #000000;">&#40;</span>@cGet,odlg1<span style="color: #000000;">&#41;</span>, PostMessage<span style="color: #000000;">&#40;</span> oGetC:<span style="color: #000000;">hWnd</span>, WM_KEYDOWN, VK_RETURN <span style="color: #000000;">&#41;</span>, .T. <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;<span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">COLOR</span> Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">064</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, Rgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">200</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:se81umg7]
lector codigo de barras y dialogo
busca en el manual del dispositivo, y configuralo para que te de el enter automatico. generalmente esta en la parte de SUFFIX MODE, lees el codigo de barra con el mismo aparato , algo que te indique como Add CR Suffix y listo!! Saludos. PD. Puede variar según marca y modelo del lector.
lector codigo de barras y dialogo
Estimado AMigo. Vamos por partes, en mi pais leer el codigo PDF417 o QR si es de Costa Rica, en ambos codigos la informacion supera los 700 k, e si es algo parecido a lo que te meciono un get no te guardara esa informacion , pues es mucha data, ademas en algunos ocaciones y paises esta datos demograficos esta encriptados. Por otro lado asumamos que no es asi (de ser dejame saber si soy de CR). Los lectores de barras 2D la mayoria traen un manual pequeño con una serie de codigos de barra 1D es la manera que puedes configuralo Es simple puedes configurarlo que sean leidos desde un puerto COM o que emule el teclado que se lo que la mayoria hace y viene por omision por ahi podras empezar. Ahora cofigurarlos es simple, son tres pasos, codigo de barra para entrar al SETUP 2 opcion que deseas activar o desactivar y 3 seria fianalizar la setup.. asi que todos los que he usado y uso desde los chinos hasta americanos trabajan por ahi. SUERTE. Oscar Chacon. Busmatic de Costa Rica. <!-- w --><a class="postlink" href="http://WWW.SITUCR.COM">WWW.SITUCR.COM</a><!-- w -->
lector codigo de barras y dialogo
Estimados, aca el resultado del escaneo PDF417 [b:1uvguwgk]108276420[/b:1uvguwgk]11187030 CORTSCHL170829A02451480611PC1*d´":]k´fRgebPp´hDbtmñy"frWnUl2yFvPB4O¿;Ör &|$¨x62e(¿SJZ8:35 23-04-2018l7y1IRA]°DW8:35 23-04-2018Gp´g*Ri9cx¨Mm0iBqv*#cbydñx:EABCDEFGH IJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrst uvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklm QR httpsÑ--portal.sidiv.registrocivil.cl-docstat us_RUN¿[b:1uvguwgk]10827642'0[/b:1uvguwgk]/type¿CEDULA/serial¿51293456 2/mrz¿512934562167082942708296 cuando escaneo, efectivamente, me de el salto de linea o enter, bueno, esto debo llevarlo a un get, para que me pueda cargar el dato que corresponde a la identificación del usuario, asi lo reviso en una base de datos y evaluó su condición. y todo esto en un ciclo repetitivo.. de leer y leer datos, hasta dar escape..
lector de codigo de barras com ayuda urgente
Un saludo al foro,, alguien tiene un programa lea un codigo de barras y se quede en el campo conforme a su cGet que tiene el control en la aplicacion como lo hace los lectores para teclado ya que es automatico. el lector que tengo es un symbol ls 5800 rs-232c serial y he probado ejemplos que hay en este foro para verificar la lectura pero no pasa nada. Este ejemplo lo tome como referencia pero quiero que al leer el codigo de barra le dato o valor se quede en el cGet de mi dialogo. Alguien que tenga algo hecho le agradecere que me apoye con su codigo. Saludos **************** * bajado del Foro **************** FUNCTION abrirport LOCAL IdPort,cDcb,nError IdPort := OpenComm("COM1",1024,1024) IF IdPort <= 0 nError = GetCommError( IdPort) MsgInfo( "Error al abrir: " + Str( nError ) ) ELSE MsgRun("Puerto abierto como " + STR(IdPort)) ENDIF IF ! BuildCommDcb("COM1"+":9600,e,8,1" , @cDcb) nError = GetCommError( IdPort) MsgInfo( "Error al Configurar: " + Str( nError ) ) RETURN 0 ELSE MsgRun("Puerto Configurado") ENDIF IF ! SetCommState( IdPort, cDcb ) nError = GetCommError( IdPort) MsgInfo( "Error al setear: " + Str( nError ) ) RETURN 0 ELSE MsgRun("Puerto Seteado") ENDIF leer_bloque() if ! CloseComm() nError = GetCommError( "COM1" ) MsgInfo( "Error cerrando puerto: " + Str( nError ) ) endif QUIT RETURN IdPort FUNCTION leer_bloque() *- for n = 1 to Len( cBuffer ) MsgInfo( Asc( SubStr( cBuffer, n, 1 ) ) ) next *- MsgInfo( "Proceda a leer ahora" ) nComm:= OpenComm("COM1" , 1024,128) cBuffer:=Space(702) nBytes := ReadComm (nComm,@cBuffer) msginfo(cBuffer) RETURN
lectura CIF o lectura de contenido Web
Saludo Necesito leer los datos desde este formulario, agradecido por sus recomendaciones. <!-- m --><a class="postlink" href="https://www.einforma.com/servlet/app/prod/ETIQUETA_EMPRESA/nif/A29206075">https://www.einforma.com/servlet/app/pr ... /A29206075</a><!-- m -->
lectura CIF o lectura de contenido Web
Hola no se si te servirá. Pero nosotros cuando necesitamos "bajarnos" una hoja de una web, no toda la web, por ejemplo las especificaciones de un producto, Usamos el programa "WGET" lo puedes encontrar en Internet y es gratuito, no bajamos dicha hoja, y leemos la información que nos interesa, o cambiamos los datos que queremos, por ejemplo le ponemos el precio según nuestra tarifa y podemos imprimirla etc.... Claro, la hoja no la abrimos en el navegador, simplemente se la pasamos como parámetro a wget dentro del código y una vez descargada nuestro programa ya realiza los cambios necesarios. Espero que te sirva. Un saludo.
lectura CIF o lectura de contenido Web
Creo que puedes tener un ejemplo magnifico para obtener datos de una página web en este ejemplo <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33496&p=197679#p197636">viewtopic.php?f=3&t=33496&p=197679#p197636</a><!-- l -->
lectura de codigos qr
Estimados, debo hacer un control de ingreso usando cédula de identidad chilenas y estas operan con código de barras ean 128 o con códigos QR, se de una librería que me carga los códigos de barra, pero existe algo con código QR, par capturar el dato y procesarlos.. cualquier ayuda se agradece. Atte.,
lectura de codigos qr
[quote="kpidata":2lrnvve8]Estimados, debo hacer un control de ingreso usando cédula de identidad chilenas y estas operan con código de barras ean 128 o con códigos QR, se de una librería que me carga los códigos de barra, pero existe algo con código QR, par capturar el dato y procesarlos.. cualquier ayuda se agradece. Atte.,[/quote:2lrnvve8] Si te refieres al hardware, puedes utilizar un movil con aplicaciones para Android gratuita, pero hay lectores de QR, por ejemplo <!-- m --><a class="postlink" href="https://www.amazon.es/gp/slredirect/picassoRedirect.html/ref=pa_sp_atf_aps_sr_pg1_2?ie=UTF8&adId=A05922472YJ3DEDJ5HSJR&url=https%3A%2F%2Fwww.amazon.es%2FNETUM-Handheld-compatible-Compatible-NT-1228%2Fdp%2FB01M73VPXI%2Fref%3Dsr_1_2_sspa%3Fie%3DUTF8%26qid%3D1517244322%26sr%3D8-2-spons%26keywords%3Dlector%2Bde%2Bcodigos%2Bqr%26psc%3D1&qualifier=1517244322&id=4987335939491447&widgetName=sp_atf">https://www.amazon.es/gp/slredirect/pic ... ame=sp_atf</a><!-- m -->
lectura de codigos qr
Estimado, mi consulta era si existe alguna librería que permita capturar el dato del código QR y sacar los datos información asociada al respecto. Atte.,
lectura de codigos qr
Por lo general los códigos QR se usan para ser leídos desde dispositivos móviles. La mayoría de smartphones ya disponen de lectores de códigos QR. También se pueden descargar de forma gratuita lectores de QR para iOS, Android, Windows Phone y otras plataformas desde la App Store correspondientes. [url:d3sumif5]http&#58;//www&#46;codigos-qr&#46;com/preguntas-frecuentes-codigos-qr/[/url:d3sumif5] Saludos.
lectura de codigos qr
Gracias por la información, pero creo que no me he sabido explicar bien. Un cliente, me pide que lleve el detalle de servicios prestados a una empresa, para ello el elemento de control es que cada trabajador use su cédula de identidad (chile), para eso hay de dos tipos, algunas tiene código de barra de 128 y otros tienen código QR, lo que necesito saber es si existe alguna librería en fivewin que permita leer esos datos y procesarlo o identificar que se esta leyendo datos de una u otra persona y asi registrar cada vez que se le escanea su cédula de identidad. Atte.,
lectura de codigos qr
Creo que con un lector de códigos de barras y la biblioteca HBCOMM.LIB usted puede hacer funcionar. O funciones propias de Fivewin para la lectura de códigos de barras. Saludos.
lectura de codigos qr
En realidad el lector de codigos de barra o de codigos QR te va a enviar a la pc donde este conectata una cadena de caracteres como si se hubiese presionado el teclado. Eso es lo que hace cualquier hardward lector de codigos de barra. Vos lo que tenes que hacer en tu sistema es solo poner un Get a la espera de ese dato y actuar en consecuencias.
lectura de datos de instagram desde WebPageContents
Saludos, Desde hace 15 días he utilizado de manera exitosa esta funciones para leer los datos de una cuenta instagram "leer sus #" , hoy me devuelve no-js not-logged-in client-root , estamos necesitando leer los datos de una cuenta instagram, nos gustaria conocer otras alternativas. Presumo que me bloquearon. local cUrl:="https://www.instagram.com/fedeindustria/" local cText := WebPageContents( cUrl, .t. ) Saludos
lectura de datos de instagram desde WebPageContents
Saludos Necesito cambiar mis datos en la firma de este foro, mi correo es <!-- e --><a href="mailto:jnavas@adaptaproerp.com">jnavas@adaptaproerp.com</a><!-- e --> y <!-- e --><a href="mailto:jnadaptapro@gmail.com">jnadaptapro@gmail.com</a><!-- e --> Agradecidos por cualquier recomendación.
lectura de datos de instagram desde WebPageContents
Saludos Luego de un descanso de un par de horas, el programa funciona sin novedad, posiblemente sea un bloqueo anti-robots.
lectura de datos de instagram desde WebPageContents
Hola, muy interesante, podrías adjuntar un ejemplo. Muchas gracias. Saludos
lectura de datos de instagram desde WebPageContents
Saludos Este es parte del código- [code=fw:xcnxq1qm]<div class="fw" id="{CB}" style="font-family: monospace;"><br />PROCE MAIN<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">LOCAL</span> cMemo:=<span style="color: #ff0000;">""</span>,nAt,cText,aH:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>,aData:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>,cText1,aNew:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>,I<br /><br />&nbsp; <span style="color: #00C800;">DEFAULT</span> cUrl &nbsp; &nbsp; &nbsp;:=<span style="color: #ff0000;">"adaptapro"</span><br /><br />&nbsp; cUrl :=ALLTRIM<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br />&nbsp; cUrl :=<span style="color: #ff0000;">"https://www.instagram.com/"</span>+ALLTRIM<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"/"</span><br />&nbsp; cMemo:=WebPageContents<span style="color: #000000;">&#40;</span> cUrl, .t. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #ff0000;">"not-logged-in"</span>$cMemo <br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Usuario no Logeado"</span>,<span style="color: #ff0000;">"Debes Ingresar a Instagram con Usuario y Clave"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">WHILE</span> .T.<br /><br />&nbsp; &nbsp; nAt &nbsp; :=<span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<span style="color: #000000;">\n</span>#"</span>,cMemo<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">IF</span> nAt=<span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp;EXIT<br />&nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; cText :=SUBS<span style="color: #000000;">&#40;</span>cMemo,nAt<span style="color: #000000;">+2</span>,LEN<span style="color: #000000;">&#40;</span>cMemo<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText1:=cText<br />&nbsp; &nbsp; nAt &nbsp; :=<span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"}}]"</span>,cText<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=<span style="color: #0000ff;">LEFT</span><span style="color: #000000;">&#40;</span>cText,nAt<span style="color: #000000;">-2</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=STRTRAN<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">"<span style="color: #000000;">\u</span>00f3"</span>,<span style="color: #ff0000;">"ó"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=STRTRAN<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">"<span style="color: #000000;">\u</span>00e1"</span>,<span style="color: #ff0000;">"á"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=STRTRAN<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">"<span style="color: #000000;">\u</span>00e9"</span>,<span style="color: #ff0000;">"é"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=STRTRAN<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">"<span style="color: #000000;">\u</span>00ed"</span>,<span style="color: #ff0000;">"í"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=STRTRAN<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">"<span style="color: #000000;">\u</span>00e1"</span>,<span style="color: #ff0000;">"á"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=STRTRAN<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">"<span style="color: #000000;">\u</span>00fa"</span>,<span style="color: #ff0000;">"ú"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; aH &nbsp; &nbsp;:=_VECTOR<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">" "</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; ADEPURA<span style="color: #000000;">&#40;</span>aH,<span style="color: #000000;">&#123;</span>|a,n| Empty<span style="color: #000000;">&#40;</span>a<span style="color: #000000;">&#41;</span> .OR. <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">&#40;</span>a,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><><span style="color: #ff0000;">"#"</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; AEVAL<span style="color: #000000;">&#40;</span>aH,<span style="color: #000000;">&#123;</span>|a,n|AADD<span style="color: #000000;">&#40;</span>aData,a<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; nAt &nbsp; :=<span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<span style="color: #000000;">\n</span>#"</span>,cText1<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=SUBS<span style="color: #000000;">&#40;</span>cText1,nAt<span style="color: #000000;">+0</span>,LEN<span style="color: #000000;">&#40;</span>cText1<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; nAt &nbsp; :=<span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"}}]"</span>,cText<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cMemo :=SUBS<span style="color: #000000;">&#40;</span>cText,nAt<span style="color: #000000;">+2</span>,LEN<span style="color: #000000;">&#40;</span>cMemo<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=ALLTRIM<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">LEFT</span><span style="color: #000000;">&#40;</span>cText,nAt<span style="color: #000000;">-2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=STRTRAN<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">"<span style="color: #000000;">\n</span>"</span>,<span style="color: #ff0000;">" "</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=STRTRAN<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">"<span style="color: #000000;">\u</span>00f3"</span>,<span style="color: #ff0000;">"ó"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=STRTRAN<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">"<span style="color: #000000;">\u</span>00e1"</span>,<span style="color: #ff0000;">"á"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=STRTRAN<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">"<span style="color: #000000;">\u</span>00e9"</span>,<span style="color: #ff0000;">"é"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=STRTRAN<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">"<span style="color: #000000;">\u</span>00ed"</span>,<span style="color: #ff0000;">"í"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=STRTRAN<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">"<span style="color: #000000;">\u</span>00e1"</span>,<span style="color: #ff0000;">"á"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cText :=STRTRAN<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">"<span style="color: #000000;">\u</span>00fa"</span>,<span style="color: #ff0000;">"ú"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; aH &nbsp; &nbsp;:=_VECTOR<span style="color: #000000;">&#40;</span>cText,<span style="color: #ff0000;">" "</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; ADEPURA<span style="color: #000000;">&#40;</span>aH,<span style="color: #000000;">&#123;</span>|a,n| Empty<span style="color: #000000;">&#40;</span>a<span style="color: #000000;">&#41;</span>.OR. <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">&#40;</span>a,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><><span style="color: #ff0000;">"#"</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; AEVAL<span style="color: #000000;">&#40;</span>aH,<span style="color: #000000;">&#123;</span>|a,n|AADD<span style="color: #000000;">&#40;</span>aData,a<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #00C800;">ENDDO</span><br /><br />&nbsp; aNew:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; <span style="color: #00C800;">FOR</span> I=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span>aData<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;nAt:=<span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"],aData[I])<br /><br />&nbsp; &nbsp; &nbsp;IF nAt>0<br />&nbsp; &nbsp; &nbsp; &nbsp;aData[I]:=LEFT(aData[I],nAt-1)<br />&nbsp; &nbsp; &nbsp;ENDIF<br /><br />&nbsp; &nbsp; &nbsp;IF "</span>#\<span style="color: #ff0000;">"=LEFT(aData[I],2)<br />&nbsp; &nbsp; &nbsp; &nbsp; aData[I]:="</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;ENDIF<br /><br />&nbsp; &nbsp; &nbsp;IF "</span>#o\<span style="color: #ff0000;">"=LEFT(aData[I],3)<br />&nbsp; &nbsp; &nbsp; &nbsp; aData[I]:="</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;ENDIF<br /><br />&nbsp; &nbsp; &nbsp;IF "</span>\u00a0<span style="color: #ff0000;">"$aData[I]<br />&nbsp; &nbsp; &nbsp; &nbsp; aData[I]:=STRTRAN(aData[I],"</span>\u00a0<span style="color: #ff0000;">","</span>\n<span style="color: #ff0000;">")<br />&nbsp; &nbsp; &nbsp;ENDIF<br /><br />&nbsp; &nbsp; &nbsp;IF "</span>\n<span style="color: #ff0000;">"$aData[I]<br />&nbsp; &nbsp; &nbsp; &nbsp;aData[I]:=STRTRAN(aData[I],"</span>\n<span style="color: #ff0000;">","</span> <span style="color: #ff0000;">")<br />&nbsp; &nbsp; &nbsp; &nbsp;aNew:=_VECTOR(aData[I],"</span> <span style="color: #ff0000;">")<br />&nbsp; &nbsp; &nbsp; &nbsp;aData[I]:=aNew[1]<br />&nbsp; &nbsp; &nbsp; &nbsp;AEVAL(aNew,{|a,n| AADD(aData,a)})<br />&nbsp; &nbsp; &nbsp;ENDIF<br /><br />&nbsp; NEXT I<br /><br />&nbsp; ADEPURA(aData,{|a,n| Empty(a)})<br /><br />&nbsp; aNew:={}<br />&nbsp; FOR I=1 TO LEN(aData)<br /><br />&nbsp; &nbsp; &nbsp;nAt:=ASCAN(aNew,{|a,n|a==aData[I]})<br /><br />&nbsp; &nbsp; &nbsp;IF nAt=0 <br />&nbsp; &nbsp; &nbsp; &nbsp; AADD(aNew,aData[I])<br />&nbsp; &nbsp; &nbsp;ENDIF<br /><br />&nbsp; NEXT I<br />&nbsp; <br />? "</span>visualizar el array<span style="color: #ff0000;">",aNew &nbsp;<br />//ViewArray(aNew)<br /><br />RETURN aNew<br /><br /><br />FUNCTION _VECTOR(cPar,cSepara)<br />&nbsp; &nbsp; LOCAL nPos,aLista:={},X,nLen,SEP1,SEP2<br /><br />&nbsp; &nbsp; IF ValType(cPar)="</span>A<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp;RETURN cPar<br />&nbsp; &nbsp; ENDIF<br /><br />&nbsp; &nbsp; cSepara=IF(cSepara=NIL,"</span>,<span style="color: #ff0000;">",cSepara) // CON LOS SEcParADORES<br />&nbsp; &nbsp; SEP1="</span><span style="color: #000000;">&#93;</span><span style="color: #ff0000;">"+cSepara+"</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; SEP2=cSepara+"</span> <span style="color: #ff0000;">"<br />&nbsp; &nbsp; DO WHILE .T.<br />&nbsp; &nbsp; &nbsp; &nbsp;nLen=3<br />&nbsp; &nbsp; &nbsp; &nbsp;nPos=AT(SEP1,cPar) // AT("</span><span style="color: #000000;">&#93;</span>,<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">",cPar)<br />&nbsp; &nbsp; &nbsp; &nbsp;IF nPos=0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos=AT(cSepara,cPar) // AT("</span>,<span style="color: #ff0000;">",cPar)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLen=1<br />&nbsp; &nbsp; &nbsp; &nbsp;ENDIF<br />&nbsp; &nbsp; &nbsp; &nbsp;IF nPos=0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos=AT(SEP2,cPar) // AT("</span>, <span style="color: #ff0000;">",cPar)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLen=2<br />&nbsp; &nbsp; &nbsp; &nbsp;ENDIF<br />&nbsp; &nbsp; &nbsp; &nbsp;IF nPos=0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXIT<br />&nbsp; &nbsp; &nbsp; &nbsp;ENDIF<br />&nbsp; &nbsp; &nbsp; &nbsp;X=LEFT(cPar,nPos-1)<br />&nbsp; &nbsp; &nbsp; &nbsp;AADD(aLista,X)<br />&nbsp; &nbsp; &nbsp; &nbsp;cPar=SUBS(cPar,nPos+nLen,LEN(cPar))<br />&nbsp; &nbsp; ENDDO<br />&nbsp; &nbsp; IF LEN(cPar)>0 //.OR.RIGHT(XcPar,1)=cSepara // despues del SecParador esta vacio<br />&nbsp; &nbsp; &nbsp; &nbsp;AADD(aLista,cPar)<br />&nbsp; &nbsp; ENDIF<br />RETURN aLista<br /><br /><br />// Depura Valores vacios<br />// Jn 30/08/2014<br />FUNCTION ADEPURA(aArray,bBlq)<br />&nbsp; &nbsp;LOCAL nAt,aNew:={}<br /><br />&nbsp; &nbsp;IF LEN(aArray)>0 .AND. ValType(aArray[1])="</span>A<span style="color: #ff0000;">" .AND. LEN(aArray[1])>1<br /><br />&nbsp; &nbsp; &nbsp;DEFAULT bBlq:={|a,n| Empty(a[1])}<br /><br />&nbsp; &nbsp;ELSE<br /><br />&nbsp; &nbsp; &nbsp;DEFAULT bBlq:={|a,n| Empty(a)}<br /><br />&nbsp; &nbsp;ENDIF<br /><br />&nbsp; &nbsp;WHILE .T.<br /><br />&nbsp; &nbsp; &nbsp; nAt:=ASCAN(aArray,bBlq)<br /><br />&nbsp; &nbsp; &nbsp; IF nAt=0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EXIT<br />&nbsp; &nbsp; &nbsp; ENDIF<br /><br />&nbsp; &nbsp; &nbsp; ARREDUCE(aArray,nAt)<br /><br />&nbsp; &nbsp;ENDDO<br /><br /><br />RETURN aArray<br /><br />/*<br />// Reduce el Arreglo<br />*/<br />FUNCTION ARREDUCE(aArray,nAt)<br /><br />&nbsp; &nbsp;IF ValType(aArray[nAt])="</span>A<span style="color: #ff0000;">" // Borrar Objetos<br />&nbsp; &nbsp; &nbsp;Aeval(aArray[nAt],{|a,n|aArray[nAt,n]:=NIL})<br />&nbsp; &nbsp;ENDIF<br /><br />&nbsp; &nbsp;IF ValType(aArray[nAt])="</span>O<span style="color: #ff0000;">" // Borrar Objetos<br />&nbsp; &nbsp; &nbsp;aArray[nAt]:=NIL // Borrar Objetos<br />&nbsp; &nbsp;ENDIF<br /><br />&nbsp; &nbsp;ADEL(aArray,nAt)<br />&nbsp; &nbsp;ASIZE(aArray,Len(aArray)-1)<br /><br />RETURN aArray<br /><br /><br /><br /></span></div>[/code:xcnxq1qm]
lectura de datos de instagram desde WebPageContents
Hola Juan, te agradezco que hayas compartido tu solución. Todavía no lo he probado por falta de tiempo. En cuanto haga pruebas te haré una devolución. Muchas gracias nuevamente. Saludos
lectura de datos de instagram desde WebPageContents
Horacio Saludos Lograste utilizar el código? En ningún equipo de la oficina podemos utilizar el Instagram sin logeo. Has podido utilizarlo sin novedad?
lectura de un DLL -
Buenas amigos listeros saludes a la distancia. Haber quien m epuede echar una mano. Miren est funcion es de un lector sin contacto necsito leer los parametreos de este api y aprender un poco mas utilza una libreria ctacs.DLL Como podria utilizar hacer esto para utilizar la dll agradezco desde ya la ayuda No tengo conicimiento en est ar <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> ea. [color=#0000FF:1vk7gnt0]Calling CT-API Functions[/color:1vk7gnt0] Esta es funcion en C #include <stdio.h> #include <ct_api.h> int main(int argc, char *argv[]) { char ret; unsigned short ctn; unsigned short pn; unsigned char sad; unsigned char dad; // REQUEST ICC unsigned char command[] = { 0x20, 0x12, 0x01, 0x00, 0x00 }; unsigned short lenc = sizeof(command); unsigned char response[300]; unsigned short lenr = sizeof(response); unsigned short i; ctn = 1; pn = 1; // Initialize card terminal ret = CT_init(ctn, pn); if (ret != OK) { printf("Error: CT_init failed with error %d\n", ret); return 1; } sad = 2; // Source = Host dad = 1; // Destination = Card Terminal // Send command ret = CT_data(ctn, &dad, &sad, lenc, command, &lenr, response); if (ret != OK) printf("Error: CT_data failed with error %d\n", ret); else { // Display response printf("Response: "); for (i = 0; i < lenr; i++) printf("%02X ", response[i]); printf("\n"); } // Close card terminal ret = CT_close(ctn); if (ret != OK) printf("Error: CT_close failed with error %d\n", ret); return 0; } Ahora esta manera pero el programa entra no muestra nada y sale sin errores. Function Milagros() Local ctn :=1 , pn := 1 hDLL := LoadLibrary( "ctacs.DLL") ?? CT_init(ctn, pn) FreeLibrary( hDLL ) return nil [color=#BF0000:1vk7gnt0][size=150:1vk7gnt0][b:1vk7gnt0]DLL FUNCTION CT_init( ctn AS PTR , pn AS PTR ) AS LONG LIB "ctacs.DLL"[/b:1vk7gnt0][/size:1vk7gnt0] [/color:1vk7gnt0]
lectura de un DLL -
DLL FUNCTION CT_init( ctn AS LONG, pn AS LONG ) AS LONG LIB "ctacs.DLL"
lectura de un DLL -
Gracias . Se comporta igual por otro lado intente de esta manera pero el tipo de campo que puse en la llamada de la dll haber si esta correcta. #include "FiveWin.ch" #include "dll.ch" FUNCTION LEEC1() Local notUsed:="" , notUsed1:="" Local MAXIMUM_SMARTCARD_READERS:=10 Local SCARD_SCOPE_USER:=0 Local SCARD_S_SUCCESS :=0 hDLL := LoadLibrary( "WINSCARD.DLL") RetVar :="" &&cardinal; ReaderList :=space(1) && string; ReaderListSize := 0 &&integer; FContext :=space(30) v :={MAXIMUM_SMARTCARD_READERS} &&array[0..MAXIMUM_SMARTCARD_READERS] of string; i :=0 &&integer; RetVar := SCardEstablishContext(SCARD_SCOPE_USER, @notUsed, @notUsed1, @FContext) FreeLibrary( hDLL ) return nil DLL FUNCTION SCardEstablishContext( SCARD_SCOPE_USER AS LONG , notUsed AS VOID , notUsed1 AS VOID , @FContext AS STRING ) AS LONG PASCAL LIB "WINSCARD.DLL"
lectura de un DLL -
Tienes un ejemplo en C de cómo se usa SCardEstablishContext() ?
lectura de un DLL -
Gracias Linares. Te envie un correo con l dll y un ejemplo en C. Aprecio la ayuda.
lectura de un DLL -
EJEMPLO EN DELFI Te puedo dar una idea con algo del código en Delphi, para que veas si puedes adaptarlo. hDLL := LoadLibrary("WINSCARD.DLL") //En los ejemplos uso varias constantes para mayor claridad, cuyos valores son los siguientes: Const MAXIMUM_SMARTCARD_READERS = 10; SCARD_SCOPE_USER = 0; SCARD_S_SUCCESS = 0; Var RetVar : cardinal; ReaderList : string; ReaderListSize : integer; v : array[0..MAXIMUM_SMARTCARD_READERS] of string; i : integer; //Establecer el contexto para un usuario y guardarlo en FContext RetVar := SCardEstablishContext(SCARD_SCOPE_USER, nil, nil, @FContext) if RetVar = SCARD_S_SUCCESS then begin RetVar := SCardListReadersA(FContext, nil, nil, ReaderListSize); if RetVar = SCARD_S_SUCCESS then begin SetLength(ReaderList, ReaderListSize); SCardListReadersA(FContext, nil, Pointer(ReaderList), ReaderListSize); for i := 0 to MAXIMUM_SMARTCARD_READERS do if v[i] <> '' then // Aquí debes almacenar en alguna lista los nombres de los lectores de tarjetas disponibles, que en este caso vienen reportados en la matriz v[] End; End; //Lo que sigue es generalmente manejado en un thread aparte para no bloquear el interfase de usuario, pero puedes hacerlo como tu quieras. //Hay que consultar el contexto para ver si algo ha cambiado function CardWatcherThread(PContext: pointer): integer; var RetVar : cardinal; RContext : cardinal; RStates : array[0..1] of SCARD_READERSTATEA; begin try RContext := cardinal(PContext^); FillChar(RStates,SizeOf(RStates),#0); RStates[0].szReader := SelectedReader; //Es un puntero al nombre del lector que hayas seleccionado RStates[0].pvUserData := nil; RStates[0].dwEventState := ActReaderState; while ReaderOpen do begin RStates[0].dwCurrentState := RStates[0].dwEventState; RetVar := SCardGetStatusChangeA(RContext, -1, RStates, 1); ActReaderState := RStates[0].dwEventState; PostMessage(NotifyHandle, WM_CARDSTATE, RetVar, 0); end; finally Result := 0; end; end;
leer archivo
Hola compañeros tengo el siguiente problema. Hago una consulta a un web service desde dónde la respuesta es un archivo json, a este lo transformo en un txt (cResp.txt) y queda asi {"success":true,"data":{"idPersona":30520528931,"tipoPersona":"JURIDICA","tipoClave":"CUIT","estadoClave":"ACTIVO","nombre":"NOSEL PODER S.A.","domicilioFiscal":{"direccion":[u:1lzvoe6e][color=#FF0000:1lzvoe6e]"BELGRANO AV. 1955 Piso:28"[/color:1lzvoe6e][/u:1lzvoe6e],"codPostal":"1092","idProvincia":0},"idDependencia":8,"mesCierre":12,"fechaInscripcion":"1901-01-01","fechaContratoSocial":"1977-02-03","impuestos":[10,25,30,103,211,217,218,301,353,767],"actividades":[469090,201180,466932,649999,681098,463111],"caracterizaciones":[68,71,72,255,337]}} Lo leo de la siguiente forma: [code=fw:1lzvoe6e]<div class="fw" id="{CB}" style="font-family: monospace;"><br />? <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>strtoken<span style="color: #000000;">&#40;</span>cResp,<span style="color: #000000;">4</span>,<span style="color: #ff0000;">":"</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>,<span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">","</span>,strtoken<span style="color: #000000;">&#40;</span>cResp,<span style="color: #000000;">4</span>,<span style="color: #ff0000;">":"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #000000;">30520528931</span><br />? <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>strtoken<span style="color: #000000;">&#40;</span>cResp,<span style="color: #000000;">5</span>,<span style="color: #ff0000;">":"</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>,<span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">","</span>,strtoken<span style="color: #000000;">&#40;</span>cResp,<span style="color: #000000;">5</span>,<span style="color: #ff0000;">":"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><br /> <span style="color: #ff0000;">"JURIDICA"</span><br />? <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>strtoken<span style="color: #000000;">&#40;</span>cResp,<span style="color: #000000;">6</span>,<span style="color: #ff0000;">":"</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>,<span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">","</span>,strtoken<span style="color: #000000;">&#40;</span>cResp,<span style="color: #000000;">6</span>,<span style="color: #ff0000;">":"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> + Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> + <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>strtoken<span style="color: #000000;">&#40;</span>cResp,<span style="color: #000000;">7</span>,<span style="color: #ff0000;">":"</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>,<span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">","</span>,strtoken<span style="color: #000000;">&#40;</span>cResp,<span style="color: #000000;">7</span>,<span style="color: #ff0000;">":"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><br /> <span style="color: #ff0000;">"CUIT"</span>   <span style="color: #ff0000;">"ACTIVO"</span><br />? <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>strtoken<span style="color: #000000;">&#40;</span>cResp,<span style="color: #000000;">8</span>,<span style="color: #ff0000;">":"</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>,<span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">","</span>,strtoken<span style="color: #000000;">&#40;</span>cResp,<span style="color: #000000;">8</span>,<span style="color: #ff0000;">":"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <br /> <span style="color: #ff0000;">"NOSEL PODER S.A."</span><br /> </div>[/code:1lzvoe6e] el problema lo tengo con la dirección cuando viene entre los apóstrofes con 2 puntos intermedios. si hago 1.- ? SubStr(strtoken(cResp,10,":"),1,At(",",strtoken(cResp,10,':'))-1) no devuelve nada 2.- ? SubStr(strtoken(cResp,10,":"),1)) BELGRANO AV. 1955 Alguna sugerencia? Hay alguna otra forma de leerlo? Gracias por su atención Luis
leer archivo
Saludos usa hb_jsonDecode( cResp, @hJson ) despues hJson lo puedes usar como un hash ejemplo ? hJson["data"]["idPersona"] ? hJson["data"]["domicilioFiscal"]["direccion"]
leer archivo
Gracias Daniel. Funciona perfecto Luis
leer archivo
Hola buen día, estoy buscando consultar datos de cuit, me podrían orientar. Saludos Jorge
leer archivo zip
hola : saben de alguna funcion equivalente a File.ReadAllBytes del VB ?? necesito " consignar el contenido del archivo ZIP en un arreglo de bytes " gracias por su atencion
leer archivo zip
Try [code=fw:3sqae902]<div class="fw" id="{CB}" style="font-family: monospace;">MemoRead<span style="color: #000000;">&#40;</span> <cFileName> <span style="color: #000000;">&#41;</span> --> cString</div>[/code:3sqae902] EMG
leer codigos de barra desde una tablet o telefono inteligent
Buenas tardes es posible hacerlo con fivetouch actualmente ? cualquier ayuda se agradece saludos Wilson pd: no se nada del tema si dije algo incorrecto mil disculpas
leer codigos de barra desde una tablet o telefono inteligent
Wilson, FiveTouch usa QT, por lo que tienes que buscar en google un ejemplo en QT que lo haga
leer codigos de barra desde una tablet o telefono inteligent
Aqui tienes documentación para usar la cámara: [url:2n0f8wrp]https&#58;//doc&#46;qt&#46;io/qt-5/qtmultimedia-multimediawidgets-camera-example&#46;html[/url:2n0f8wrp]
leer codigos de barra desde una tablet o telefono inteligent
Muchas gracias maestro Voy a revisar Saludos
leer datos de gps de una tablet
Compañeros buenos dias Es posible leer los datos gps de una tablet con sistea android que esta conectada via citrix a un server ? en ella se corre un software hecho en fwh via remota con el citrix Cualquier idea es bienvenida Gracias
leer estado de puerto de comunicaciones...
Hay algun modo de saber si en el buffer del puerto de comunicaciones hay algun carácter? Gracias
leer estado de puerto de comunicaciones...
Pedro, Revisa samples\TestCom3.prg. Se usa el codeblock bCommNotify de la ventana ó de la caja de diálogo. En el ejemplo hay que modificar SetCommState( nComm, cDcb ) para que use nComm como primer parámetro.
leer estado de puerto de comunicaciones...
Si, de repente me expresé mal. Me refería a saber si hay algún carácter en el puerto sin tener que leer el puerto... Como por ejemplo antes usabamos ISPRINTER() para saber si la impresora estaba online... Gracias.
leer estado de puerto de comunicaciones...
Pedro, bCommNotify es evaluado como respuesta a la notificación de Windows de que han llegado bytes al puerto. No hay por qué leerlos.
leer estado de puerto de comunicaciones...
Ahhh.. Ok. De repente soluciono de este modo. Gracias