topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
lSeekBar | [quote:rwtmig9s]I send you a mail with exe ,prg and dbf [/quote:rwtmig9s]
Please make sure you keep customer.cdx also along with the customer.dbf |
lSeekBar | Please I made another sample to understand:
[code=fw:21v2zuhc]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #00C800;">static</span> cFwhPath := <span style="color: #ff0000;">"c:<span style="color: #000000;">\\</span>work<span style="color: #000000;">\\</span>fwh<span style="color: #000000;">\\</span>"</span><br /><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oFont, oBrw<br /> <span style="color: #00C800;">local</span> cPath := cFwhPath + <span style="color: #ff0000;">"samples<span style="color: #000000;">\\</span>"</span><br /><br /> USE <span style="color: #000000;">(</span> cPath + <span style="color: #ff0000;">"CUSTOMER"</span> <span style="color: #000000;">)</span> <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> CU SHARED<br /><br /> <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> FIRST TAG FIRST <span style="color: #0000ff;">TO</span> CTMP MEMORY<br /> <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> LAST TAG LAST <span style="color: #0000ff;">TO</span> CTMP MEMORY<br /><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">900</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont TRUEPIXEL ;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FWH 16.12 : SEEK IN HEADER BAR"</span><br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> DATASOURCE <span style="color: #ff0000;">"CU"</span> <span style="color: #0000ff;">AUTOCOLS</span> ;<br /> CELL LINES NOBORDER FOOTERS AUTOSORT<br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">lSeekBar</span> := .t.<br /> :<span style="color: #000000;">bClrEdits</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_HRED, CLR_YELLOW <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><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></div>[/code:21v2zuhc]
Now I see the lupa bmp but only on second column because there is the insex tag last
How I can to make this :
click on the heade r -> it must show the get of search ( on each column I make the index) |
lSeekBar | I am using FWH 16.12 and xHB.com |
lSeekBar | In my test I used
[color=#004040:39rqx5dt]DBSELECTAREA("KKASSE")
1. Index
ORDCREATE( ,"KASSE1","UPPER(KASS1)", {|| UPPER(KASS1) } , .F. )
2. Index
ORDCREATE( ,"KASSE2","KENNER", {|| KENNER } , .F. )[/color:39rqx5dt]
[color=#0000FF:39rqx5dt]The browser
DBSELECTAREA( "KKASSE" )
( "KKASSE" )->(DBSETORDER("KASSE1"))
("KKASSE")->(DBGOTOP())
REDEFINE XBROWSE oBrw1 ID 110 OF oDlg1 AUTOSORT ;
COLUMNS { "KASS1", "KURZ1", "KENNER", "SIGNAL", "MERKER" } ;
ALIAS "KKASSE"
...
...
WITH OBJECT oBrw1
:bRecSelData := { |brw| brw:KeyNo }
:bRecSelHeader := { |brw| "Nr." } // or simply "SlNo"
:bRecSelFooter := { |brw| brw:nLen } // or Simpy any value
:nRecSelWidth := 50
:lSeekBar := .t.
:bClrEdits := { || { CLR_HRED, CLR_YELLOW } }
END[/color:39rqx5dt]
clicking on the header the seek changes from index 1 to index 2
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33376&p=196863#p196863">viewtopic.php?f=3&t=33376&p=196863#p196863</a><!-- l -->
I couldn't detect anything wrong.
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
lSeekBar | Please can use sample test of fivetech with dbfs ( customer) |
lSeekBar | Silvio,
my changes on sample : [color=#0000FF:1hob6llg][b:1hob6llg]xBrowgrd.prg[/b:1hob6llg][/color:1hob6llg] using multiple index.
( added index FIRST and LAST )
just click on header < FIRST > or < LAST > to change the indexorder.
[img:1hob6llg]http://www.pflegeplus.com/IMAGES/Xbrwsbar1.jpg[/img:1hob6llg]
[code=fw:1hob6llg]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oDlg, oBrw, oFont<br /><span style="color: #00C800;">local</span> aRowGrad, aSelGrad, aStdGrad<br /><span style="color: #00C800;">local</span> n := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">157</span>, <span style="color: #000000;">248</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span><br /><br />REQUEST DBFCDX<br />RDDSETDEFAULT <span style="color: #000000;">(</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">)</span><br />SETBALLOON<span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /><br />XbrNumFormat<span style="color: #000000;">(</span> <span style="color: #ff0000;">'E'</span>, .t. <span style="color: #000000;">)</span><br /><br />aRowGrad := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">232</span>, <span style="color: #000000;">241</span>, <span style="color: #000000;">252</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">232</span>, <span style="color: #000000;">241</span>, <span style="color: #000000;">252</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">210</span>, <span style="color: #000000;">225</span>, <span style="color: #000000;">244</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">235</span>, <span style="color: #000000;">243</span>, <span style="color: #000000;">253</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br />aSelGrad := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">251</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">237</span>, <span style="color: #000000;">178</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">218</span>, <span style="color: #000000;">103</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">162</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br />USE CUSTOMER <br />ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"CUST1"</span>,<span style="color: #ff0000;">"UPPER(FIRST)"</span>, <span style="color: #000000;">{</span>|| UPPER<span style="color: #000000;">(</span>FIRST<span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span><br />ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"CUST2"</span>,<span style="color: #ff0000;">"UPPER(LAST)"</span>, <span style="color: #000000;">{</span>|| UPPER<span style="color: #000000;">(</span>LAST<span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">740</span>,<span style="color: #000000;">440</span> <span style="color: #0000ff;">PIXEL</span> ;<br /><span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">'XBrowse Gradient Rows FWH 9.12'</span><br /><br />DBSETORDER<span style="color: #000000;">(</span><span style="color: #ff0000;">"CUST1"</span><span style="color: #000000;">)</span><br /><br />@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-10</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> COLUMNS <span style="color: #ff0000;">'FIRST'</span>, <span style="color: #ff0000;">"LAST"</span>, <span style="color: #ff0000;">'HIREDATE'</span>, <span style="color: #ff0000;">'MARRIED'</span>, <span style="color: #ff0000;">'SALARY'</span> ;<br /> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'CUSTOMER'</span> LINES NOBORDER AUTOSORT<br /><br />oBrw:<span style="color: #000000;">Married</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Default FWH Bitmap is Alpha</span><br /><br />WITH OBJECT oBrw:<span style="color: #000000;">First</span><br /> :<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>pen2.bmp'</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// non-alpha bitmap</span><br /> :<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">1</span> <span style="color: #000000;">}</span><br />END<br /><br />WITH OBJECT oBrw:<span style="color: #000000;">HireDate</span><br /> :<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphabmp<span style="color: #000000;">\t</span>ask.bmp'</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// alpha</span><br /> :<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">1</span> <span style="color: #000000;">}</span><br />END<br /><br />WITH OBJECT oBrw<br /> :<span style="color: #000000;">nStretchCol</span> := <span style="color: #000000;">1</span><br /> :<span style="color: #000000;">nMarqueeStyle</span> := <span style="color: #000000;">4</span><br /> :<span style="color: #000000;">bClrSelFocus</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, aSelGrad <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bClrRowFocus</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, aRowGrad <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">lSeekBar</span> := .t.<br /> :<span style="color: #000000;">bClrEdits</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_HRED, CLR_YELLOW <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br />END<br /><br />oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />CLOSE CUSTOMER<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:1hob6llg]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
lSeekBar | [quote="Silvio.Falconi":1ou29ecp]Please I made another sample to understand:
[code=fw:1ou29ecp]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #00C800;">static</span> cFwhPath := <span style="color: #ff0000;">"c:<span style="color: #000000;">\\</span>work<span style="color: #000000;">\\</span>fwh<span style="color: #000000;">\\</span>"</span><br /><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oFont, oBrw<br /> <span style="color: #00C800;">local</span> cPath := cFwhPath + <span style="color: #ff0000;">"samples<span style="color: #000000;">\\</span>"</span><br /><br /> USE <span style="color: #000000;">(</span> cPath + <span style="color: #ff0000;">"CUSTOMER"</span> <span style="color: #000000;">)</span> <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> CU SHARED<br /><br /> <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> FIRST TAG FIRST <span style="color: #0000ff;">TO</span> CTMP MEMORY<br /> <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> LAST TAG LAST <span style="color: #0000ff;">TO</span> CTMP MEMORY<br /><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">900</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont TRUEPIXEL ;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FWH 16.12 : SEEK IN HEADER BAR"</span><br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> DATASOURCE <span style="color: #ff0000;">"CU"</span> <span style="color: #0000ff;">AUTOCOLS</span> ;<br /> CELL LINES NOBORDER FOOTERS AUTOSORT<br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">lSeekBar</span> := .t.<br /> :<span style="color: #000000;">bClrEdits</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_HRED, CLR_YELLOW <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><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></div>[/code:1ou29ecp]
Now I see the lupa bmp but only on second column because there is the insex tag last
How I can to make this :
click on the heade r -> it must show the get of search ( on each column I make the index)[/quote:1ou29ecp]
Silvio, I think you are re-written the memory variable CTMP here.
[code=fw:1ou29ecp]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> FIRST TAG FIRST <span style="color: #0000ff;">TO</span> CTMP MEMORY<br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> LAST TAG LAST <span style="color: #0000ff;">TO</span> CTMP MEMORY</div>[/code:1ou29ecp] |
lSeekBar | Sorry,
Uwe same error
I click on First and digit "Gary" the procedure go to the first "Gary" the selector move to first "Gary" founded ok
I thinked another.
I click on first and digit" Ga" the procedure must show me only the first name init with "Ga" ...
then I thinked....
the search filter procedure advise me must have a combobox with these options :
- [b:3ke3mipx]All[/b:3ke3mipx] - as your search ( I digit "Gary" and it move to first" Gary"
- [b:3ke3mipx]Advance Filter[/b:3ke3mipx] ( for a sample as my class Tfilter with not or and option)
- [b:3ke3mipx]containing[/b:3ke3mipx] - Show only entries that contain the word
- [b:3ke3mipx]Not containing[/b:3ke3mipx] - Show only entries that not contain the word
- a list (checkboxes ) of all possibility record sample :
"Achim"
"Adele"
"Adrian"
"Al"
"Alan" |
lSeekBar | Uwe,
I need to use buttons to activate/desactivate line seach
[b:1jdtpos9]Please try this test [/b:1jdtpos9]
[code=fw:1jdtpos9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oDlg, oBrw, oFont<br /><span style="color: #00C800;">local</span> aRowGrad, aSelGrad, aStdGrad<br /><span style="color: #00C800;">local</span> n := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">157</span>, <span style="color: #000000;">248</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span><br /><br />REQUEST DBFCDX<br />RDDSETDEFAULT <span style="color: #000000;">(</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">)</span><br />SETBALLOON<span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /><br />XbrNumFormat<span style="color: #000000;">(</span> <span style="color: #ff0000;">'E'</span>, .t. <span style="color: #000000;">)</span><br /><br />aRowGrad := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">232</span>, <span style="color: #000000;">241</span>, <span style="color: #000000;">252</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">232</span>, <span style="color: #000000;">241</span>, <span style="color: #000000;">252</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">210</span>, <span style="color: #000000;">225</span>, <span style="color: #000000;">244</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">235</span>, <span style="color: #000000;">243</span>, <span style="color: #000000;">253</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br />aSelGrad := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">251</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">237</span>, <span style="color: #000000;">178</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">218</span>, <span style="color: #000000;">103</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">162</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br />USE CUSTOMER<br />ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"CUST1"</span>,<span style="color: #ff0000;">"UPPER(FIRST)"</span>, <span style="color: #000000;">{</span>|| UPPER<span style="color: #000000;">(</span>FIRST<span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span><br />ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"CUST2"</span>,<span style="color: #ff0000;">"UPPER(LAST)"</span>, <span style="color: #000000;">{</span>|| UPPER<span style="color: #000000;">(</span>LAST<span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">780</span>,<span style="color: #000000;">440</span> <span style="color: #0000ff;">PIXEL</span> ;<br /><span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">'XBrowse Gradient Rows FWH 9.12'</span><br /><br />DBSETORDER<span style="color: #000000;">(</span><span style="color: #ff0000;">"CUST1"</span><span style="color: #000000;">)</span><br /><br />@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">380</span>,<span style="color: #000000;">180</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> COLUMNS <span style="color: #ff0000;">'FIRST'</span>, <span style="color: #ff0000;">"LAST"</span>, <span style="color: #ff0000;">'HIREDATE'</span>, <span style="color: #ff0000;">'MARRIED'</span>, <span style="color: #ff0000;">'SALARY'</span> ;<br /> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'CUSTOMER'</span> NOBORDER AUTOSORT <span style="color: #B900B9;">//LINES</span><br /><br />oBrw:<span style="color: #000000;">Married</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Default FWH Bitmap is Alpha</span><br /><br />WITH OBJECT oBrw:<span style="color: #000000;">First</span><br /> :<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>pen2.bmp'</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// non-alpha bitmap</span><br /> :<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">1</span> <span style="color: #000000;">}</span><br />END<br /><br />WITH OBJECT oBrw:<span style="color: #000000;">HireDate</span><br /> :<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphabmp<span style="color: #000000;">\t</span>ask.bmp'</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// alpha</span><br /> :<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">1</span> <span style="color: #000000;">}</span><br />END<br /><br />WITH OBJECT oBrw<br /> :<span style="color: #000000;">nStretchCol</span> := <span style="color: #000000;">1</span><br /> :<span style="color: #000000;">nMarqueeStyle</span> := <span style="color: #000000;">4</span><br /> :<span style="color: #000000;">bClrSelFocus</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, aSelGrad <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bClrRowFocus</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, aRowGrad <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> * :<span style="color: #000000;">lSeekBar</span> := .t.<br /> :<span style="color: #000000;">bClrEdits</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_HRED, CLR_YELLOW <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br />END<br /><br />oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br /><br /><br /><br /> @ <span style="color: #000000;">200</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Activate/desactivate filter "</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">90</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">lGetBar</span> := ! oBrw:<span style="color: #000000;">lGetBar</span>, oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">200</span>,<span style="color: #000000;">112</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Activate filter "</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> SetFilter<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">200</span>,<span style="color: #000000;">192</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"clear filter "</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span><span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> DBCLEARFILTER<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />CLOSE CUSTOMER<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></div>[/code:1jdtpos9] |
lSeekBar | Found solution
but not run ok
[code=fw:3ebseleq]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oDlg, oBrw, oFont, oBold<br /><span style="color: #00C800;">local</span> aRowGrad, aSelGrad, aStdGrad<br /><span style="color: #00C800;">local</span> n := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">157</span>, <span style="color: #000000;">248</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span><br /><br />REQUEST DBFCDX<br />RDDSETDEFAULT <span style="color: #000000;">(</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">)</span><br />SETBALLOON<span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /><br />XbrNumFormat<span style="color: #000000;">(</span> <span style="color: #ff0000;">'E'</span>, .t. <span style="color: #000000;">)</span><br /><br />aRowGrad := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">232</span>, <span style="color: #000000;">241</span>, <span style="color: #000000;">252</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">232</span>, <span style="color: #000000;">241</span>, <span style="color: #000000;">252</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">210</span>, <span style="color: #000000;">225</span>, <span style="color: #000000;">244</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">235</span>, <span style="color: #000000;">243</span>, <span style="color: #000000;">253</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br />aSelGrad := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">251</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">237</span>, <span style="color: #000000;">178</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">218</span>, <span style="color: #000000;">103</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">162</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br />USE CUSTOMER<br />ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"CUST1"</span>,<span style="color: #ff0000;">"UPPER(FIRST)"</span>, <span style="color: #000000;">{</span>|| UPPER<span style="color: #000000;">(</span>FIRST<span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span><br />ORDCREATE<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"CUST2"</span>,<span style="color: #ff0000;">"UPPER(LAST)"</span>, <span style="color: #000000;">{</span>|| UPPER<span style="color: #000000;">(</span>LAST<span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , .F. <span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span> BOLD<br /><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">780</span>,<span style="color: #000000;">440</span> <span style="color: #0000ff;">PIXEL</span> ;<br /><span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">'XBrowse Gradient Rows FWH 9.12'</span><br /><br />DBSETORDER<span style="color: #000000;">(</span><span style="color: #ff0000;">"CUST1"</span><span style="color: #000000;">)</span><br /><br />@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">380</span>,<span style="color: #000000;">180</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> COLUMNS <span style="color: #ff0000;">'FIRST'</span>, <span style="color: #ff0000;">"LAST"</span>, <span style="color: #ff0000;">'HIREDATE'</span>, <span style="color: #ff0000;">'MARRIED'</span>, <span style="color: #ff0000;">'SALARY'</span> ;<br /> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'CUSTOMER'</span> NOBORDER AUTOSORT <span style="color: #B900B9;">//LINES</span><br /><br />oBrw:<span style="color: #000000;">Married</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Default FWH Bitmap is Alpha</span><br /><br />WITH OBJECT oBrw:<span style="color: #000000;">First</span><br /> :<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>pen2.bmp'</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// non-alpha bitmap</span><br /> :<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">1</span> <span style="color: #000000;">}</span><br />END<br /><br />WITH OBJECT oBrw:<span style="color: #000000;">HireDate</span><br /> :<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphabmp<span style="color: #000000;">\t</span>ask.bmp'</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// alpha</span><br /> :<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">1</span> <span style="color: #000000;">}</span><br />END<br /><br /><br /><br /><span style="color: #B900B9;">// Relevant Code</span><br /> <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">)</span><br /> WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> n <span style="color: #000000;">]</span><br /> <span style="color: #00C800;">if</span> FieldType<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> != <span style="color: #ff0000;">'L'</span><br /> :<span style="color: #000000;">uBarGetVal</span> := uValBlank<span style="color: #000000;">(</span> fieldGet<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> FieldType<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> == <span style="color: #ff0000;">'N'</span><br /> :<span style="color: #000000;">cBarGetPic</span> := NumPict<span style="color: #000000;">(</span> FieldLen<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span>, FieldDec<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /> END<br /> <span style="color: #00C800;">next</span><br /> oBrw:<span style="color: #000000;">lGetBar</span> := .t.<br /> <span style="color: #B900B9;">// End of Relevant Code</span><br /><br /><br /><br />WITH OBJECT oBrw<br /> :<span style="color: #000000;">nStretchCol</span> := <span style="color: #000000;">1</span><br /> :<span style="color: #000000;">nMarqueeStyle</span> := <span style="color: #000000;">4</span><br /> :<span style="color: #000000;">bClrSelFocus</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, aSelGrad <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bClrRowFocus</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, aRowGrad <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /><br /> :<span style="color: #000000;">nHeaderHeight</span> := <span style="color: #000000;">40</span> <span style="color: #B900B9;">// optional</span><br /> :<span style="color: #000000;">oHeaderFonts</span> := oBold<br /> :<span style="color: #000000;">bClrEdits</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, CLR_YELLOW <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">AutoFit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /><br /><br /><br /><br /><br /><br /><br /><br /> @ <span style="color: #000000;">200</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">lGetBar</span>, <span style="color: #ff0000;">"Hide GetBar"</span>, <span style="color: #ff0000;">"ShowGetBar"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">90</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg FLAT <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">lGetBar</span> := ! oBrw:<span style="color: #000000;">lGetBar</span>, oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">200</span>,<span style="color: #000000;">112</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Set Filter"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg FLAT <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> SetFilter<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">200</span>,<span style="color: #000000;">192</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Clear Filter"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg FLAT <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span><span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> DBCLEARFILTER<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />CLOSE CUSTOMER<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 /><br /><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SetFilter<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cFilter := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">local</span> n, oCol, uVal, cType<br /><br /> <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">)</span><br /> oCol := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> n <span style="color: #000000;">]</span><br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> uVal := oCol:<span style="color: #000000;">uBarGetVal</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">(</span> cFilter <span style="color: #000000;">)</span><br /> cFilter += <span style="color: #ff0000;">" .AND. "</span><br /> <span style="color: #00C800;">endif</span><br /> cType := ValType<span style="color: #000000;">(</span> uVal <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br /> <span style="color: #00C800;">case</span> cType == <span style="color: #ff0000;">'C'</span><br /> uVal := Upper<span style="color: #000000;">(</span> AllTrim<span style="color: #000000;">(</span> uVal <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> cFilter += <span style="color: #ff0000;">'"'</span> + uVal + <span style="color: #ff0000;">'" $ UPPER( '</span> + FieldName<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" )"</span><br /> <span style="color: #00C800;">otherwise</span><br /> cFilter += FieldName<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" == "</span> + cValToChar<span style="color: #000000;">(</span> uVal <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endcase</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">next</span><br /><br /> <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">(</span> cFilter <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> DBFILTER<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> DBCLEARFILTER<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #00C800;">if</span> !<span style="color: #000000;">(</span> DBFILTER<span style="color: #000000;">(</span><span style="color: #000000;">)</span> == cFilter <span style="color: #000000;">)</span><br /> SET FILTER <span style="color: #0000ff;">TO</span> &cFilter<br /> GO TOP<br /> oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /> oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:3ebseleq]
before show the getbar
you digit a name "Gary" and the set the filter and it show only Gary customer |
lSeekBar | Now it seem run ok
Only there is one thing I not Know how resolve
to showthe browse I use these commands
[code=fw:26rd2c3s]<div class="fw" id="{CB}" style="font-family: monospace;"> aBrowse := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> || CU->FIRST <span style="color: #000000;">}</span>, i18n<span style="color: #000000;">(</span><span style="color: #ff0000;">"First"</span><span style="color: #000000;">)</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> || CU->LAST <span style="color: #000000;">}</span>, i18n<span style="color: #000000;">(</span><span style="color: #ff0000;">"Last"</span><span style="color: #000000;">)</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> || CU->STREET<span style="color: #000000;">}</span>, i18n<span style="color: #000000;">(</span><span style="color: #ff0000;">"Street"</span><span style="color: #000000;">)</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> || CU->CITY <span style="color: #000000;">}</span> , i18n<span style="color: #000000;">(</span><span style="color: #ff0000;">"City"</span><span style="color: #000000;">)</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /><br /> <span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">(</span>aBrowse<span style="color: #000000;">)</span><br /> oCol := oApp<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">oGrid</span>:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> * oCol:<span style="color: #000000;">bStrData</span> := aBrowse<span style="color: #000000;">[</span> i, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /> oCol:<span style="color: #000000;">bEditValue</span> := aBrowse<span style="color: #000000;">[</span> i, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /> oCol:<span style="color: #000000;">cHeader</span> := aBrowse<span style="color: #000000;">[</span> i, <span style="color: #000000;">2</span> <span style="color: #000000;">]</span><br /> oCol:<span style="color: #000000;">nWidth</span> := aBrowse<span style="color: #000000;">[</span> i, <span style="color: #000000;">3</span> <span style="color: #000000;">]</span><br /> oCol:<span style="color: #000000;">nDataStrAlign</span> := aBrowse<span style="color: #000000;">[</span> i, <span style="color: #000000;">4</span> <span style="color: #000000;">]</span><br /> oCol:<span style="color: #000000;">nHeadStrAlign</span> := aBrowse<span style="color: #000000;">[</span> i, <span style="color: #000000;">4</span> <span style="color: #000000;">]</span><br /> <span style="color: #00C800;">NEXT</span></div>[/code:26rd2c3s]
I insert also these lines ( only with these lines the getsearch seem run ok)
[code=fw:26rd2c3s]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> oApp<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">oGrid</span>:<span style="color: #000000;">aCols</span> <span style="color: #000000;">)</span><br /> WITH OBJECT oApp<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">oGrid</span>:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> n <span style="color: #000000;">]</span><br /> <span style="color: #00C800;">if</span> FieldType<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> != <span style="color: #ff0000;">'L'</span><br /> :<span style="color: #000000;">uBarGetVal</span> := uValBlank<span style="color: #000000;">(</span> fieldGet<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> FieldType<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> == <span style="color: #ff0000;">'N'</span><br /> :<span style="color: #000000;">cBarGetPic</span> := NumPict<span style="color: #000000;">(</span> FieldLen<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span>, FieldDec<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /> END<br /> <span style="color: #00C800;">next</span></div>[/code:26rd2c3s]
then create the object oApp:oGrdi
oApp():oGrid:lGetBar := .F.
oApp():oGrid:lAutoSort := .t.
oApp():oGrid:bClrEdits:= { || { CLR_BLACK, CLR_YELLOW } }
oApp():oGrid:SetRDD()
oApp():oGrid:CreateFromCode()
[img:26rd2c3s]http://www.iispascalcomiforti.it/wp-content/uploads/2017/01/bb.jpg[/img:26rd2c3s]
the problem is[b:26rd2c3s] I not see the bitmap (lupa)[/b:26rd2c3s] on getsearch any solution please |
lSeekBar ONLY IN SOME COLUMNS xBROWSE | GOOGLE TRASLATOR...
Greetings, I'm trying the option lSeekBar by xBrowse, and I find it quite useful, but I have some doubts, I express them ...
1- Can you select the columns you want to search for? that is, they are not all by default, if so, how do I do it?
2 - you can persolizar the form of search. that is, it is not sequentially from left to right, but located in the column that you want to search, you can search for a word within a sentence, as it is done in MYSQL and the option [b]% value% [ / b], that is, if I have the phrases: The white horse / Satin white / The white color of the clouds, when searching for the word [b] "white" [/ b], the records are filtered and only mustre These phrases could be with a button to tell the search engine to filter the word or words entered.
3- how I do so that a certain column is the initial and not the column 1 for which the search will be done.
4- It would be nice to CLICK on the head of the column, whether the bar appears and not always being shown.
5- I am combining PopupBrowse with lSeekBar and here is where it would be good (for my case), I could search for a word within the sentence of the record and not activate all fields for search if not only the ones you want, for example CODE / NOMBE-DESCIPTION, but I would not need to activate the BALANCE column, to say the least.
I hope not to be so demanding and the best and all this is raised or even working but I do not know or know how to do it, I hope your help, recommendations and suggestions, greetings ... thanks ...: shock: |
lSeekBar ONLY IN SOME COLUMNS xBROWSE | [quote:c8xlkbgy]
1- Can you select the columns you want to search for? that is, they are not all by default, if so, how do I do it?
[/quote:c8xlkbgy]
Incremental seek works on the column that is sorted. If you want to exclude some columns from sorting and incrementa seek, set oCol:cSortOrder := nil for those columns.
[quote:c8xlkbgy]
2 - you can persolizar the form of search. that is, it is not sequentially from left to right, but located in the column that you want to search, you can search for a word within a sentence, as it is done in MYSQL and the option [b]% value% [ / b], that is, if I have the phrases: The white horse / Satin white / The white color of the clouds, when searching for the word [b] "white" [/ b], the records are filtered and only mustre These phrases could be with a button to tell the search engine to filter the word or words entered.
[/quote:c8xlkbgy]
To search for anywhere inside the field:
[code=fw:c8xlkbgy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">lSeekWild</span> := .t.<br /> </div>[/code:c8xlkbgy]
To filter for records:
[code=fw:c8xlkbgy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">lSeekWild</span> := .t. or .f. <span style="color: #B900B9;">// as you choose</span><br />oBrw:<span style="color: #000000;">lIncrFilter</span> := .t.<br />oBrw:<span style="color: #000000;">cFilterFld</span> := <fieldname><br /> </div>[/code:c8xlkbgy]
Please try various combination of these settings.
[quote:c8xlkbgy]
3- how I do so that a certain column is the initial and not the column 1 for which the search will be done.
[/quote:c8xlkbgy]
Set index to that field before starting the xbrowse.
Eg: SET ORDER TO TAG CITY
Incremental seek will start with column CITY.
[quote:c8xlkbgy]
4- It would be nice to CLICK on the head of the column, whether the bar appears and not always being shown.
[/quote:c8xlkbgy]
I do not understand.
[quote:c8xlkbgy]
5- I am combining PopupBrowse with lSeekBar and here is where it would be good (for my case), I could search for a word within the sentence of the record and not activate all fields for search if not only the ones you want, for example CODE / NOMBE-DESCIPTION, but I would not need to activate the BALANCE column, to say the least.
[/quote:c8xlkbgy]
You can make the desired settings using 3rd parameter bInit in the function PopupBrowse. |
lSeekBar ONLY IN SOME COLUMNS xBROWSE | mr rao, thanks for your explanations. I am using my browse autosort and use MySql, if I use oBrw: lSeekBar: = .t. I activate the GET in the columns for incremental search, but if I use oBrw: lSeekWild: = .t. o oBrw: lSeekWild: = .t. together with oBrw: lIncrFilter: = .t. I never activate the GET in the columns for incremental search, also probe with the lines below and nothing, does not activate GET for search
oBrw: lIncrFilter: = .t.
oBrw: lSeekWild: = .t.
oBrw: cFilterFld: = "mp_name"
so I define my xBreowse
[code=fw:yqnw9w5k]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">XBROWSE</span> oBrwMP <span style="color: #0000ff;">OF</span> oWndMatPri NOBORDER <span style="color: #0000ff;">UPDATE</span> ;<br /> DATASOURCE oQryMP ;<br /> LINES CELL <span style="color: #0000ff;">AUTOCOLS</span> AUTOSORT ;<br /> HEADERS <span style="color: #ff0000;">"Código"</span>, <span style="color: #ff0000;">"Nombre o Descripción"</span>, <span style="color: #ff0000;">"Clasificación"</span>, <span style="color: #ff0000;">"Ultimo Costo"</span>, <span style="color: #ff0000;">"Existencia"</span> ;<br /> COLUMNS <span style="color: #ff0000;">"id_mat_prima"</span>, <span style="color: #ff0000;">"mp_nombre"</span>, <span style="color: #ff0000;">"cla_nombre"</span>, <span style="color: #ff0000;">"mp_ultimo_costo"</span>, <span style="color: #ff0000;">"mp_existencia"</span> ;<br /> COLSIZES <span style="color: #000000;">80</span>, <span style="color: #000000;">300</span>, <span style="color: #000000;">300</span>, <span style="color: #000000;">90</span>, <span style="color: #000000;">90</span> ;<br /> JUSTIFY <span style="color: #000000;">2</span> ;<br /> PICTURES , , , <span style="color: #ff0000;">"99,999.99999"</span><br /><br /> mis_browses2<span style="color: #000000;">(</span> oBrwMP <span style="color: #000000;">)</span><br /><br /> WITH OBJECT oBrwMP<br /><br />*:<span style="color: #000000;">lSeekWild</span> := .t.<br />*:<span style="color: #000000;">lIncrFilter</span> := .t.<br />*:<span style="color: #000000;">cFilterFld</span> := <span style="color: #ff0000;">"mp_nombre"</span><br /><br /> :<span style="color: #000000;">bLDblClick</span> := <span style="color: #000000;">{</span>|| dat_mat_pri<span style="color: #000000;">(</span> .f. <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">{</span>|nKey| <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> nKey == VK_RETURN ,;<br /> dat_mat_pri<span style="color: #000000;">(</span> .f. <span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> END<br /><br /><span style="color: #B900B9;">// COLUMNAS ADICIONALES</span><br /> WITH OBJECT oBrwMP:<span style="color: #000000;">InsCol</span><span style="color: #000000;">(</span> Len<span style="color: #000000;">(</span> oBrwMP:<span style="color: #000000;">aCols</span> <span style="color: #000000;">)</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"M"</span><br /> :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br /> :<span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">{</span>|| <span style="color: #ff0000;">""</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">AddResource</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"modi16"</span> <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">nBtnBmp</span> := <span style="color: #000000;">1</span><br /> :<span style="color: #000000;">nEditType</span> := EDIT_BUTTON<br /> :<span style="color: #000000;">bEditBlock</span> := <span style="color: #000000;">{</span> || dat_mat_pri<span style="color: #000000;">(</span> .f. <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Pulse Boton para Modificar Registro"</span><br /> :<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">20</span><br /> END WITH<br /><br /> WITH OBJECT oBrwMP:<span style="color: #000000;">InsCol</span><span style="color: #000000;">(</span> Len<span style="color: #000000;">(</span> oBrwMP:<span style="color: #000000;">aCols</span> <span style="color: #000000;">)</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"E"</span><br /> :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br /> :<span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">{</span>|| <span style="color: #ff0000;">""</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">AddResource</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"elimi16"</span> <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">nBtnBmp</span> := <span style="color: #000000;">1</span><br /> :<span style="color: #000000;">nEditType</span> := EDIT_BUTTON<br /> :<span style="color: #000000;">bEditBlock</span> := <span style="color: #000000;">{</span> || Alert<span style="color: #000000;">(</span><span style="color: #ff0000;">"Eliminar"</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Pulse Boton para Eliminar Registro"</span><br /> :<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">20</span><br /> END WITH<br /><br /> oBrwMP:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:yqnw9w5k]
[code=fw:yqnw9w5k]<div class="fw" id="{CB}" style="font-family: monospace;"><br />PROCEDURE mis_browses2<span style="color: #000000;">(</span> oBrw, nHead, lFooter, lEvalHead, l2007, lFlecha, lBuscador <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DEFAULT</span> nHead := <span style="color: #000000;">30</span><br /> <span style="color: #00C800;">DEFAULT</span> lFooter := .t.<br /> <span style="color: #00C800;">DEFAULT</span> lEvalHead := .t.<br /> <span style="color: #00C800;">DEFAULT</span> l2007 := .t. <span style="color: #B900B9;">// .f. SE PUEDE PONER FONDO COLOR EN FOOTER, SI NO USA GRADIANTE - 18/06/2017</span><br /> <span style="color: #00C800;">DEFAULT</span> lFlecha := .t.<br /> <span style="color: #00C800;">DEFAULT</span> lBuscador := .t.<br /><br />* <span style="color: #00C800;">IF</span> lEvalHead <span style="color: #B900B9;">// VALIDA SI SE CENTRAN TODOS LOS head AUTOMATICAMENTE</span><br /> AEval<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">{</span>|o| o:<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br />* <span style="color: #00C800;">ENDIF</span><br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_HIGHLROW<span style="color: #B900B9;">// HIGHLWIN7(seleccion multiple) //HIGHLROW(seleccion normal)</span><br /> :<span style="color: #000000;">nColDividerStyle</span> := LINESTYLE_LIGHTGRAY <span style="color: #B900B9;">//BLACK</span><br /> :<span style="color: #000000;">lColDividerComplete</span> := .t.<br /> :<span style="color: #000000;">l2007</span> := l2007<br /> :<span style="color: #000000;">nHeaderHeight</span> := nHead<br /> :<span style="color: #000000;">lFooter</span> := lFooter<br /> :<span style="color: #000000;">lAllowColSwapping</span> := .f.<br /> :<span style="color: #000000;">lAllowColHiding</span> := .f.<br /> :<span style="color: #000000;">lRecordSelector</span> := lFlecha <span style="color: #B900B9;">// COLOCA SI/NO COL.IZQ.CON FLECHITA</span><br />*** COLORES<br /> :<span style="color: #000000;">bClrStd</span> = <span style="color: #000000;">{</span>|| <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, <span style="color: #000000;">{</span> CLR_BLACK, RGB<span style="color: #000000;">(</span><span style="color: #000000;">198</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">198</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> ,; <span style="color: #B900B9;">// STANDAR</span><br /> <span style="color: #000000;">{</span> CLR_BLACK, RGB<span style="color: #000000;">(</span><span style="color: #000000;">232</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">232</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bClrSelFocus</span> = <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span> CLR_WHITE, RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">// CUANDO TIENE EL FOCUS</span><br /> :<span style="color: #000000;">bClrSel</span> = <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span> CLR_WHITE, RGB<span style="color: #000000;">(</span><span style="color: #000000;">51</span>, <span style="color: #000000;">102</span>, <span style="color: #000000;">204</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">// REGISTRO SELECCIONADO</span><br />***<br /> :<span style="color: #000000;">lExcelCellWise</span> := .t. <span style="color: #B900B9;">// IMPRIMIR DIRECTO A EXCEL - 04/10/2016</span><br />***<br />*:<span style="color: #000000;">lIncrFilter</span> := lBuscador<br />*:<span style="color: #000000;">lSeekWild</span> := lBuscador<br />*:<span style="color: #000000;">cFilterFld</span> := <span style="color: #ff0000;">"mp_nombre"</span><br /><br />* :<span style="color: #000000;">lSeekBar</span> := lBuscador <span style="color: #B900B9;">// BUSQUEDA INCREMENTAL X TODAS LAS COLUMNAS - 24/06/2018</span><br /> :<span style="color: #000000;">bClrEdits</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, CLR_YELLOW <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br />*** :<span style="color: #000000;">lGetBar</span> := .f. <span style="color: #B900B9;">// POR SI QUIERO QUITAR LA BARRA DE BUSQUEDA EN LAS COLUMNAS - 12/06/2017</span><br /><br /> END<br /> ***<br /> oBrw:<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBrw:<span style="color: #000000;">RefreshFooters</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBrw:<span style="color: #000000;">GoTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBrw:<span style="color: #0000ff;">REFRESH</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span><br /><br /> </div>[/code:yqnw9w5k]
Greetings...thank you... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
lSeekBar ONLY IN SOME COLUMNS xBROWSE | We need to be clear about a few things.
When we set lSeekBar := .t., the boxes we see on the top or NOT GETs. They are only SAYs
Incremental searches work whether lSeekBar is present or not. This functionality of xbrowse is dependent on the keys pressed when xbrowse has focus. If we set lSeekBar to .T., these keystrokes are displayed in the box.
The box is displayed on the top of the column that is sorted. Since, incremental seek works on the sorted column, the keys entered are displayed in the seekbar box just above that column.
But incremental filter has nothing to do with the sorted column. Therefore, lSeekBar is not appropriate for incremental filters.
We may use a normal standard SAY outside the xbrowse:
@ r,c SAY oBrw:oSeek PROMPT oBrw:cSeek SIZE .............. OF oDlg |
lSeekBar ONLY IN SOME COLUMNS xBROWSE | Mr RAO, thank you for your explanation and clarification, the detail is that if I use oBrw: lSeekBar: = .t. only, this shows me below the head of the columns the box to write what I look for and I can see what I write in the SAY, but if I use oBrw: lSeekWild: = .t., then I keep the writing box but I can not see what I write even if he does the filter in the xbrowse ... greetings ... thanks ...
I did it like that:
[code=fw:1xdeapbd]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">lSeekBar</span> := .t.<br />oBrw:<span style="color: #000000;">lIncrFilter</span> := .t.<br />oBrw:<span style="color: #000000;">lSeekWild</span> := .t.<br />oBrw:<span style="color: #000000;">cFilterFld</span> := <span style="color: #ff0000;">"mp_nombre"</span> <span style="color: #B900B9;">// field for the filter / campo para el filtro</span><br />oBrw:<span style="color: #000000;">bClrEdits</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, CLR_YELLOW <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> </div>[/code:1xdeapbd] |
lSeekBar SOLO EN ALGUNAS COLUMNAS xBROWSE | Saludos, estoy probando la opcion lSeekBar de xBrowse, y me parece bastante util, pero tengo unas dudas, las expreso...
1- se puede seleccionar las columnas por las que se quieren hacer busques.? es decir, que no sean todas por defecto, si es asi, como lo hago.?
2- se puede persolizar la forma de busqueda.? es decir que no sea de forma secuencial de izquierda a derecha, si no que ubicado en la columna que se quiere hacer busqueda pueda busca una palabra dentro de una frase, asi como se hace en MYSQL y la opcion [b:1yu7pqdb]%valor%[/b:1yu7pqdb], es decir que si tengo las frases: El caballo blanco / Blanco satinado / El color blanco de las nubes, al hacer busqueda por la palabra [b:1yu7pqdb]"blanco"[/b:1yu7pqdb], se filtren los registros y solo mustre dichas frases, podria ser con un boton para decirle al buscador que haga el filtro de la palabra o palabras entradas.
3- como hago para que una columna determinada sea la inicial y no la columna 1 por la cual se va hacer la busqueda.
4- bueno seria que al hacer CLICK en la cabezera de la columna, sea que aparezca la barra y no que siempre se este mostrando.
5- estoy combinando PopupBrowse con lSeekBar y aca es donde seria bueno(para mi caso), que pudiese buscar una palabra dentro de la frase del registro y que no se activen todos los campos para busqueda si no solo las que uno desee, por ejemplo CODIGO / NOMBE-DESCIPCION, mas no me necesitaria que se active la columna de SALDO, por decir algo.
Espero no ser tan exigente y a los mejor ya todo esto esta planteado o hasta funcionando pero no lo conozco o se como hacerlo, espero sus ayudas, recomendaciones y sugerencias, saludos...gracias... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
lSeekBar SOLO EN ALGUNAS COLUMNAS xBROWSE | Hola Jose Luis:
Puedes probar con los valores de la clase xbrowse
// Data for Incremental Seeks/Filters
DATA lSeekWild AS LOGICAL INIT .f.
DATA lIncrFilter AS LOGICAL INIT .f.
DATA bFilterExp
DATA cFilterFld
// end of block
Con lSeekWild en .t. busca por contenido y no por inicio de la frase
lIncrfilter en .t. solo muestra en el browse lo que coincide con lo tecleado
En bFilterExp puedes definir la funcion que filtra, aunque por defecto filtra por el campo que esta ordenado
En cFilterFld inidicas que campo debe ser el usado para filtrar. En tu caso lo deberas ir cambiando cada vez que cambies la columna por la que quieres filtrar
Espero que te sea de utilidad |
lSeekBar SOLO EN ALGUNAS COLUMNAS xBROWSE | [quote="cmsoft":3r5ko7q1]Hola Jose Luis:
Puedes probar con los valores de la clase xbrowse
// Data for Incremental Seeks/Filters
DATA lSeekWild AS LOGICAL INIT .f.
DATA lIncrFilter AS LOGICAL INIT .f.
DATA bFilterExp
DATA cFilterFld
// end of block
Con lSeekWild en .t. busca por contenido y no por inicio de la frase
lIncrfilter en .t. solo muestra en el browse lo que coincide con lo tecleado
En bFilterExp puedes definir la funcion que filtra, aunque por defecto filtra por el campo que esta ordenado
En cFilterFld inidicas que campo debe ser el usado para filtrar. En tu caso lo deberas ir cambiando cada vez que cambies la columna por la que quieres filtrar
Espero que te sea de utilidad[/quote:3r5ko7q1]
CmSoft, muy buen y clara tu informacion, no conoica esas DATA, apunto que estoy usando MYSQL, no se si haya algun problema o cambio con eso...si tienes algun sample, me gustaria usar mi propia funcion de filtro, vere si se puede aplicar, saludos, gracias... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
lSeekBar SOLO EN ALGUNAS COLUMNAS xBROWSE | Si, no hay problemas en usar MySql. Funciona muy bien.
Aca hay un ejemplo
<!-- m --><a class="postlink" href="http://fivetechsupport.com/forums/viewtopic.php?f=6&t=30427&p=174246&hilit=busqueda+incremental&sid=10aceba531713fd932be085eea645d3b#p174246">http://fivetechsupport.com/forums/viewt ... 3b#p174246</a><!-- m --> |
lSeekBar doubt | Hi,
I'm trying lseekbar and works great, but not work in field type date. Any tip? Thanks! |
lTabLikeExcel := .t. Excel Tab Fwh1503 | Rao
I was very pleased to see that you made allowance for using the Tab key to navigate through xBrowse like Excel. I placed lTabLikeExcel := .t at the top of my program and it seemed to make no difference in the navigation with or without the data define. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Perhaps I am using it wrong ?
Rick Lipkin |
lTabLikeExcel := .t. Excel Tab Fwh1503 | This is not CLASSDATA.
So this is to be set for each instance of xbrowse. |
lTabLikeExcel := .t. Excel Tab Fwh1503 | Rao
I placed lTabLikeExcel := .t. at the top of my workorder program that I want xBrowse to behave as Excel and again, it made no difference.
Rick Lipkin |
lTabLikeExcel := .t. Excel Tab Fwh1503 | @ r,c, XBROWSE oBrw ..............
WITH OBJECT oBrw
<all other settings>
:lTabLikeExcel := .t.
<other settings>
:CreateFromCode()
END |
lTabLikeExcel := .t. Excel Tab Fwh1503 | Rao
Just tried that .. . The Tab key will not tab thru EDIT_GET_BUTTON Column 6 <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Rick Lipkin
[code=fw:9vivuirp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xBROWSE</span> oLBXB ;<br /> RECORDSET oRsDetail ;<br /> COLUMNS <span style="color: #ff0000;">"QTY"</span>, ;<br /> <span style="color: #ff0000;">"INVENTORY ID"</span>, ;<br /> <span style="color: #ff0000;">"INVENTORY TYPE"</span>, ;<br /> <span style="color: #ff0000;">"ITEM DESCRIPTION"</span>, ;<br /> <span style="color: #ff0000;">"PRICE"</span>, ;<br /> <span style="color: #ff0000;">"LOCATION"</span>, ;<br /> <span style="color: #ff0000;">"COVERED BY WARRANTY"</span> ;<br /> COLSIZES <span style="color: #000000;">45</span>,<span style="color: #000000;">115</span>,<span style="color: #000000;">55</span>,<span style="color: #000000;">300</span>,<span style="color: #000000;">65</span>,<span style="color: #000000;">150</span>,<span style="color: #000000;">80</span>,<span style="color: #000000;">50</span> ; <span style="color: #B900B9;">//120</span><br /> HEADERS <span style="color: #ff0000;">"Qty"</span>, ;<br /> <span style="color: #ff0000;">"Part Number"</span>, ;<br /> <span style="color: #ff0000;">"Type"</span>, ;<br /> <span style="color: #ff0000;">"Description"</span>, ;<br /> <span style="color: #ff0000;">"Price"</span>, ;<br /> <span style="color: #ff0000;">"Location"</span>, ;<br /> <span style="color: #ff0000;">"Warranty"</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">172</span> <span style="color: #0000ff;">of</span> oWorkB ;<br /> <span style="color: #0000ff;">AUTOCOLS</span> LINES CELL FASTEDIT<br /><br /> <span style="color: #B900B9;">// row numbers</span><br /> ADD oCol <span style="color: #0000ff;">to</span> oLbxB <span style="color: #00C800;">AT</span> <span style="color: #000000;">1</span> <span style="color: #00C800;">DATA</span> oLbxB:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> HEADER <span style="color: #ff0000;">'Ln'</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">23</span> <span style="color: #B900B9;">//PICTURE '9999'</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nDataStrAlign</span> := AL_LEFT<br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nHeadStrAlign</span> := AL_LEFT<br /><br /><br /> <span style="color: #00C800;">If</span> cMode <> <span style="color: #ff0000;">"V"</span><br /><br /> AEval<span style="color: #000000;">(</span> oLbxB:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">{</span> |o| o:<span style="color: #000000;">nEditType</span> := EDIT_GET <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">// row number</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nEditType</span> := EDIT_NONE<br /><br /> <span style="color: #B900B9;">// qty</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bEditWhen</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>oRsDetail:<span style="color: #000000;">Eof</span>, ,<span style="color: #00C800;">If</span><span style="color: #000000;">(</span>oRsDetail:<span style="color: #000000;">fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"LockedDown"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> = .f., .t.,.f.<span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bOnPostEdit</span> := <span style="color: #000000;">{</span>|o,v| <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>_ChkSerial<span style="color: #000000;">(</span> v,oRsDetail,oLbxB<span style="color: #000000;">)</span>,;<br /> _InvtLook<span style="color: #000000;">(</span> v, oRsDetail, oRsRepair, <span style="color: #ff0000;">"2"</span>, oLbxB, @lTaxable,oTaxable, cLoc,;<br /> oLabor,oParts,oMisc,oTax,oTotal,nTaxNumber,nAssignedTo<span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> <span style="color: #B900B9;">// part number</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bEditWhen</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>oRsDetail:<span style="color: #000000;">Eof</span>, ,<span style="color: #00C800;">If</span><span style="color: #000000;">(</span>oRsDetail:<span style="color: #000000;">fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"LockedDown"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> = .f., .t.,.f.<span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> * oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bOnPreEdit</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>oRsDetail:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Inventory Id"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> = <span style="color: #ff0000;">" "</span>, , __Keyboard<span style="color: #000000;">(</span> Chr<span style="color: #000000;">(</span> VK_HOME <span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bOnPostEdit</span> := <span style="color: #000000;">{</span>|o,v| _InvtLook<span style="color: #000000;">(</span> v, oRsDetail, oRsRepair, <span style="color: #ff0000;">"3"</span>, oLbxB, @lTaxable, oTaxable, cLoc,;<br /> oLabor,oParts,oMisc,oTax,oTotal,nTaxNumber,nAssignedTo<span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> <span style="color: #B900B9;">// type</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nEditType</span> := EDIT_LISTBOX<br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span>:<span style="color: #000000;">aEditListTxt</span> := aType<br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bOnPostEdit</span> := <span style="color: #000000;">{</span>|o,v| _GetPullDown<span style="color: #000000;">(</span> v,oLbxB,oRsDetail <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> <span style="color: #B900B9;">// description</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nEditType</span> := EDIT_GET<br /> * oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bOnPreEdit</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>oRsDetail:<span style="color: #000000;">Eof</span>, ,<span style="color: #00C800;">If</span><span style="color: #000000;">(</span>oRsDetail:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Item Description"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> = <span style="color: #ff0000;">" "</span>,;<br /> * __Keyboard<span style="color: #000000;">(</span> Chr<span style="color: #000000;">(</span> VK_HOME <span style="color: #000000;">)</span><span style="color: #000000;">)</span> ,;<br /> * __Keyboard<span style="color: #000000;">(</span> Chr<span style="color: #000000;">(</span> VK_HOME <span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bOnPostEdit</span> := <span style="color: #000000;">{</span>|o,v| _GetText<span style="color: #000000;">(</span> v,oLbxB,oRsDetail <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><br /> <span style="color: #B900B9;">// labor</span><br /> ADD oCol <span style="color: #0000ff;">to</span> oLbxB <span style="color: #00C800;">AT</span> <span style="color: #000000;">6</span> HEADER <span style="color: #ff0000;">'Labor'</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">50</span> <span style="color: #B900B9;">//60</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">6</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">nEditType</span> := EDIT_GET_BUTTON<br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">6</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">bEditBlock</span> := <span style="color: #000000;">{</span>|row, col, oCol| ;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>oRsDetail:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Inventory Type"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> = <span style="color: #ff0000;">"Labor"</span>,;<br /> <span style="color: #000000;">(</span> nAmount := _LabrBrow<span style="color: #000000;">(</span> ;<br /> nRepairNumber,;<br /> aEmp,;<br /> aTech,;<br /> oRsDetail,;<br /> <span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">"R"</span>,<span style="color: #ff0000;">"A"</span>,oRsDetail:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Unique Line"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> <span style="color: #000000;">)</span>,;<br /> oRsDetail:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Price"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := nAmount,;<br /> oRsDetail:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Type is not Labor"</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">// repair</span><br /><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">6</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">addbmpfile</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"clockview"</span> <span style="color: #000000;">)</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">6</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">addbmpfile</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"clockadd"</span> <span style="color: #000000;">)</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">6</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span> | lValue | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oRsDetail:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"IsLabor"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> = .t., <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> * oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">6</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">lBtnTransparent</span> := .t.<br /><br /> <span style="color: #B900B9;">// Price</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">7</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nEditType</span> := EDIT_GET<br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">7</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bOnPostEdit</span> := <span style="color: #000000;">{</span>|o,p| _GetPrice<span style="color: #000000;">(</span> p,oLbxB,oRsDetail,oRsRepair,lTaxable,oTaxable,;<br /> oLabor,oParts,oMisc,oTax,oTotal,nTaxNumber<span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> <span style="color: #B900B9;">// extention</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oLbxB <span style="color: #00C800;">AT</span> <span style="color: #000000;">8</span> <span style="color: #00C800;">DATA</span> <span style="color: #000000;">{</span>|x| x := _CalcExt<span style="color: #000000;">(</span> oRsDetail:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Qty"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span>,;<br /> oRsDetail:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Price"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> <span style="color: #000000;">)</span><span style="color: #000000;">}</span> HEADER <span style="color: #ff0000;">'Ext'</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">65</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">8</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nEditType</span> := EDIT_NONE<br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">8</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">8</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nHeadStrAlign</span> := AL_RIGHT<br /><br /> <span style="color: #B900B9;">// serial number</span><br /> ADD oCol <span style="color: #0000ff;">to</span> oLbxB <span style="color: #00C800;">AT</span> <span style="color: #000000;">9</span> HEADER <span style="color: #ff0000;">'Serial Num'</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">60</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">9</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">nEditType</span> := EDIT_GET_BUTTON<br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">9</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">bEditBlock</span> := <span style="color: #000000;">{</span>|row, col, oCol| oLbxB:<span style="color: #000000;">GoLeftMost</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,_SerBrow<span style="color: #000000;">(</span>;<br /> nRepairNumber,;<br /> oRsDetail:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Inventory Id"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span>,;<br /> oRsDetail:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Qty"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span>,;<br /> oRsDetail:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Unique Line"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span>,;<br /> oRsDetail,;<br /> <span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">"R"</span>,<span style="color: #ff0000;">"A"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">// repair</span><br /><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">9</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">addbmpfile</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"zoom2"</span> <span style="color: #000000;">)</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">9</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">addbmpfile</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"adddbf"</span> <span style="color: #000000;">)</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">9</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span> | lValue | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oRsDetail:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"IsSerial"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> = .t., <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> * oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">9</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">lBtnTransparent</span> := .t.<br /><br /><br /> <span style="color: #B900B9;">// location</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">10</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nEditType</span> := EDIT_NONE<br /><br /> <span style="color: #B900B9;">// warranty</span><br /> oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">11</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nEditType</span> := EDIT_GET<br /> <span style="color: #00C800;">if</span> ! empty<span style="color: #000000;">(</span>oCol := oLbxB:<span style="color: #000000;">oCol</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"WARRANTY"</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"ON"</span>, <span style="color: #ff0000;">"OFF"</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">cSortOrder</span> := <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">endif</span><br /><br /> * oLbxB:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span><span style="color: #00C800;">if</span><span style="color: #000000;">(</span>oRsDetail:<span style="color: #000000;">fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"LockedDown"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> = .t., CLR_BLUE, CLR_BLACK<span style="color: #000000;">)</span>, CLR_WHITE <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> oLbxB:<span style="color: #000000;">oCol</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Qty"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span><span style="color: #00C800;">if</span><span style="color: #000000;">(</span>oRsDetail:<span style="color: #000000;">fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"LockedDown"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> = .t., CLR_HBLUE, CLR_BLACK<span style="color: #000000;">)</span>, CLR_WHITE <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> oLbxB:<span style="color: #000000;">oCol</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Part Number"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span><span style="color: #00C800;">if</span><span style="color: #000000;">(</span>oRsDetail:<span style="color: #000000;">fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"LockedDown"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> = .t., CLR_HBLUE, CLR_BLACK<span style="color: #000000;">)</span>, CLR_WHITE <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> oLbxB:<span style="color: #000000;">oCol</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Type"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span><span style="color: #00C800;">if</span><span style="color: #000000;">(</span>oRsDetail:<span style="color: #000000;">fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"LockedDown"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> = .t., CLR_HBLUE, CLR_BLACK<span style="color: #000000;">)</span>, CLR_WHITE <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> oLbxB:<span style="color: #000000;">oCol</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Ext"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span><span style="color: #00C800;">if</span><span style="color: #000000;">(</span>oRsDetail:<span style="color: #000000;">fields</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"LockedDown"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> = .t., CLR_HBLUE, CLR_BLACK<span style="color: #000000;">)</span>, CLR_WHITE <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /> WITH OBJECT oLbxB<br /> :<span style="color: #000000;">lTabLikeExcel</span> := .t.<br /> END<br /><br /> <span style="color: #B900B9;">// add a new record</span><br /> oLbxB:<span style="color: #000000;">bPastEof</span> = <span style="color: #000000;">{</span>|| _AddNewRow<span style="color: #000000;">(</span> oRsDetail,nRepairNumber,nAssignedTo,cLoc,oLbxB,<span style="color: #ff0000;">"N"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">Endif</span><br /><br /> </div>[/code:9vivuirp]
[img:9vivuirp]http://i60.tinypic.com/123us8x.jpg[/img:9vivuirp] |
lTabLikeExcel := .t. Excel Tab Fwh1503 | I see.
Does it tab through all other columns? |
lTabLikeExcel := .t. Excel Tab Fwh1503 | Rao
YES .. it appears so ...
Rick Lipkin |
lTabLikeExcel := .t. Excel Tab Fwh1503 | Rao
It appears that when the cursor hits EDIT_GET_BUTTON .. xBrowse loses focus and the cursor moves to different controls on the form.
Rick Lipkin |
la clase TURL en que lib o libs de xharbour esta | Amigos
uso tip.lib para usar TURL pero me generate un GPF
uso xharbour 0.99.60
he aqui un ejemplo
vzdownload("http://www.aduanet.gob.pe/aduanas/sgdbf/Vehiculos.zip","Vehiculos.zip")
FUNC VZDOWNLOAD( cGUARDAR , cCOMO )
Local oUrl := tURL():New(cGUARDAR)
Local oClient := tIPClient():New( oUrl )
oClient:nConnTimeout := 20000
oClient:Open( oUrl )
oClient:ReadToFile( cCOMO )
oClient:Close()
retu .t.
Thanks |
la clase TURL en que lib o libs de xharbour esta | Vladimir
Source\Classes
UrlLink.prg
SALUDOS |
la clase TURL en que lib o libs de xharbour esta | Tienes que linkear libreria TIP.LIB de xHarbour |
la clase TURL en que lib o libs de xharbour esta | oUrl := tURL():New(“http://www.my.com/down/a1.dll")
get a crash.
Regards!
Shuming Wang |
la clase de TheFull imprime apaisada? | Buenos dias.
Tengo un reporte en el cual las dos ultimas hojas deben ser impresa apaisadas (por la cantidad de columnas que contiene debo hacerlo)
si en la TIMPRIME le pongo:
[code=fw:3ozbyp2q]<div class="fw" id="{CB}" style="font-family: monospace;">::<span style="color: #000000;">SetLandScape</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span></div>[/code:3ozbyp2q]
[code=fw:3ozbyp2q]<div class="fw" id="{CB}" style="font-family: monospace;"> IMPRIME <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">"LISTADO"</span><br /> <br /> ::<span style="color: #000000;">nHoja</span> := <span style="color: #000000;">1</span><br /> <br /> <span style="color: #0000ff;">PAGE</span><br /> ::<span style="color: #000000;">cabecera</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">lineas</span><span style="color: #000000;">(</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">total_hoja</span><span style="color: #000000;">(</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ENDPAGE</span><br /> <br /> <span style="color: #000000;">[</span>...<span style="color: #000000;">]</span><br /> ::<span style="color: #000000;">nHoja</span> := <span style="color: #000000;">5</span><br /><br /> <span style="color: #0000ff;">PAGE</span><br /><br /> ::<span style="color: #000000;">SetLandScape</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">cabecera_A</span><span style="color: #000000;">(</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ENDPAGE</span></div>[/code:3ozbyp2q]
me tira todo el reporte apaisado, como debo proceder para que se imprima solo las dos ultimas?
Gracias. |
la dialog va in loop | Considerando il file esempio TESTMDI4.PRG nella cartella SAMPLES e che mi funziona perfettamente, ho creato questa procedura:
nel file a.prg ho
static oWnd
.....
DEFINE WINDOW oWnd ;
TITLE "Procedure A" ;
MDI ;
MENU BuildMenu() ;
ICON oIcon
....
ACTIVATE WINDOW oWnd ;
VALID MsgYesNo( "Vuoi Uscire ?","Seleziona un opzione" )
....
function BuildMenu()
local oMenu
MENU oMenu
MENUITEM "&Stampe"
MENU
MENUITEM "Stampa A" ACTION dialog0("1",@oWnd) ;
MESSAGE "Elaborazione"
.....
NEL file b.prg ho invece:
le varie definizioni di variabili tra cui un array chiamato m_get
quindi richiamo dialog1
FUNCTION dialog1(sw, ;
m_get,oWnd ;
)
local BtnOk
local BtnEsc
local oFont
local oWndChild
DEFINE WINDOW oWndChild MDICHILD OF oWnd
oWndChild:bGotFocus = { || m_get[02]:SetFocus() }
DEFINE DIALOG m_get[02] RESOURCE "STASSI" OF oWndChild
REDEFINE GET m_get[03] ID 101 OF m_get[02] ;
PICTURE "@ 99/99/9999"
REDEFINE METER m_get[4] VAR m_get[5] ID 501 TOTAL 1000 OF m_get[02]
REDEFINE BTNBMP BtnOk ID 1 OF m_get[02] RESOURCE "CONFERMA" ;
ACTION (stassiv11(@sw,@m_get))
REDEFINE BTNBMP BtnEsc ID 2 OF m_get[02] RESOURCE "ESCI" ;
ACTION (sw:=0, oWndChild:End())
ACTIVATE DIALOG m_get[2] NOWAIT ;
ON INIT m_get[02]:Move( 0, 0 ) ;
VALID ( oWndChild:End(), .t. ) CENTERED
ACTIVATE WINDOW oWndChild ;
ON INIT oWndChild:SetSize( m_get[02]:nWidth, m_get[02]:nHeight )
Return NIL
Quando lancio l'exe la dialog va in loop
qualcuno può aiutarmi? |
la forma mas simple de construir desde vscode | Cual es la forma más simple de construir un PRG que estemos editando ?
gracias |
la forma mas simple de construir desde vscode | [quote="Antonio Linares":2595yfrp]Cual es la forma más simple de construir un PRG que estemos editando ?
gracias[/quote:2595yfrp]A que te refieres con "construir un PRG"
Enviado desde mi motorola edge 20 mediante Tapatalk |
la forma mas simple de construir desde vscode | Imagina que tengo este código en pantalla:
[code=fw:1k1yij9o]<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;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Hello world"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1k1yij9o]
Por lo visto al pulsar Ctrl + Shift + B lanzamos el "build task" por defecto. Este task debería construir ese PRG y ejecutarlo
Entiendo que seria lo más simple. Ahora es dar con el task adecuado <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Tal vez haya otra forma mas simple aún |
la forma mas simple de construir desde vscode | Para poder compiliar cualquier prg que este en FWH, podríamos utilizar los parámetros.
Faltaría añadir en el bat condiciones para verificar si hay que incluir un archivo rc.
La tarea seria:
[code=fw:2lstegir]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"version"</span>: <span style="color: #ff0000;">"2.0.0"</span>,<br /> <span style="color: #ff0000;">"tasks"</span>: <span style="color: #000000;">[</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"label"</span>: <span style="color: #ff0000;">"build"</span>,<br /> <span style="color: #ff0000;">"type"</span>: <span style="color: #ff0000;">"shell"</span>,<br /> <span style="color: #ff0000;">"command"</span>: <span style="color: #ff0000;">".<span style="color: #000000;">\\</span>go32.bat ${file}"</span><br /> <span style="color: #000000;">}</span><br /><span style="color: #000000;">]</span><br /><span style="color: #000000;">}</span></div>[/code:2lstegir]
Donde $(file) se va a sustituir por el fichero que estas visualizando en vscode
go32.bat tendría la llamada a ese fichero pasado por parámetro "%1" y un hbp genérico para todos
[code=fw:2lstegir]<div class="fw" id="{CB}" style="font-family: monospace;">call <span style="color: #ff0000;">"%ProgramFiles%<span style="color: #000000;">\M</span>icrosoft Visual Studio<span style="color: #000000;">\2</span>022<span style="color: #000000;">\C</span>ommunity<span style="color: #000000;">\V</span>C<span style="color: #000000;">\A</span>uxiliary<span style="color: #000000;">\B</span>uild<span style="color: #000000;">\v</span>cvarsall.bat"</span> x86<br />c:\harbour\bin\hbmk2 %<span style="color: #000000;">1</span> fivewin.hbp -comp=msvc</div>[/code:2lstegir]
fivewin.hbp
[code=fw:2lstegir]<div class="fw" id="{CB}" style="font-family: monospace;">-gui<br /><br />-mt<br /><br />-Ic:\fwh\include<br /><br />-Lc:\fwh\lib2<br />-lFiveH32<br />-lFiveHC32<br /><br />-lgdiplus<br />-lole32<br />-lOleDlg<br />-lversion<br /><br />xhb.hbc<br />hbct.hbc<br />hbwin.hbc<br />hbmzip.hbc<br />hbziparc.hbc<br />hbfoxpro.hbc<br />hbvmmt.hbc<br /><br />-ldflag=/NODEFAULTLIB:<span style="color: #000000;">MSVCRT</span> <br /> </div>[/code:2lstegir] |
la forma mas simple de construir desde vscode | [url:azoyf771]https://code.visualstudio.com/docs/editor/variables-reference[/url:azoyf771] |
la forma mas simple de construir desde vscode | Y si no quieres tener el archivo abierto, se podría hacer pidiendo el nombre por variable
[code=fw:27gdc0k6]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"version"</span>: <span style="color: #ff0000;">"2.0.0"</span>,<br /> <span style="color: #ff0000;">"tasks"</span>: <span style="color: #000000;">[</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"label"</span>: <span style="color: #ff0000;">"build"</span>,<br /> <span style="color: #ff0000;">"type"</span>: <span style="color: #ff0000;">"shell"</span>,<br /> <span style="color: #ff0000;">"command"</span>: <span style="color: #ff0000;">".<span style="color: #000000;">\\</span>go32.bat ${input:variableID}"</span><br /> <span style="color: #000000;">}</span><br /> <span style="color: #000000;">]</span>,<br /> <span style="color: #ff0000;">"inputs"</span>: <span style="color: #000000;">[</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"id"</span>: <span style="color: #ff0000;">"variableID"</span>,<br /> <span style="color: #ff0000;">"type"</span>: <span style="color: #ff0000;">"promptString"</span>,<br /> <span style="color: #ff0000;">"description"</span>: <span style="color: #ff0000;">"Indica el nombre del prg"</span><br /> <span style="color: #000000;">}</span><br /> <span style="color: #000000;">]</span><br /> <span style="color: #000000;">}</span></div>[/code:27gdc0k6] |
la forma mas simple de construir desde vscode | go32.bat incluyendo el rc:
[code=fw:dylmpz9m]<div class="fw" id="{CB}" style="font-family: monospace;">del %<span style="color: #000000;">1</span>.exe<br />call <span style="color: #ff0000;">"%ProgramFiles%<span style="color: #000000;">\M</span>icrosoft Visual Studio<span style="color: #000000;">\2</span>022<span style="color: #000000;">\C</span>ommunity<span style="color: #000000;">\V</span>C<span style="color: #000000;">\A</span>uxiliary<span style="color: #000000;">\B</span>uild<span style="color: #000000;">\v</span>cvarsall.bat"</span> x86<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.rc <span style="color: #000000;">(</span><br /> c:\harbour\bin\hbmk2 %<span style="color: #000000;">1</span>.prg %<span style="color: #000000;">1</span>.rc testvc.hbp -comp=msvc<br /><span style="color: #000000;">)</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">(</span><br /> c:\harbour\bin\hbmk2 %<span style="color: #000000;">1</span>.prg testvc.hbp -comp=msvc<br /><span style="color: #000000;">)</span><br />%<span style="color: #000000;">1</span>.exe</div>[/code:dylmpz9m]
La tarea teniendo el archivo prg abiero:
[code=fw:dylmpz9m]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"version"</span>: <span style="color: #ff0000;">"2.0.0"</span>,<br /> <span style="color: #ff0000;">"tasks"</span>: <span style="color: #000000;">[</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"label"</span>: <span style="color: #ff0000;">"build"</span>,<br /> <span style="color: #ff0000;">"type"</span>: <span style="color: #ff0000;">"shell"</span>,<br /> <span style="color: #ff0000;">"command"</span>: <span style="color: #ff0000;">"C:<span style="color: #000000;">\\</span>FWH<span style="color: #000000;">\\</span>samples<span style="color: #000000;">\\</span>go32.bat ${fileBasenameNoExtension}"</span>,<br /> <span style="color: #ff0000;">"options"</span>: <span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"cwd"</span>: <span style="color: #ff0000;">"${fileDirname}"</span><br /> <span style="color: #000000;">}</span><br /> <span style="color: #000000;">}</span><br /><span style="color: #000000;">]</span><br /><span style="color: #000000;">}</span><br /> </div>[/code:dylmpz9m]
La tarea sin tener el prg abierto (con parámetro) e incluso desde cualquier carpeta
[code=fw:dylmpz9m]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"version"</span>: <span style="color: #ff0000;">"2.0.0"</span>,<br /> <span style="color: #ff0000;">"tasks"</span>: <span style="color: #000000;">[</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"label"</span>: <span style="color: #ff0000;">"build"</span>,<br /> <span style="color: #ff0000;">"type"</span>: <span style="color: #ff0000;">"shell"</span>,<br /> <span style="color: #ff0000;">"command"</span>: <span style="color: #ff0000;">"C:<span style="color: #000000;">\\</span>FWH<span style="color: #000000;">\\</span>Samples<span style="color: #000000;">\\</span>go32.bat ${input:variableID}"</span>,<br /> <span style="color: #ff0000;">"options"</span>: <span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"cwd"</span>: <span style="color: #ff0000;">"C:<span style="color: #000000;">\\</span>FWH<span style="color: #000000;">\\</span>Samples"</span><br /> <span style="color: #000000;">}</span><br /> <span style="color: #000000;">}</span><br /> <span style="color: #000000;">]</span>,<br /> <span style="color: #ff0000;">"inputs"</span>: <span style="color: #000000;">[</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"id"</span>: <span style="color: #ff0000;">"variableID"</span>,<br /> <span style="color: #ff0000;">"type"</span>: <span style="color: #ff0000;">"promptString"</span>,<br /> <span style="color: #ff0000;">"description"</span>: <span style="color: #ff0000;">"Indica el nombre del prg. sin extensión"</span><br /> <span style="color: #000000;">}</span><br /> <span style="color: #000000;">]</span><br /> <span style="color: #000000;">}</span><br /> </div>[/code:dylmpz9m] |
la forma mas simple de construir desde vscode | Querido Fernando,
muchas gracias por compartir y enseñar.
He hecho unas pequeñas modificaciones que me gustaria tu opinión
El fichero tasks.json lo he modificado asi:
[code=fw:2rz3p8s1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"version"</span>: <span style="color: #ff0000;">"2.0.0"</span>,<br /> <span style="color: #ff0000;">"tasks"</span>: <span style="color: #000000;">[</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"label"</span>: <span style="color: #ff0000;">"build"</span>,<br /> <span style="color: #ff0000;">"type"</span>: <span style="color: #ff0000;">"shell"</span>,<br /> <span style="color: #ff0000;">"command"</span>: <span style="color: #ff0000;">"c:<span style="color: #000000;">\\</span>Users<span style="color: #000000;">\\</span>anto<span style="color: #000000;">\\</span>Documents<span style="color: #000000;">\\</span>go32.bat ${fileDirname}/${fileBasename} ${fileDirname}<span style="color: #000000;">\\</span>${fileBasenameNoExtension}.exe"</span><br /> <span style="color: #000000;">}</span><br /><span style="color: #000000;">]</span><br /><span style="color: #000000;">}</span></div>[/code:2rz3p8s1]
con la idea de que go32.bat reciba dos parámetros:
[code=fw:2rz3p8s1]<div class="fw" id="{CB}" style="font-family: monospace;">call <span style="color: #ff0000;">"%ProgramFiles%<span style="color: #000000;">\M</span>icrosoft Visual Studio<span style="color: #000000;">\2</span>022<span style="color: #000000;">\C</span>ommunity<span style="color: #000000;">\V</span>C<span style="color: #000000;">\A</span>uxiliary<span style="color: #000000;">\B</span>uild<span style="color: #000000;">\v</span>cvarsall.bat"</span> x86<br />c:\harbour\bin\hbmk2 %<span style="color: #000000;">1</span> c:\users\anto\documents\fivewin.hbp -comp=msvc<br />%<span style="color: #000000;">2</span></div>[/code:2rz3p8s1]
fivewin.hbp lo he modificado para que genere el nombre del EXE adecuado:
[code=fw:2rz3p8s1]<div class="fw" id="{CB}" style="font-family: monospace;">-o$<span style="color: #000000;">{</span>hb_dir<span style="color: #000000;">}</span><br />-gui<br />-trace<br /><br />-Ic:\fwh\include<br /><br />-Lc:\fwh\lib<br />-lFiveH32<br />-lFiveHC32<br /><br />-lgdiplus<br />-lole32<br />-lOleDlg<br />-lversion<br /><br />xhb.hbc<br />hbct.hbc<br />hbwin.hbc<br />hbmzip.hbc<br />hbziparc.hbc<br />hbfoxpro.hbc<br /><br />-ldflag=/NODEFAULTLIB:<span style="color: #000000;">MSVCRT</span> <br />-ldflag=/FORCE:<span style="color: #000000;">multiple</span><br /> </div>[/code:2rz3p8s1]
Está funcionado, con solo pulsar Ctrl + Mayus + B <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Si ves una forma de simplificarlo, bienvenida sea <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
un abrazo |
la forma mas simple de construir desde vscode | buenos dias
Esta versión parece más simple y solo usa un variable:
tasks.json
[code=fw:11e2datj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"version"</span>: <span style="color: #ff0000;">"2.0.0"</span>,<br /> <span style="color: #ff0000;">"tasks"</span>: <span style="color: #000000;">[</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"label"</span>: <span style="color: #ff0000;">"build"</span>,<br /> <span style="color: #ff0000;">"type"</span>: <span style="color: #ff0000;">"shell"</span>,<br /> <span style="color: #ff0000;">"command"</span>: <span style="color: #ff0000;">"c:<span style="color: #000000;">\\</span>Users<span style="color: #000000;">\\</span>anto<span style="color: #000000;">\\</span>Documents<span style="color: #000000;">\\</span>go32.bat ${fileDirname}<span style="color: #000000;">\\</span>${fileBasenameNoExtension}"</span>,<br /> <span style="color: #ff0000;">"problemMatcher"</span>: <span style="color: #000000;">[</span><br /> <span style="color: #ff0000;">"$harbour"</span><br /> <span style="color: #000000;">]</span><br /> <span style="color: #000000;">}</span><br /> <span style="color: #000000;">]</span><br /><span style="color: #000000;">}</span></div>[/code:11e2datj]
con lo que go32.bat cambia asi:
[code=fw:11e2datj]<div class="fw" id="{CB}" style="font-family: monospace;">del %<span style="color: #000000;">1</span>.exe<br />call <span style="color: #ff0000;">"%ProgramFiles%<span style="color: #000000;">\M</span>icrosoft Visual Studio<span style="color: #000000;">\2</span>022<span style="color: #000000;">\C</span>ommunity<span style="color: #000000;">\V</span>C<span style="color: #000000;">\A</span>uxiliary<span style="color: #000000;">\B</span>uild<span style="color: #000000;">\v</span>cvarsall.bat"</span> x86<br /><span style="color: #00C800;">if</span> exist %<span style="color: #000000;">1</span>.rc <span style="color: #000000;">(</span><br /> c:\harbour\bin\hbmk2 %<span style="color: #000000;">1</span>.prg %<span style="color: #000000;">1</span>.rc c:\users\anto\documents\fivewin.hbp -o%<span style="color: #000000;">1</span> -comp=msvc<br /><span style="color: #000000;">)</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">(</span><br /> c:\harbour\bin\hbmk2 %<span style="color: #000000;">1</span>.prg c:\users\anto\documents\fivewin.hbp -o%<span style="color: #000000;">1</span> -comp=msvc<br /><span style="color: #000000;">)</span><br />%<span style="color: #000000;">1</span><br /> </div>[/code:11e2datj]
fivewin.hbp
[code=fw:11e2datj]<div class="fw" id="{CB}" style="font-family: monospace;">-gui<br /><br />-Ic:\fwh\include<br /><br />-Lc:\fwh\lib<br />-lFiveH32<br />-lFiveHC32<br /><br />-lgdiplus<br />-lole32<br />-lOleDlg<br />-lversion<br /><br />xhb.hbc<br />hbct.hbc<br />hbwin.hbc<br />hbmzip.hbc<br />hbziparc.hbc<br />hbfoxpro.hbc<br /><br />-ldflag=/NODEFAULTLIB:<span style="color: #000000;">MSVCRT</span><br />-ldflag=/FORCE:<span style="color: #000000;">multiple</span><br /> </div>[/code:11e2datj] |
la forma mas simple de construir desde vscode | Falla si el documento no esta en c:\Users\anto\Documents...
intentado arreglarlo... |
la forma mas simple de construir desde vscode | hbmk2 es llamado con -out:C:\Users\anto\fivedit0.exe
pero luego se intenta ejecutar c:\fwteam\samples\fivedit0.exe |
la forma mas simple de construir desde vscode | Que macros usar en vez de -o${hb_dirname} desde fivewin.hbp que sean equivalentes a ${fileDirname}/${fileBasename} de vscode ? |
la forma mas simple de construir desde vscode | Working like a champ <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:1rl44d27]https://github.com/FiveTechSoft/screenshots/blob/master/quickbuildfromvscode.jpg?raw=true[/img:1rl44d27] |
la forma mas simple de construir desde vscode | I keep go32.bat at:
c:\Users\anto\Documents\
same folder for fivewin.hbp
wondering is those places are the righ ones or we can improve it |
la forma mas simple de construir desde vscode | gracias nuevamente Fernando
un abrazo |
la forma mas simple de construir desde vscode | Fantástico António.
Si en la ruta del fichero que quieres compilar hay espacios, no creo que se generare bien. Por ejemplo C:\Soporte 2\test\prueba.prg
Por eso yo no paso la ruta como parámetro e indico en el task donde se tiene que ejecutar go32.
[code=fw:30bn5tp2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #ff0000;">"options"</span>: <span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">"cwd"</span>: <span style="color: #ff0000;">"${fileDirname}"</span><br /> <span style="color: #000000;">}</span></div>[/code:30bn5tp2]
Si es cierto, como bien dices que la ruta de go32.bat y de fivewin.hbp se las tienes que indicar.
Si tenemos distintos bat o hbp, para llamar al que queramos, lo único que se me ocurre es usar variables y que al compilar no pregunte la ruta o el nombre del archivo. |
la forma mas simple de construir desde vscode | Fernando
Probado desde una carpeta con espacios y funciona bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
c:\soporte\carpeta con espacios\test.prg
Hasta con espacios en el nombre del PRG y funciona <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> |
la forma mas simple de construir desde vscode | <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> |
la forma mas simple de construir desde vscode | Hola a todos.
Me gustaria usar vscode con BorlandC, veo mucha informacion en este hilo pero aun no esta muy claro para mi.
Si se pudiera hacer un pequeño video o una secuencia de imagenes para crear un proyecto, usar la la busqueda sensitiva (intelisense) de funciones
y como agregar funciones personalizadas.
De momento tengo instalado vscode, la extension de harbour antonio perricone, y el project manager.
Gracias |
la forma mas simple de construir desde vscode | [quote="albeiroval":38ycx0re]Hola a todos.
Me gustaria usar vscode con BorlandC, veo mucha informacion en este hilo pero aun no esta muy claro para mi.
Si se pudiera hacer un pequeño video o una secuencia de imagenes para crear un proyecto, usar la la busqueda sensitiva (intelisense) de funciones
y como agregar funciones personalizadas.
De momento tengo instalado vscode, la extension de harbour antonio perricone, y el project manager.
Gracias[/quote:38ycx0re]
<!-- l --><a class="postlink-local" href="https://forums.fivetechsupport.com/viewtopic.php?f=6&t=41837&hilit=vscode&sid=9798302d3c39e93c2e1e98b64c5f88ac#p250793">viewtopic.php?f=6&t=41837&hilit=vscode&sid=9798302d3c39e93c2e1e98b64c5f88ac#p250793</a><!-- l --> |
la forma mas simple de construir desde vscode | Estimado Albeiro,
Lo que hemos tratado en este post es de construir un solo PRG que causalmente estas editando o revisando y quieres probar, de la forma más rápida y simple: pulsando Ctrl + Mayus + B
Si ya has instalado el gestor de proyectos y lo que necesitas es aprender a usar el gestor, Fernando publicó recientemente un excelente post en el que con imágenes y explicaciones nos indica de forma magistral como hacerlo:
<!-- l --><a class="postlink-local" href="http://fivetechsupport.com/forums/viewtopic.php?p=252921&sid=f449fe41ff5dc40fd6a7d4cb8efddb78#p252921">viewtopic.php?p=252921&sid=f449fe41ff5dc40fd6a7d4cb8efddb78#p252921</a><!-- l --> |
la mejor forma d editar un campo memo incluira efectos?? | Hola amigos..cual es la mejor forma de editar un campo memo, y podre incluir efectos como tabulaciones, colores, tipos de letras.. etc algo asi como un editor ??algun ejemplo graciassLubin |
la mejor forma d editar un campo memo incluira efectos?? | Usa un control RichEdit.Revisa FWH\samples\TestRich.prg y TestRtf.prgPodrás hacer todo eso, y más <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
la mejor forma d editar un campo memo incluira efectos?? | Gracias Antonio Ya casi habia perdido las esperanzas..<!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> , pero no hay duda el foro nunca nos dejaa solosss Le dare una mirada,,, y como imaginarass.... quizas surga alguna consulta mass... Lubin[quote="Antonio Linares":1czam40o]Usa un control RichEdit.
Revisa FWH\samples\TestRich.prg y TestRtf.prg
Podrás hacer todo eso, y más <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:1czam40o] |
labels using FASTREPORT? | someone would have an example to print labels using FASTREPORT? |
labels using FASTREPORT? | Hola,
at the end of the FastReport main web page [url:2nwrzol9]http://www.spirins.com/[/url:2nwrzol9] you can find a sample labels.zip, maybe this can help you
regards
Marcelo |
labels using FASTREPORT? | Working with labels in FR is very simple, the guide itself is an example, the only thing I do not like and that I could not solve, I printed labels in a vertical rather than horizontal, any help I am to order, good google translator there, lol ... greetings ... |
lan | hi
I don't succeed in opening from the pocket with it explores resources - menu - you open run
\ \192.168.1.101\myfile\shared
disarmed firewall
from the palmare internet is ok
thanks in advance |
lan | Francesco,
Have you properly set the lan config from your Pocket PC ?
Is Internet Explorer working ? |
lan | Dear Antonio
Internet Explore works fine.
About lan configuration, i set NE2000 with IP 192.168.1.201
255.255.255.0
192.168.1.1 (gateway)
IP my Pc LAn connect with pocket with ActiveSync 192.168.1.101
255.255.255.0
192.168.1.1
Internet Is ok also with Wi-FI, but LAN not work, IP on WI-fi assigned by server
firewall disarmed.
Give me all details to works properly LAN connection PcPocket site
thanks in advance |
lan | Francesco,
What Windows Mobile version are you using ?
Are you testing on a real Pocket PC or from the emulator ? |
lan | windows mobile 5.0
pocket is HP ipaq hx2100, not emulator
thancks in advanced |
lan | Dear Anthony
I wanted one confirmation of yours, I have a net Wi-fi that works on the pocket, and I have a pc (its name in Lan is MyPC) that it contains a file named MAGAZI.DBF, I have need that my application writing in fwppc opens this file from the palmare
use \ \ mypc\shared\magazi new
while eof()
...
...
dbskip ()
enddo
can I do this?
it is not that it takes a server DATABASE on \ \ MYPC?
on internet I have read that to skim through the net is owed to use RESCO EXPLORER, you thing recommends me for my problem
thanks in advance |
lan | Francesco,
> use \\mypc\shared\magazi new
You should be able to do that with no problems at all.
If you can access the Internet then you should be able to access your files in the lan PC.
We are going to do some tests here to provide you a little guide for it. |
lan | Dear Antonio
OOOOOOOOOOKKKKKKKKKKKKSSSSSSSSSSS
after so many tests and experiments I have succeeded in resolving....
with the bluetooth the palmare works in lan
I think that has worked after I have added on the Pc the user GUEST, I will also try with the WI-FI
have also prepared a program that opens the files of my procedure, Works!
thanks
Franz |
lan | very good <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
landing page with dbf pagedata file | Hello friends,
We are organizing a Live Stream with Jacob Koopman from Dublin to Sillian, Hotel Bergland.
Therefore, we program a landing page with mod harbour for marketing.
We use a DBF file to store the content.
With the help of a self developed little FIVEWIN program we can rapidly at a pagedata-dbf-file .
This program creates a record inside the pagedata file.
And you can copy the hashkey to the clipboard.
You also see the Harbourino tool in action.
Harbourino is a tool to let you easily develop your personal framework.
LINK to page: [url:xvg78osm]https://winhotel.space/jacobkoopman/home-studio.prg[/url:xvg78osm]
VIDEO: [url:xvg78osm]https://mybergland.com/fwforum/pagedatafile.mp4[/url:xvg78osm]
[img:xvg78osm]https://mybergland.com/fwforum/livestream.jpg[/img:xvg78osm] |
landing page with dbf pagedata file | Info
The SSL certificate of mybergland.com is expired - I am working on renewing the certificate.
Best regards,
Otto |
landing page with dbf pagedata file | Hello friends,
Now SSL is renewed and working again.
Best regards,
Otto |
landing page with dbf pagedata file | This easy you can resolve the source code of such a complex, feature-rich web page with Harbourino.
[img:1mqp8kn7]https://mybergland.com/fwforum/harbourinoclip2.jpg[/img:1mqp8kn7] |
landing page with dbf pagedata file | Hello friends,
Where is the web page with this video
LINK to page: <!-- m --><a class="postlink" href="https://winhotel.space/jacobkoopman/home-studio.prg">https://winhotel.space/jacobkoopman/home-studio.prg</a><!-- m -->
hosted?
We are connected with Fiberglas 100/100 to the internet.
An OPNsense Firewall distributes the internet to my Apache web servers.
I use i7 notebooks with good SSD drives and the maximum of RAM.
Here is the mod harbour code:
We fill a hash from a dbf file and pass the hash to HTML.
[code=fw:2yyskq18]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />hPageData := <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span> <br /><br /> use <span style="color: #000000;">(</span> hb_GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"<span style="color: #000000;">\d</span>ata<span style="color: #000000;">\p</span>agedata.DBF"</span> <span style="color: #000000;">)</span> <span style="color: #00C800;">new</span><br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> .not. eof<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> hPageData<span style="color: #000000;">[</span> ALLTRIM<span style="color: #000000;">(</span> field->hashkey <span style="color: #000000;">)</span> <span style="color: #000000;">]</span> = field->text <br /> <span style="color: #0000ff;">select</span> pagedata<br /> skip<br /> <span style="color: #00C800;">enddo</span><br /> <span style="color: #0000ff;">select</span> pagedata<br /> use<br /> TEMPLATE PARAMS hPageData<br /> </div>[/code:2yyskq18]
And here the code to access the hash from HTML.
[code=fw:2yyskq18]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <?prg <span style="color: #00C800;">return</span> hPageData<span style="color: #000000;">[</span> <span style="color: #ff0000;">"keyname"</span> <span style="color: #000000;">]</span> ?><br /> </div>[/code:2yyskq18]
[img:2yyskq18]https://mybergland.com/fwforum/router2.jpg[/img:2yyskq18]
[img:2yyskq18]https://mybergland.com/fwforum/webserver33.jpg[/img:2yyskq18]
Best regards,
Otto |
landscape to a report sheet | Hi, How to get landscape an sheet using report class
I tried this way:
ACTIVATE REPORT oRpt ;
on init oRpt:PrnLandScape()
but not working
Also tried:
ACTIVATE REPORT oRpt ;
on init oRpt:oDevice:SetLandScape()
Can you help me?
Thanks!
My configuration is: Fwh8.11, xharbour build 1.1.0 (Simplex) (Rev.6195), pellesC |
landscape to a report sheet | Put
[code=fw:c38qmonh]<div class="fw" id="{CB}" style="font-family: monospace;">PRNLANDSCAPE<span style="color: #000000;">(</span><span style="color: #000000;">)</span></div>[/code:c38qmonh]
just before the REPORT command.
EMG |
landscape to a report sheet | you are right Enrico!
i had declared PrnLandScape() after REPORT oRpt when I should have earlier
Now if you work
Thanks |
landscape to a report sheet | Don't forget to:
prnPortrait()
After the report also.
Regards,
James |
landscape to a report sheet | I have the same problem and was solved using PrnLandscape() just before REPORT command, and put the PrnPortrait after the command, but the all the following reports remains landscaped.
I try the prnportrait after activate report but with the same wrong results.
What am I doing wrong? |
landscape to a report sheet | Try putting PrnPortrait() after ACTIVATE REPORT command.
EMG |
landscape to a report sheet | Hi Enrico,
tried already (read again my message <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> )
Don't know why, but the only solution is to put prnportrait() just before the rest of reports. Given that, it should work after ACTIVATE, but didn't.
Thanks |
landscape to a report sheet | Carlos,
You might try:
ACTIVATE REPORT...ON END prnPortrait()
Or, you might have to add a sysrefresh():
ACTIVATE REPORT...ON END (sysRefresh(), prnPortrait())
However, it is probably not a bad idea to make sure any report is in the proper orientation before printing since it may have been left in the wrong orientation by any other report or program. So your solution of prnPortrait() before any report is probably a good idea. It would also be polite programming to save and restore the original printer orientation during any report.
Regards,
James |
landscape to a report sheet | Thanks James!
I like the ON END solution, i'll give it a chance. |
langChain and OpenAI | Reading text files and making questions to them:
Remove [:1000] to read the entire files contents, use it in case OpenAI complains about the amount of used tokens, or increase such value.
docs.py
[code=fw:o0xn9ofw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">from</span> langchain.embeddings.openai import OpenAIEmbeddings<br /><span style="color: #0000ff;">from</span> langchain.text_splitter import CharacterTextSplitter<br /><span style="color: #0000ff;">from</span> langchain.vectorstores import ElasticVectorSearch, Pinecone, Weaviate, FAISS<br />import glob<br />import os<br /><br />os.environ<span style="color: #000000;">[</span><span style="color: #ff0000;">"OPENAI_API_KEY"</span><span style="color: #000000;">]</span> = <span style="color: #ff0000;">"sk-...yours"</span><br /><br />folder_path = <span style="color: #ff0000;">"c:/harbour/src/vm"</span> <br />file_extension = <span style="color: #ff0000;">"*.c"</span> <br /><br />file_contents = <span style="color: #000000;">[</span><span style="color: #000000;">]</span> <br /><br /><span style="color: #00C800;">for</span> file_path in glob.glob<span style="color: #000000;">(</span>os.path.<span style="color: #0000ff;">join</span><span style="color: #000000;">(</span>folder_path, file_extension<span style="color: #000000;">)</span><span style="color: #000000;">)</span>:<br /> with open<span style="color: #000000;">(</span>file_path, <span style="color: #ff0000;">"r"</span><span style="color: #000000;">)</span> as f:<br /> contents = f.read<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> file_contents.append<span style="color: #000000;">(</span>contents<span style="color: #000000;">[</span>:<span style="color: #000000;">1000</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span> <br /><br />embeddings = OpenAIEmbeddings<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />docsearch = FAISS.from_texts<span style="color: #000000;">(</span> file_contents, embeddings <span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">from</span> langchain.chains.question_answering import load_qa_chain<br /><span style="color: #0000ff;">from</span> langchain.llms import OpenAI<br /><br />chain = load_qa_chain<span style="color: #000000;">(</span>OpenAI<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, chain_type=<span style="color: #ff0000;">"stuff"</span><span style="color: #000000;">)</span><br /><br />query = <span style="color: #ff0000;">"what about is this text ?"</span><br />docs = docsearch.similarity_search<span style="color: #000000;">(</span>query<span style="color: #000000;">)</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">(</span> chain.run<span style="color: #000000;">(</span>input_documents=docs, question=query<span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:o0xn9ofw]
To run it:
python docs.py
output:
[quote:o0xn9ofw]This text describes the license and copyright information for several APIs, including the String API, the Virtual Memory API, the MT mode functions, and the Array API (Harbour level)[/quote:o0xn9ofw] |
lanzar desde un boton un PDF | Estimad@s
como puedo lanzar un archivo pdf que ya fue generado y que se vea en una nueva pag
[code=fw:3ix75dra]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'btnprint'</span> LABEL <span style="color: #ff0000;">' Print'</span> <span style="color: #0000ff;">ACTION</span> lazarpdf GRID <span style="color: #000000;">2</span> <span style="color: #0000ff;">ICON</span> <span style="color: #ff0000;">'<i class="fas fa-home"></i>'</span> <span style="color: #00C800;">CLASS</span> <span style="color: #ff0000;">'btn-primary btnticket'</span> <span style="color: #0000ff;">OF</span> o</div>[/code:3ix75dra]
desde ya muchas gracias |
lanzar desde un boton un PDF | LISTO
[code=fw:1tfqcnve]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'btnprint'</span> LABEL <span style="color: #ff0000;">' Print'</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #ff0000;">'PrintPdf()'</span> GRID <span style="color: #000000;">2</span> <span style="color: #0000ff;">ICON</span> <span style="color: #ff0000;">'<i class="fas fa-home"></i>'</span> <span style="color: #00C800;">CLASS</span> <span style="color: #ff0000;">'btn-primary btnticket'</span> <span style="color: #0000ff;">OF</span> o</div>[/code:1tfqcnve]
[code=fw:1tfqcnve]<div class="fw" id="{CB}" style="font-family: monospace;"><script><br /> <span style="color: #00C800;">function</span> volver<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span><br /> <span style="color: #0000ff;">window</span>.history.back<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">function</span> PrintPdf<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span><br /> <span style="color: #0000ff;">window</span>.open<span style="color: #000000;">(</span><span style="color: #ff0000;">'cFileName.Pdf'</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span></div>[/code:1tfqcnve] |
las libreria fivewin | necesito ayudad
#include "fivewin.ch"
function main()
local ow
define window ow from 0,0 to 10,80 title "CA-Clipper"
@ 1,1 say "Estoy programando en Windows!"
activate window ow
return(nil)
Ahora escriba el archivo bli.lnk:
BLINKER CLIPPER SYMBOL OFF
fi x
out minombre.exe
PACKCODE
PACKDATA
DEFBEGIN
name Minombre
description 'este es mi programa'
exetype Windows 3.1
code moveable discardable preload
data preload moveable
stacksize 10000
heapsize 1024
segment 'PLANKTON_TEXT' nondiscardable
segment 'EXTEND_TEXT' nondiscardable
segment 'OM_TEXT' nondiscardable
segment 'OSMEM_TEXT' nondiscardable
segment 'SORTOF_TEXT' nondiscardable
segment 'STACK_TEXT' nondiscardable
DEFEND
NOBELL
sear Five, FiveC, Objects
sear WinApi, Clipper, Extend, DbfNtx, Terminal
no tengo estas librerias me pueden ayudar
Five, FiveC, Objects |
las libreria fivewin | RNetto,
Las librerias FiveWin son un producto comercial que puedes comprar desde <!-- w --><a class="postlink" href="http://www.fivetechsoft.com">www.fivetechsoft.com</a><!-- w --> sección pedidos.
Si te interesa probar gratuitamente la versión de 32 bits de FiveWin 32 bits (6.12), puedes legalmente descargarla desde aqui: [url:3nldg1oy]http://www.fivetechsoft.com/spanish/downloads.html[/url:3nldg1oy] |
las Ñ en mysql (SOLUCIONADO) | hola.
Estoy queriendo grabar le valor "ñoqui" en un campo tipo varchar(20) y no puee hacerlo.
Que se hace?
Gracias. |
las Ñ en mysql (SOLUCIONADO) | Asi:
cInsert := "INSERT INTO agencias (ruc, razon_social, direccion, telefonos, email_web, contacto, fechareg, observaciones) VALUES ('22222222229','ÑÑÑÑOOOOQQQQUUUUIIIÑÑÑÑÑ','MAR DEL PLATA','','','','2009-04-06','')"
oMySQL:Execute( cInsert )
Salu2 |
las Ñ en mysql (SOLUCIONADO) | [quote="Willi Quintana":20jq5yss]Asi:
cInsert := "INSERT INTO agencias (ruc, razon_social, direccion, telefonos, email_web, contacto, fechareg, observaciones) VALUES ('22222222229','ÑÑÑÑOOOOQQQQUUUUIIIÑÑÑÑÑ','MAR DEL PLATA','','','','2009-04-06','')"
oMySQL:Execute( cInsert )
Salu2[/quote:20jq5yss]
EKA
en mi caso eso no funciona. da error. |
las Ñ en mysql (SOLUCIONADO) | [quote="goosfancito":3u481v49][quote="Willi Quintana":3u481v49]Asi:
cInsert := "INSERT INTO agencias (ruc, razon_social, direccion, telefonos, email_web, contacto, fechareg, observaciones) VALUES ('22222222229','ÑÑÑÑOOOOQQQQUUUUIIIÑÑÑÑÑ','MAR DEL PLATA','','','','2009-04-06','')"
oMySQL:Execute( cInsert )
Salu2[/quote:3u481v49]
EKA
en mi caso eso no funciona. da error.[/quote:3u481v49]
Tube que poner asi:
[code=fw:3u481v49]<div class="fw" id="{CB}" style="font-family: monospace;">comillas simples comillas dobles comillas simples <campo que contiene dato con ñ> comillas simples comillas dobles comillas simples</div>[/code:3u481v49]
gracias |
last qtcontrib binary release | Thank to Pritpal Bedi isUploaded is QtContribs latest installer QtContribs_Mingw-482_Qt-532_r373_Setup.exe
<!-- m --><a class="postlink" href="http://sourceforge.net/projects/qtcontribs/files/latest/download?source=typ_redirec">http://sourceforge.net/projects/qtcontr ... yp_redirec</a><!-- m -->
Broadly, this installer includes the following in addition to r313:
1. Compiler MinGW 4.8.2 [ Needed because Harbour Nightly is still providing v4.6 ]
2. Harbour Debugger via IdeDebugger in HbIDE brought by Alex based on Alexander Kresin's HwgDebugger.
3. Many new modules introduced by Qt 5x.
4. Tons of fixes and enhancement to overall HbQt.
Other info at
<!-- m --><a class="postlink" href="https://groups.google.com/d/msg/qtcontribs/">https://groups.google.com/d/msg/qtcontribs/</a><!-- m --> |
last source of rpreview | Hello,
I forgot to share the last source of preview with page orientation, here you can donwload it
[url:3hw3p3uz]http://www.box.net/shared/8lhxyymtga[/url:3hw3p3uz]
regards
Marcelo |
last source of rpreview | DO u SAW MINE MODIFIES i SENT YOU ? |
last source of rpreview | Silvio,
I saw some things, but I didn't nothing about, maybe I will take some time in the near future to see it with more detail, I'm sorry
regards
Marcelo |
last source of rpreview | Application
===========
Path and name: C:\test_informe\test.Exe (32 bits)
Size: 2,060,800 bytes
Time from start: 0 hours 0 mins 6 secs
Error occurred at: 04/03/2010, 19:06:01
Error description: Error BASE/1082 Argument error: -
Args:
[ 1] = U
[ 2] = N 1
Stack Calls
===========
Called from: rpreview.prg => TPREVIEW:SETFACTOR(1530)
Called from: rpreview.prg => TPREVIEW:BUILDWINDOW(579)
Called from: rpreview.prg => TPREVIEW:NEW(132)
Called from: rpreview.prg => RPREVIEW(1675)
Called from: .\source\classes\REPORT.PRG => (b)TREPORT:NEW(180)
Called from: .\source\classes\REPORT.PRG => TREPORT:ACTIVATE(873)
Called from: test.prg => GEN_REPORT(995)
Called from: test.prg => (b)NEW_REPORT(855)
Called from: .\source\classes\BUTTON.PRG => TBUTTON:CLICK(176)
Called from: .\source\classes\CONTROL.PRG => TBUTTON:HANDLEEVENT(1427)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => SENDMESSAGE(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:COMMAND(407)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT(928)
Called from: => DIALOGBOXINDIRECT(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273)
Called from: test.prg => NEW_REPORT(906)
Called from: test.prg => (b)OPEN_TABLE(162)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK(445)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP(631)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONDOWN(576)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1469)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT(1295)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => WINRUN(0)
Called from: .\source\classes\WINDOW.PRG => TMDIFRAME:ACTIVATE(966)
Called from: VisorDBF.Prg => VISOR(71) |
last source of rpreview | Hello Marcelo, the temporarely files from "create_minipage" in the temp-folder are not erased or released! |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.