topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
cmsay y el tamanio de lo que se muestra | hola.
estoy queriendo que esta linea (ejemplo)
"xxxxxxxxx" (10 lugares)
sea mostrada en mi impresion pero solo los primero 5
"xxxxx"
estoy intentando utilizar:
[quote:207b0dvh] NWIDTH:= 5
:cmsay(::nRenglon, 16.0, ::oDato:FIELDS(13):VALUE, ::oFont3, NWIDTH)
[/quote:207b0dvh]
pero no le da pelota. sigue mostrando los 10 caracteres. que estoy haciendo mal?
gracias |
cmsay y el tamanio de lo que se muestra | Saludos
intenta con
[code=fw:2i7h3sh0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">oDato</span>:<span style="color: #000000;">FIELDS</span><span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span>:<span style="color: #000000;">VALUE</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">)</span></div>[/code:2i7h3sh0] |
cmsay y el tamanio de lo que se muestra | entonces ese nWidth declarado en la tprint no funciona? |
cmsay y el tamanio de lo que se muestra | Saludos
si funciona, lo que pasa es que son 5 cm lo que estas definiendo no son 5 espacios (el nombre del metodo es bastante explicito <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> ) |
cmsay y el tamanio de lo que se muestra | uy perdon mi ignorancia. ya lo pruebo.
gracias. |
cmxAutoOpen[solved] | Hi All ,
i'm looking for a function that perform the same task of cmxAutoOpen. I use fivewin 6.12 for harbour.Some one have any ideal? thanks all
regards |
cmxAutoOpen[solved] | You can use the CDX RDD, but I am not sure it was available for your older version of FWH. Perhaps it is time to upgrade--there are so many new features.
Regards,
James |
cmxAutoOpen[solved] | thanks for board. where i can find lib CDX ? i have include yet lib RDD in my build.bat .In any case there is a similar function to cmxAutoOpen?
regards
Salvo |
cmxAutoOpen[solved] | Salvo,
The RDD libs are within one of the FIVE...LIBs--I don't know which one. Below is an example of their use. The index file is opened automatically by default.
Regards,
James
[code=fw:vant6w6a]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> REQUEST DBFCDX<br /> REQUEST DBFFPT <span style="color: #B900B9;">// if you are using memo fields</span><br /> RddSetDefault<span style="color: #000000;">(</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">)</span><br /> <br /> use customer <br /> <span style="color: #0000ff;">index</span> <span style="color: #0000ff;">on</span> chgno tag <span style="color: #ff0000;">"custid"</span> <span style="color: #0000ff;">to</span> customer <span style="color: #00C800;">for</span> ! deleted<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">index</span> <span style="color: #0000ff;">on</span> descrip tag <span style="color: #ff0000;">"company"</span> <span style="color: #0000ff;">to</span> customer <span style="color: #00C800;">for</span> ! deleted<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">index</span> <span style="color: #0000ff;">on</span> phone tag <span style="color: #ff0000;">"phone"</span> <span style="color: #0000ff;">to</span> customer <span style="color: #00C800;">for</span> ! deleted<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> use<br /> use customer<br /> <span style="color: #B900B9;">// the index is automatically opened</span></div>[/code:vant6w6a] |
cmxAutoOpen[solved] | james,
thanks for support. for example in this case how i can modified the source code?
[code=fw:etk7r4hr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">local</span> nArea:=<span style="color: #0000ff;">select</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,aFiles,lGiaAperto,cNome,nI,cChiave<br /><br /> * <span style="color: #0000ff;">select</span> pratiche<br /> * cChiave:=cod_pratica<br /> close databases<br /> aFiles:=directory<span style="color: #000000;">(</span><span style="color: #ff0000;">"*.dbf"</span><span style="color: #000000;">)</span><br /><span style="color: #B900B9;">// cmxAutoOpen(.f.)</span><br /> <br /> <br /> <span style="color: #00C800;">for</span> nI=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">(</span>aFiles<span style="color: #000000;">)</span><br /> cNome:=aFiles<span style="color: #000000;">[</span>nI<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> use <span style="color: #000000;">(</span>cNome<span style="color: #000000;">)</span> <span style="color: #0000ff;">alias</span> tmpPack exclusive <span style="color: #00C800;">new</span><br /> pack<br /> <br /> use<br /> <br /> <span style="color: #00C800;">next</span><br /> <br /> <br /><span style="color: #B900B9;">// cmxAutoOpen(.t.)</span></div>[/code:etk7r4hr]
thanks for support. regards
Salvo |
cmxAutoOpen[solved] | Salvo,
I don't know if there is a function to turn off auto opening of the index, but you could try turning it off after it is opened using dbClearIndex().
use (cFile)
dbClearIndex()
James |
cmxAutoOpen[solved] | [quote="James Bott":202iwypz]I don't know if there is a function to turn off auto opening of the index,[/quote:202iwypz]
What about
[code=fw:202iwypz]<div class="fw" id="{CB}" style="font-family: monospace;">SET AUTOPEN OFF</div>[/code:202iwypz]
?
EMG |
cmxAutoOpen[solved] | Enrico,
I tried SET AUTOOPEN OFF but it errors out with a syntax error. I tried including dbinfo.ch and it still errors out. I searched my entire hard disk for AUTOOPEN and only found it in dbinfo.ch.
Regards,
James |
cmxAutoOpen[solved] | It is AUTOPEN not AUTOOPEN.
EMG |
cmxAutoOpen[solved] | Enrico,
Ah, I thought AUTOPEN was a typo. That works. Thanks.
Regards,
James |
cmxAutoOpen[solved] | thanks to both,but if use function set autopen off and on ,i have the same result. this is error,and this is log
Error description: Error DBFNTX/1201 Workarea not indexed
Stack Calls
===========
Called from: => DBSEEK(0)
Called from: main.prg => FINITFASC(898)
Called from: main.prg => FCARPRAT(778)
Called from: main.prg => MAIN(136)
Variables in use
================
Procedure Type Value
==========================
DBSEEK
Param 1: C "ABCD PARTE"
Param 2: U
Param 3: U
Local 1: N 0
FINITFASC
Param 1: L .F.
Param 2: C " "
Param 3: L .F.
Param 4: L .F.
Param 5: A Len: 2
Param 6: A Len: 2
Param 7: C " "
Local 1: N 21
FCARPRAT
Param 1: L .F.
Param 2: L .F.
Param 3: N 1
Param 4: C "ABCD "
Param 5: C " "
Param 6: C " ÓÀEkM;ÌIlŸIUO £c¡1j,;'ñ 8. £c¡1j,;'ñ 8. £c¡1j,;'ñ 8. £c¡1j,;'ñ 8."
Param 7: D - -
Param 8: D - -
Param 9: C " "
Param 10: C " "
Param 11: C " "
Param 12: C " "
Param 13: N 0.00
Param 14: N 3
Param 15: N 0
Param 16: C " "
Param 17: C " "
Param 18: U
Param 19: U
Param 20: C ""
Param 21: C "abcd A "
Param 22: N 0
Param 23: C " "
Param 24: C " "
Param 25: L .F.
Param 26: L .F.
Param 27: A Len: 2
Param 28: A Len: 2
Param 29: C " "
Param 30: C " "
Param 31: N 0.00
Param 32: L .F.
Param 33: L .F.
Param 34: L .F.
Param 35: C " "
Param 36: C " "
Param 37: U
Param 38: C " "
Param 39: C " "
Param 40: U
Param 41: C ""
Param 42: C " "
Local 1: N 21
Local 2: U
MAIN
Local 1: C ""
Local 2: U
Local 3: O Class: TMENU
Local 4: O Class: TICON
Local 5: U
Local 6: O Class: TPANEL
Local 7: U
Local 8: U
Local 9: C "millennium"
Local 10: N 16
Local 11: N 2
Local 12: N 100
Local 13: N 2
Local 14: N 20
Local 15: N 90
Local 16: N 360
Local 17: N 80
Local 18: N 170
Local 19: N 230
Local 20: N 325
Local 21: N 380
Local 22: N 100
Local 23: N 450
Local 24: N 4
Local 25: N 10
Local 26: N 100
Local 27: N 200
Local 28: N 300
Local 29: U
Local 30: N 40
Local 31: N 140
Local 32: N 240
Local 33: N 340
Local 34: N 410
Local 35: N 480
Local 36: U
Local 37: U
Local 38: N 0
Local 39: N 12632256
Local 40: C "D@vide M i l l e n n i u m"
Linked RDDs
===========
DBF
DBFFPT
DBFBLOB
DBFNTX
DataBases in use
================
1: ANTICIPI RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
2: FORMUL RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 1 .F. .F.
Indexes in use TagName
Relations in use
3: ATTI RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
4: RIVALUTA RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
5: DOCUMENT RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
6: PROPOSTE RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
7: PARCELLE RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
8: SCADPAG RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
9: NOTA_SPE RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
10: ANAG RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
11: ANAGIST RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
1: TO cod_Anag INTO ANAG
12: AN_PARTI RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
13: => PARTI RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
1: TO cod_Anag INTO AN_PARTI
14: AN_CPARTI RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
15: CPARTI RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
1: TO cod_Anag INTO AN_CPARTI
16: AN_ALTRI RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
17: ALTRI RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
1: TO cod_Anag INTO AN_ALTRI
18: AGENDA RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
19: TMPAUTORIT RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
17 16 .T. .T.
Indexes in use TagName
Relations in use
20: CONTROVE RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
2 1 .T. .T.
Indexes in use TagName
Relations in use
21: PRATICHE RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
1 1 .F. .F.
Indexes in use TagName
Relations in use
1: TO fCodContro(pratiche->cod_pratic) INTO CONTROVE
2: TO PRATICHE->AUTORITA INTO TMPAUTORIT
error main.prg(898)
select parti
set filter to upper(cod_contro+qualita)=upper(cCodFascicolo+STR_PARTI)
seek upper(m->cCodFascicolo+STR_PARTI)
select cparti
set filter to upper(cod_contro+qualita)=upper(cCodFascicolo+STR_CPARTI)
seek upper(m->cCodFascicolo+STR_CPARTI)
error main.prg(136)
fCarPrat(.f.,.f.,pratiche->(recno()),@cCodFascicolo,@cFascicolo,@cDescr,@dDataInizio,;
@dDataFine,@cCodAutorita,@cAutorita,@cSede,@cNumCausa,@nValore,@nTipo,@nDifficolta,;
@cCodStato,@cStato,@dUltUdienza,@dProssUdienza,@mNote,@cCodPratica,@nRif,;
@cNomeGiudice,@cCodice,@lVisColl,@lVisSegr,@aLegali,@aCodLegali,@cLegale,;
@cNumFasc,@nValFatt,@lFatturata,@lModificata,@lSaldata,@cCodProcedura,@cProcedura,;
@oAssociato,@cAssociato,@cCodAssociato,@oDomicil,@cDomicil,@cCodDomicil)
// @ 30, 0 BUTTON oBtnMostraNascondi prompt "Nascondi" OF oPanel ACTION Msginfo("ok") pixel
@ 0, 0 LISTBOX m->oLbxPratiche;
error(779) main.prg
fInitPratiche(lInsert, nPos, @cCodFascicolo, @cFascicolo, @cDescr, @dDataInizio, ;
@dDataFine, @cCodAutorita, @cAutorita, @cSede, @cNumCausa, @nValore, @nTipo, @nDifficolta, ;
@cCodStato, @cStato, @dUltUdienza, @dProssUdienza, @mNote, @cCodPratica, @nRif,@cNomeGiudice,;
@cNumFasc,@nValFatt,@lFatturata,@lSaldata,@lModificata,@cCodProcedura,@cProcedura,;
@oAssociato,@cAssociato,@cCodAssociato,@oDomicil,@cDomicil,@cCodDomicil,.f.)
fInitFasc(lInsert, @cCodice, @lVisColl, @lVisSegr, @aLegali, @aCodLegali, @cLegale)
i have used function set autopen in this way :
set autopen off
for nI=1 to len(aFiles)
cNome:=aFiles[nI][1]
use (cNome) alias tmpPack exclusive new
pack
use
next
set autopen on
is possible(in error 898) that the varible cCodFascicolo,since it exceededs the 10-character, give errors? thanks.
regards
Salvo |
cmxAutoOpen[solved] | It appears that you have not opened the indexes. Also, the error message shows that you are using NTXs not CDXs. Again I am not sure that your old version of FWH supports CDXs.
When having problems like this I try to write the smallest possible code to test the problem. It seems you are trying to convert an entire program instead. Try writing the smallest possible test program.
Regards,
James |
cmxAutoOpen[solved] | James,
the support of cdx doesn´t depend on the version fwh, but on xharbour/harbour. Both supports cdx since it´s earliest versions. The rdd libs are part of xharbour/harbour.
Salvo,
1: you don´t use cdx, as James already said. You have to write these lines at the beginning of your code
[code=fw:3jt2yfc6]<div class="fw" id="{CB}" style="font-family: monospace;">REQUEST DBFCDX<br />REQUEST DBFFPT <span style="color: #B900B9;">// for memo fields</span><br />RddSetDefault<span style="color: #000000;">(</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">)</span></div>[/code:3jt2yfc6]
to set the standard dbf driver to cdx. You have to add the libs dbfcdx and dbfftp in your link script if not already done.
2: Your error comes from the function dbseek(). dbseek() needs an index, otherwise an error occurs. With SET AUTOPEN OFF you are closing all indexes. You have to open them again before you can use dbseek() ( or the command SEEK). |
cmxAutoOpen[solved] | James , Stefanhaupt
thanks a lot ,the error was the wrong indexes NTX. with the command request and function rddsetdefault , error was fixed !!
Stefanhaupt,
i have used also set autopen on after set autopen off. it is wrong? must be used before seek? |
cmxAutoOpen[solved] | [quote:2ggxxs02]i have used also set autopen on after set autopen off. it is wrong? must be used before seek?[/quote:2ggxxs02]
Yes, you must turn it back on after the PACK. You must also open the file and rebuild the indexes after the PACK. After that each time you open the DBF the index file will also be opened.
James |
cmxAutoOpen[solved] | Salvo,
yes, please look the post from James.
But I don´t understand, why you pack a dbf without it´s indexes, you´ll always get inconsistent index files. I would pack a dbf only with open indexes. |
cmxAutoOpen[solved] | Salvo,
An even better solution is to reuse deleted records instead of packing.
With my TData class there is an optional subclass to reuse deleted records automatically. This way you never have to PACK a DBF. You can find more information about TData on this page:
<!-- m --><a class="postlink" href="http://www.gointellitech.com/program.htm">http://www.gointellitech.com/program.htm</a><!-- m -->
Regards,
James |
cmxAutoOpen[solved] | james ,
thanks a lot for advice,but pack is? .Second question : i have use set autopen on before seek
[code=fw:8t6rz3w7]<div class="fw" id="{CB}" style="font-family: monospace;"> set autopen <span style="color: #0000ff;">on</span><br /> <span style="color: #0000ff;">select</span> parti<br /> set filter <span style="color: #0000ff;">to</span> upper<span style="color: #000000;">(</span>cod_contro+qualita<span style="color: #000000;">)</span>=upper<span style="color: #000000;">(</span>cCodFascicolo+STR_PARTI<span style="color: #000000;">)</span><br /> seek upper<span style="color: #000000;">(</span>m->cCodFascicolo+STR_PARTI<span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">select</span> cparti<br /> set filter <span style="color: #0000ff;">to</span> upper<span style="color: #000000;">(</span>cod_contro+qualita<span style="color: #000000;">)</span>=upper<span style="color: #000000;">(</span>cCodFascicolo+STR_CPARTI<span style="color: #000000;">)</span><br /> seek upper<span style="color: #000000;">(</span>m->cCodFascicolo+STR_CPARTI<span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">select</span> altri<br /> set filter <span style="color: #0000ff;">to</span> upper<span style="color: #000000;">(</span>cod_contro+qualita<span style="color: #000000;">)</span>=upper<span style="color: #000000;">(</span>cCodFascicolo+STR_ALTRI<span style="color: #000000;">)</span><br /> seek upper<span style="color: #000000;">(</span>m->cCodFascicolo+STR_ALTRI<span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">select</span> nota_spe<br /> set order <span style="color: #0000ff;">to</span> tag codice<br /> set filter <span style="color: #0000ff;">to</span> upper<span style="color: #000000;">(</span>field->cod_pratic<span style="color: #000000;">)</span>=m->cCodPratica <span style="color: #B900B9;">//nooptimize</span><br /> seek upper<span style="color: #000000;">(</span>m->cCodPratica<span style="color: #000000;">)</span></div>[/code:8t6rz3w7]
is right?and when you say "open file" you mean file .cdx? thanks a lot for patience. regard
Salvo |
cmxAutoOpen[solved] | Salvo,
[quote:1i630zx1]thanks a lot for advice,but pack is? [/quote:1i630zx1]
I was refering to the PACK command which removes all deleted records from a file. As Stefan pointed out, you don't really need to open the file (DBF) without the indexes when you PACK. If you leave the indexes open when PACKing, then the indexes are updated also. If you don't leave the indexes open, then you have to reopen the file and rebuild the indexes after PACKing. I presume that is what you are doing now.
[quote:1i630zx1]Second question : i have use set autopen on before seek, is right?[/quote:1i630zx1]
No, in your case you only need to set autopen on after packing. Autopen must be on when you open the files (DBFs). Then if you have more than one index, you must select the desired index before seeking.
[quote:1i630zx1]when you say "open file" you mean file .cdx?[/quote:1i630zx1]
No, I mean open the database (DBF). I think you are getting confused by auto open. I never turn it on or off in my apps. It is on by default and so whenever a DBF is opened the indexes are opened also automatically. Of course, the indexes need to be opened for any SEEKs. You don't need to be opening and closing the indexes, except possibly as your app is doing when PACKing.
James |
cmxAutoOpen[solved] | thanks both, i have solved problem <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> !! |
code sample for inserting data into Mysql | can some share code <!-- s:| --><img src="{SMILIES_PATH}/icon_neutral.gif" alt=":|" title="Neutral" /><!-- s:| -->
i want Insert data into mysql can some one give a sample so it will be a real help for me.
thanks in advance |
code sample for inserting data into Mysql | Sajith,
Search the forum for "mysql" and "sql"
Regards,
James |
code sample for inserting data into Mysql | Sajith:
Pls, follow my blog
<!-- m --><a class="postlink" href="http://sqlcmd.blogspot.com/">http://sqlcmd.blogspot.com/</a><!-- m -->
Regards |
code sample for inserting data into Mysql | thanks james <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Regards ,
sajith |
code to retrieve index of a item from a listbox | can somebody share the code with me.
i have a problem for retrieving index of a item from a listbox
thanks in advance. |
code to retrieve index of a item from a listbox | Are you using array or DBF or RecordSet ?
Regards
Anser |
code to retrieve index of a item from a listbox | iam loading data frm DBF into lbox
thanks |
code to retrieve index of a item from a listbox | Try oLbx:GetPos()
Regards
Anser |
code to retrieve index of a item from a listbox | i saw that function:in the FWHClasses and tried but error.
thanks sajith |
codeblock (for color border) on btnbmp | to show a color border on btnbmp when I move over with the mouse I made
aBmps[nY,nX]:nClrBorder := { || (IIF(aBmps[nY,nX]:lMOver,CLR_WHITE,CLR_GRAY)) }
But I not see any border colored and the border is allways black
[img:1q7xxaro]https://i.postimg.cc/x8Jbmrkq/hh.png[/img:1q7xxaro]
[b:1q7xxaro]test sample[/b:1q7xxaro]
[code=fw:1q7xxaro]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span><span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><br /><span style="color: #00D7D7;">#define</span> BMP_H <span style="color: #000000;">20</span><br /><span style="color: #00D7D7;">#define</span> BMP_V <span style="color: #000000;">20</span><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> oDlg<br /><span style="color: #00C800;">Local</span> aBmps<br /><span style="color: #00C800;">Local</span> TOTX := <span style="color: #000000;">10</span><br /><span style="color: #00C800;">Local</span> TOTY := <span style="color: #000000;">10</span><br /><span style="color: #00C800;">Local</span> nx,xy<br /><br /><span style="color: #00C800;">Local</span> nRow:=<span style="color: #000000;">10</span><br /><span style="color: #00C800;">Local</span> nCol:=BMP_V<br /><span style="color: #00C800;">Local</span> oFontNumber<br /><br /><br /> aBmps:=array<span style="color: #000000;">(</span> TOTX,TOTY <span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontNumber <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span> BOLD<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;">800</span>,<span style="color: #000000;">600</span><br /><br /> <span style="color: #00C800;">For</span> nY := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> TOTY<br /> <span style="color: #00C800;">For</span> nX := <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> TOTX<br /><br /> @ nrow, ncol <span style="color: #0000ff;">BTNBMP</span> aBmps<span style="color: #000000;">[</span> nY, nX <span style="color: #000000;">]</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"PNG_VUOTOC"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">SIZE</span> BMP_H, BMP_V <span style="color: #0000ff;">PIXEL</span> FLAT TRANSPARENT <span style="color: #0000ff;">FONT</span> oFontNumber<br /><br /><br /> aBmps<span style="color: #000000;">[</span>nY,nX<span style="color: #000000;">]</span>:<span style="color: #000000;">nClrBorder</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">(</span>IIF<span style="color: #000000;">(</span>aBmps<span style="color: #000000;">[</span>nY,nX<span style="color: #000000;">]</span>:<span style="color: #000000;">lMOver</span>,CLR_WHITE,CLR_GRAY<span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> <br /> ncol:=ncol+BMP_V<br /><br /> <span style="color: #00C800;">Next</span> nX<br /> nRow += BMP_H<br /> nCol := BMP_V<br /><span style="color: #00C800;">Next</span> nY<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDLG <span style="color: #0000ff;">CENTER</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:1q7xxaro]
I tried to post the problem also on this topic :
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=36514&start=0&hilit=btnbmp+color+border">viewtopic.php?f=3&t=36514&start=0&hilit=btnbmp+color+border</a><!-- l -->
you can the first gif as it was before
[url:1q7xxaro]https://i.postimg.cc/Kv8VX6fL/spiaggia-vecchia.gif[/url:1q7xxaro]
now i see this
[url:1q7xxaro]https://i.postimg.cc/GmsXddyB/spiaggia-nuova.gif[/url:1q7xxaro] |
codeblock (for color border) on btnbmp | [code=fw:2h6ql8d3]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span><span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><br /><span style="color: #00D7D7;">#define</span> BMP_H <span style="color: #000000;">20</span><br /><span style="color: #00D7D7;">#define</span> BMP_V <span style="color: #000000;">20</span><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> oDlg<br /><span style="color: #00C800;">Local</span> aBmps<br /><span style="color: #00C800;">Local</span> TOTX := <span style="color: #000000;">10</span><br /><span style="color: #00C800;">Local</span> TOTY := <span style="color: #000000;">10</span><br /><span style="color: #00C800;">Local</span> nx,ny<br /><br /><span style="color: #00C800;">Local</span> nRow:=<span style="color: #000000;">10</span><br /><span style="color: #00C800;">Local</span> nCol:=BMP_V<br /><span style="color: #00C800;">Local</span> oFontNumber<br /><br /><br /> aBmps:=array<span style="color: #000000;">(</span> TOTX,TOTY <span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontNumber <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span> BOLD<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;">800</span>,<span style="color: #000000;">600</span><br /><br /> <span style="color: #00C800;">For</span> nY := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> TOTY<br /> <span style="color: #00C800;">For</span> nX := <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> TOTX<br /> MAKEBUTTON<span style="color: #000000;">(</span> oDlg, nRow, nCol, aBmps, nX, nY, oFontNumber <span style="color: #000000;">)</span><br /> ncol:=ncol+BMP_V<br /> <span style="color: #00C800;">Next</span> nX<br /> nRow += BMP_H<br /> nCol := BMP_V<br /><span style="color: #00C800;">Next</span> nY<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDLG <span style="color: #0000ff;">CENTER</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> MAKEBUTTON<span style="color: #000000;">(</span> oDlg, nRow, nCol, aBmps, nX, nY, oFontNumber <span style="color: #000000;">)</span><br /><br /> @ nrow, ncol <span style="color: #0000ff;">BTNBMP</span> aBmps<span style="color: #000000;">[</span> nY, nX <span style="color: #000000;">]</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"PNG_VUOTOC"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">SIZE</span> BMP_H, BMP_V <span style="color: #0000ff;">PIXEL</span> FLAT TRANSPARENT <span style="color: #0000ff;">FONT</span> oFontNumber<br /><br /><br /> aBmps<span style="color: #000000;">[</span>nY,nX<span style="color: #000000;">]</span>:<span style="color: #000000;">nClrBorder</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">(</span>IIF<span style="color: #000000;">(</span>aBmps<span style="color: #000000;">[</span>nY,nX<span style="color: #000000;">]</span>:<span style="color: #000000;">lMOver</span>,CLR_WHITE,CLR_GRAY<span style="color: #000000;">)</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></div>[/code:2h6ql8d3]
EMG |
codeblock (for color border) on btnbmp | why I must create a new function if before ( 12.17) run ok ?
cmq now run ok |
codejock calendar control | I am interested in codejock's control for calendar (appointments ..etc)
I know there has been several discussions on the topic,
has anyone succeded using the control and send/receive data from it other than in xml format ?
What about the licensing of this product ?
Thanks for any help, |
codigo de la Funcion MsgYesNo | ALguien tiene el codigo fuente de la FuncionMSgYEsNOGracias |
codigo de la Funcion MsgYesNo | Amigo,o código em C, está na pasta fwh\source |
codigo de la Funcion MsgYesNo | vladimir como dice sgs esta en fwh/source/function/msgs.csalu2paco |
codigo de barras | Voy a empezar un proyecto con codigo de barras quiero saber que informacion tienen. Existe clase?, librerias?Mil gracias.Arturo |
codigo de barras | artu,La libreria BARLIB que esta en utilidades de este grandioso foro es super buena la he usado y la uso a 32 bits con fhw y es excelente,Saludes desde Managua, NicaraguaRamon Paredes |
codigo de barras 128C | Hola,
Alguien tiene una funcion para covertir una cadena de caracteres para que se pueda usar el codigo 128C ? al parecer para el codigo 128c se tiene que converir a una serie de caracteres raros para que funcione ...
gracias
Rene |
codigo de barras 128C... otra vez | Hola,
Aqui tengo una funcion en VB que hace la supuesta transformacion de la cadena de texto a una ca<dena que se puede usar para ponerle un codigo de barras 120c.
Si alguien tiene tiempo y el conocimiento y la puede desifrar se los agradeceria:
Un ejemplo seria este:
Esta cadena 01032001001400 convertida seria esto : ÍÂ*@Â*!H&zÎ
La funcion en VB es esta:
Public Function Code128c(ByVal DataToEncode As String, Optional ByVal ReturnType As Integer = 0) As String
Dim I As Integer
Dim j As Integer
Dim F As Integer
Dim DataToPrint As String
Dim OnlyCorrectData As String
Dim PrintableString As String
Dim Encoding As String
Dim WeightedTotal As Long
Dim WeightValue As Integer
Dim CurrentValue As Long
Dim CheckDigitValue As Integer
Dim Factor As Integer
Dim CheckDigit As Integer
Dim CurrentEncoding As String
Dim NewLine As String
Dim Msg As String
Dim CurrentChar As String
Dim CurrentCharNum As Integer
Dim C128_StartA As String
Dim C128_StartB As String
Dim C128_StartC As String
Dim C128_Stop As String
Dim C128Start As String
Dim C128CheckDigit As String
Dim StartCode As String
Dim StopCode As String
Dim Fnc1 As String
Dim LeadingDigit As Integer
Dim EAN2AddOn As String
Dim EAN5AddOn As String
Dim EANAddOnToPrint As String
Dim HumanReadableText As String
Dim StringLength As Integer
Dim CorrectFNC As Integer
Dim CID As Integer
Dim FID As Integer
Dim NCID As Integer
NCID = 0
FID = 0
If ReturnType = 6 Or ReturnType = 7 Then NCID = 12000
If ReturnType = 8 Then NCID = 11300
If ReturnType = 9 Then NCID = 11500
If ReturnType = 6 Or ReturnType = 9 Then FID = 11500
If ReturnType = 7 Or ReturnType = 8 Then FID = 11300
If ReturnType <> 0 And ReturnType <> 1 And ReturnType <> 2 Then ReturnType = 0
PrintableString = ""
OnlyCorrectData = ""
StringLength = Len(DataToEncode)
For I = 1 To StringLength
If IsNumeric(Mid(DataToEncode, I, 1)) Then OnlyCorrectData = OnlyCorrectData & Mid(DataToEncode, I, 1)
Next I
DataToEncode = OnlyCorrectData
If (Len(DataToEncode) Mod 2) = 1 Then DataToEncode = "0" & DataToEncode
PrintableString = ChrW(205 + FID)
WeightedTotal = 105
WeightValue = 1
StringLength = Len(DataToEncode)
For I = 1 To StringLength Step 2
CurrentValue = val(Mid(DataToEncode, I, 2))
If CurrentValue < 95 And CurrentValue > 0 Then PrintableString = PrintableString & ChrW(CurrentValue + 32 + NCID)
If CurrentValue > 94 Then PrintableString = PrintableString & ChrW(CurrentValue + 100 + NCID)
If CurrentValue = 0 Then PrintableString = PrintableString & ChrW(194 + NCID)
CurrentValue = CurrentValue * WeightValue
WeightedTotal = WeightedTotal + CurrentValue
WeightValue = WeightValue + 1
If ChrW(CurrentValue + 32 + NCID) = "'" Then PrintableString = PrintableString & "'"
Next I
CheckDigitValue = (WeightedTotal Mod 103)
If CheckDigitValue < 95 And CheckDigitValue > 0 Then C128CheckDigit = ChrW(CheckDigitValue + 32 + FID)
If CheckDigitValue > 94 Then C128CheckDigit = ChrW(CheckDigitValue + 100 + FID)
If CheckDigitValue = 0 Then C128CheckDigit = ChrW(194 + FID)
If ReturnType = 0 Or ReturnType > 2 Then Code128c = PrintableString & C128CheckDigit & ChrW(206 + FID)
If ReturnType = 1 Then Code128c = DataToEncode & CheckDigitValue
If ReturnType = 2 Then Code128c = Str(CheckDigitValue)
End Function |
codigo de barras UCC EAN 128 | Compañeros del Foro
De casualida alguno ya tiene implementado este tipo de codigo de barras...
Saludos |
codigo de barras con Tbarlib | Hola,
He usado esta libreria para imprimir codigo de barras por mucho tiempo sin problemas usando hojas tamaño carta.
Hoy tengo una necesidad de utilizar una impresora Zebra que usa etiquetas en rollo .
Alguien me pudiera decir como se puede especificar el ancho y el alto de del corte de las etiquetas para que pueda hacer bien la impresion y el eject ?
Gracias |
codigo de barras con Tbarlib | Hola,
Para imprimir en una impresora Zebra tienes que utilizar comandos ( todos acaban en Chr(13) + Chr(10) ):
* Lenguaje EPL2
Chr(27) + "EPL2" + Chr(13) + Chr(10)
* Limpiar el buffer de imagen
"N" + Chr(13) + Chr(10)
* Punto de referencia de las coordenadas
"R0,0" + Chr(13) + Chr(10)
*Ancho de etiqueta ( puntos, 1 mm = 8 puntos p.e. 10 cm )
"q800" + Chr(13) + Chr(10)
* Alto de etiqueta ( puntos, 1 mm = 8 puntos p.e. 12.8 cm )
"Q1024" + Chr(13) + Chr(10)
*** Escribir texto, códigos de barras ...
** Texto
"A20,0,0,1,1,1,N,'ESCRIBO LA LINEA 1'" + Chr(13) + Chr(10)
** EAN13
"B20,450,0,E30,3,9,200,B,'8424975000001'" + Chr(13) + Chr(10)
* Especificar el nº de etiquetas que se quieren imprimir ( en el ejemplo 1 copia )
"P1" + Chr(13) + Chr(10)
Saludos |
codigo de barras con letras | Hola. Tengo una base con codigos alfanumericos; por lo general el codigo es una o 2 letras y un par de numeros; ¿conocen algun codigo de barras que pueda usar con fwh para que una lectora de codigos de barra me los lea? tengo un pequeño programita, que pasa codigos al formato ean 13, y la lectora lee perfecto, pero no me reconoce las letras... por ej, si el codigo es EZR001, la etiqueta dice 001
¿alguien tiene idea que puedo hacer? Gracias. Atte. |
codigo de barras con letras | Hola Diego:
Debes usar Code128.
En el siguiente link podrás descargar los programas que forman la librería BARLIB de Cayetano Gómez que contiene varios formatos de códigos de barras.
<!-- m --><a class="postlink" href="http://hyperupload.com/download/029e8f4142/BarLib2.zip.html">http://hyperupload.com/download/029e8f4 ... 2.zip.html</a><!-- m -->
Saludos
Manuel Mercado |
codigo de barras con letras | Hola. Gracias por la respuesta. ¿esto funciona para harbour? ¿tiene algun ejemplo de como funciona? probe incluir el barlib.ch en el include, pero no me permite ejecutar el code128. ¿que puede ser? gracias. Atte. |
codigo de barras con letras | [quote="diegopolverelli":1mldb23o]Hola. Gracias por la respuesta. ¿esto funciona para harbour? ¿tiene algun ejemplo de como funciona? probe incluir el barlib.ch en el include, pero no me permite ejecutar el code128. ¿que puede ser? gracias. Atte.[/quote:1mldb23o]
Funciona perfectamente con Harbour.
Yo compilo y luego linco los ficheros:
BANNER.prg
BARLIB.prg
CODABAR.prg
CODE3DE9.prg
CODE128.prg
EAN13.prg
GO_CODE.prg
INT25.prg
al fichero que realiza la impresión añado:
#INCLUDE "Barcode.CH"
y a imprimir.
Saludos
Carlos G. |
codigo de barras con letras | Gracias... funciona de 10... una maravilla... pero tengo un pequeño drama extra... los codigos tienen guiones, por ej: A01-01-001
cuando uso el code128, y leo con la pistola de codigo de barras (que segun internet lee este tipo de codigos), me lee A01'01'001
¿alguna idea?
mil gracias desde ya. Atte. |
codigo de barras con letras | Hola Diego:
Si solo eso es el problema, pone en la clausula valid del get que lee el codigo de barras una funcion que te convierta los ´ por - usando STRTRAN(cVariable,"´","-") y listo.
Espero te sirva. |
codigo de barras con letras | Gracias. Voy a tratar de arreglarme con esto del strtran. Igualmente me queda la duda, porque he visto muchisimas codificaciones internas que tienen guiones y letras, y calculo que habra algun codigo que levante informacion en ese formato.
Muchisimas gracias a ambos. Atte. |
codigo de barras con letras | Es obvio que el programa de Cayetano está considerando el juego de caracteres según la distribución del teclado en inglés, creo que no será difícil modificarlo, pero ahora no recuerdo si existe alguna función que muestre el idioma que se está utilizando.
Saludos
Manuel Mercado |
codigo de barras con letras | Hola. Podrían subir nuevamente el archivo de los codigos de barra??? Gracias...!!! |
codigo de barras con letras | Hola Diego:
[quote="diegopolverelli":3n5t3au2]Hola. Podrían subir nuevamente el archivo de los codigos de barra??? Gracias...!!![/quote:3n5t3au2]
Puedes descargarlo desde aquí:
<!-- m --><a class="postlink" href="http://www.box.net/shared/nohtewcg4o">http://www.box.net/shared/nohtewcg4o</a><!-- m -->
Un Abrazo.
Manuel Mercado Gómez. |
codigo de barras serial (com1) ayuda urgente | Un saludo al foro,, alguien tiene un programa lea un codigo de barras y se quede en el campo conforme a su cGet que tiene el control en la aplicacion como lo hace los lectores para teclado ya que es automatico. el lector que tengo es un symbol ls 5800 rs-232c serial y he probado ejemplos que hay en este foro para verificar la lectura pero no pasa nada.
Este ejemplo lo tome como referencia pero quiero que al leer el codigo de barra le dato o valor se quede en el cGet de mi dialogo.
Alguien que tenga algo hecho le agradecere que me apoye con su codigo.
Una mas!
utilizo la version fw24 con harbour y link con ajm aprovecho para preguntar que estoy pasando a la version fwh6 que se descarga aqui una aplicacion pero al usar el ajm me marca errores en las librerias mmm? cual es el problema.
****************
* bajado del Foro
****************
FUNCTION abrirport
LOCAL IdPort,cDcb,nError
IdPort := OpenComm("COM1",1024,1024)
IF IdPort <= 0
nError = GetCommError( IdPort)
MsgInfo( "Error al abrir: " + Str( nError ) )
ELSE
MsgRun("Puerto abierto como " + STR(IdPort))
ENDIF
IF ! BuildCommDcb("COM1"+":9600,e,8,1" , @cDcb)
nError = GetCommError( IdPort)
MsgInfo( "Error al Configurar: " + Str( nError ) )
RETURN 0
ELSE
MsgRun("Puerto Configurado")
ENDIF
IF ! SetCommState( IdPort, cDcb )
nError = GetCommError( IdPort)
MsgInfo( "Error al setear: " + Str( nError ) )
RETURN 0
ELSE
MsgRun("Puerto Seteado")
ENDIF
leer_bloque()
if ! CloseComm()
nError = GetCommError( "COM1" )
MsgInfo( "Error cerrando puerto: " + Str( nError ) )
endif
QUIT
RETURN IdPort
FUNCTION leer_bloque()
*-
for n = 1 to Len( cBuffer )
MsgInfo( Asc( SubStr( cBuffer, n, 1 ) ) )
next
*-
MsgInfo( "Proceda a leer ahora" )
nComm:= OpenComm("COM1" , 1024,128)
cBuffer:=Space(702)
nBytes := ReadComm (nComm,@cBuffer)
msginfo(cBuffer)
RETURN |
codigo de barras serial (com1) ayuda urgente | Try
[code=fw:1wti20t9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> MAIN_WINDOW<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> hCOMM<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"COM RECEIVE: "</span>+DToC<span style="color: #000000;">(</span>Date<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">MENU</span> BuildMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">MDI</span><br />SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWND <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">'TEST COMM'</span> <span style="color: #000000;">2007</span><br />hCOMM:=COM_OPEN<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /><br />oWND:<span style="color: #000000;">bCommNotify</span> := <span style="color: #000000;">{</span>|nComm,nStatus| ODBIERZ<span style="color: #000000;">(</span>hCOMM,nSTATUS<span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">// THIS IS MOST IMPORTANT LINE !!!!</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">Init</span> <span style="color: #000000;">(</span>EnableCommNotification<span style="color: #000000;">(</span>hCOMM,oWNd:<span style="color: #000000;">hWNd</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">-1</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">VALID</span><span style="color: #000000;">(</span>COM_CLOSE<span style="color: #000000;">(</span>hCOMM<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">Return</span> <span style="color: #000000;">(</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> BuildMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> oMENU<br /><span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2007</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&End"</span> <span style="color: #0000ff;">ACTION</span> oWND:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #0000ff;">ENDMENU</span><br /><span style="color: #00C800;">Return</span> oMenu<br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> ODBIERZ<span style="color: #000000;">(</span>hCOMM,nSTATUS<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> cZNAK:=Space<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> nBYTES<br /><br /> nBYTES:=ReadComm<span style="color: #000000;">(</span>hCOMM,@cZNAK<span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span>cZNAK<span style="color: #000000;">)</span> <span style="color: #B900B9;">// just one char , change to cZNAK:=Space(nLENGHTBARCODE)</span><br /><br /><span style="color: #00C800;">Return</span> .T. <br /><br /><span style="color: #00C800;">Function</span> COM_OPEN<span style="color: #000000;">(</span>xPORT<span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> pNAME:=IIF<span style="color: #000000;">(</span>xPORT=<span style="color: #000000;">1</span>,<span style="color: #ff0000;">"COM1"</span>,<span style="color: #ff0000;">"COM2"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> hPORT<br /><span style="color: #00C800;">Local</span> nError,cDCB<br /><span style="color: #00C800;">Local</span> xRESZTA:=.T.<br /><span style="color: #00C800;">Local</span> cSPEED:=<span style="color: #ff0000;">":19200,N,8,1"</span> <span style="color: #B900B9;">// there are settings of my equipment, check your scanner for correct parameters</span><br /><br /><br />hPORT:= OpenComm<span style="color: #000000;">(</span> pNAME, <span style="color: #000000;">2048</span>, <span style="color: #000000;">2048</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">If</span> ! BuildCommDcb<span style="color: #000000;">(</span> pNAME+cSPEED, @cDcb <span style="color: #000000;">)</span><br /> nError = GetCommError<span style="color: #000000;">(</span> hPORT <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"BuildCommDcb Error: "</span> + Str<span style="color: #000000;">(</span> nError <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> xRESZTA:=.F.<br /><span style="color: #00C800;">EndIf</span><br /><span style="color: #00C800;">If</span> ! SetCommState<span style="color: #000000;">(</span> hPORT, cDcb <span style="color: #000000;">)</span><br /> nError = GetCommError<span style="color: #000000;">(</span> hPORT <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"SetCommState Error: "</span> + Str<span style="color: #000000;">(</span> nError <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> xRESZTA:=.F.<br /><span style="color: #00C800;">EndIf</span><br /><span style="color: #00C800;">If</span> xRESZTA<br /> oWND:<span style="color: #000000;">oMSGBAR</span>:<span style="color: #000000;">cMSGDEF</span>:=PNAME+<span style="color: #ff0000;">" : OTWARTY"</span><br /> oWND:<span style="color: #000000;">oMSGBAR</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span>.T.<span style="color: #000000;">)</span><br /><span style="color: #00C800;">Else</span><br /> oWND:<span style="color: #000000;">oMSGBAR</span>:<span style="color: #000000;">cMSGDEF</span>:=PNAME+<span style="color: #ff0000;">" : NIE UDANE OTWARCIE"</span><br /> oWND:<span style="color: #000000;">oMSGBAR</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span>.T.<span style="color: #000000;">)</span><br /><span style="color: #00C800;">EndIf</span><br /><span style="color: #00C800;">Return</span> hPORT<br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> COM_CLOSE<span style="color: #000000;">(</span>hPORT<span style="color: #000000;">)</span><br /><span style="color: #00C800;">If</span> ! CloseComm<span style="color: #000000;">(</span> hPORT <span style="color: #000000;">)</span><br /> nError = GetCommError<span style="color: #000000;">(</span> hPORT <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"CloseComm Error: "</span> + Str<span style="color: #000000;">(</span> nError <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">EndIf</span><br /><span style="color: #00C800;">Return</span> .T.<br /><br /> </div>[/code:1wti20t9] |
codigo de barras serial (com1) ayuda urgente | Frank
Compilo el ejemplo y:
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
"C:\harbour\bin\HARBOUR.EXE" /iC:\harbour\include;C:\FW24\INCLUDE /n C:\aaPort\PtComm.PRG -o"C:\aaPort\PtComm.c"
xHarbour Compiler build 0.92.0 (SimpLex)
Copyright 1999-2003, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Compiling 'C:\aaPort\PtComm.PRG'...
C:\aaPort\PtComm.PRG(6) Error E0030 Syntax error: "parse error at 'WINDOW'"
C:\aaPort\PtComm.PRG(8) Error E0030 Syntax error: "parse error at 'MESSAGE'"
C:\aaPort\PtComm.PRG(13) Error E0030 Syntax error: "parse error at 'WINDOW'"
C:\aaPort\PtComm.PRG(18) Error E0030 Syntax error: "parse error at 'OMENU'"
C:\aaPort\PtComm.PRG(19) Error E0030 Syntax error: "parse error at 'MENUITEM'"
C:\aaPort\PtComm.PRG(20) Error E0020 Incomplete statement or unbalanced delimiters
6 errors
No code generated
** error 1 ** deleting "C:\aaPort\PtComm.c"
Que pasa?
static Function MAIN_WINDOW()
Local hCOMM
DEFINE WINDOW oWnd ;
TITLE "COM RECEIVE: "+DToC(Date()) ;
MENU BuildMenu() ;
MDI
SET MESSAGE OF oWND TO 'TEST COMM' 2007
hCOMM:=COM_OPEN(1)
oWND:bCommNotify := {|nComm,nStatus| ODBIERZ(hCOMM,nSTATUS) } // THIS IS MOST IMPORTANT LINE !!!!
ACTIVATE WINDOW oWnd ON Init (EnableCommNotification(hCOMM,oWNd:hWNd,1,-1)) VALID(COM_CLOSE(hCOMM))
Return (NIL)
Static Function BuildMenu()
Local oMENU
MENU oMenu 2007
MENUITEM "&End" ACTION oWND:End()
ENDMENU
Return oMenu
used Version Fw24 Ajm |
codigo de barras serial (com1) ayuda urgente | Hola, creo que falta
[code=fw:2jh80fjx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /> </div>[/code:2jh80fjx]
Saludos |
codigo de barras serial (com1) ayuda urgente | Mike
inclui l #Include "FiveWin.Ch" como me indicas y compilo y me da esto:
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
"C:\harbour\bin\HARBOUR.EXE" /iC:\harbour\include;C:\FW24\INCLUDE /n C:\aaPort\PtComm.PRG -o"C:\aaPort\PtComm.c"
xHarbour Compiler build 0.92.0 (SimpLex)
Copyright 1999-2003, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Compiling 'C:\aaPort\PtComm.PRG'...
C:\aaPort\PtComm.PRG(9) Error E0030 Syntax error: "parse error at 'WINDOWS'"
1 error
No code generated
** error 1 ** deleting "C:\aaPort\PtComm.c"
El codigo del programa donde marca el error:
#Include "FiveWin.Ch"
// Por Robert Frank
Static Function MAIN_WINDOW()
Local hCOMM
DEFINE WINDOWS oWnd ;
TITLE "COM RECEIVE: "+DToC(Date());
MENU BuildMenu() ;
MDI //-------------------------------------> Linea 9 con el Error
SET MESSAGE OF oWND TO 'TEST COMM'
hCOMM:=COM_OPEN(1)
oWND:bCommNotify := {|nComm,nStatus| ODBIERZ(hCOMM,nSTATUS) } // THIS IS MOST IMPORTANT LINE !!!!
ACTIVATE DIALOG oWnd ON Init (EnableCommNotification(hCOMM,oWNd:hWNd,1,-1)) VALID(COM_CLOSE(hCOMM))
Return (NIL)
La version que uso es FW24,BCC55 y compilo y linkeo con Ajm tiene que ver?
1. Leer (ReadComm->Robert Frank) por puerto serial(scanner) el codigo de barras y pasarlo al -> campo(aVar[26,2]t) validar
que exista en el Dbf y que muestre descripcion y precio
Redefine Get aVar[26,1] VAR aVar[26,2] ID 121 OF oDlg Picture replicate("!",30);
VALID IIF(ChecaProducto(aVar[26,2])=.t.,.T.,.F.) // Valida que exista en el DBF--> esto ya esta
// Checa en el Dbf y despliega Descripcion, Precio
2. Como incluir el procedimiento de Robert Frank en el campo Get aVar[26,1] VAR aVar[26,2] ?
3. Mi programa:
Define Dialog oDlg RESOURCE "Venta" TITLE pEmpresa
REDEFINE CHECKBOX oTranslate VAR lTranslate ID 116 OF oDlg VALID IIF(CHECKPTO(lTranslate)=.T.,.T.,.T.)
Redefine say aVar[6,1] PROMPT aVar[6,2] ID 114 OF oDlg UPDATE COLOR CLR_BLUE, CLR_GRAY // Fecha
Redefine Get aVar[3,1] VAR aVar[3,2] ID 104 OF oDlg PICTURE "99/99/99" COLOR CLR_BLACK, CLR_HGRAY // Fecha
Redefine Say aVar[4,1] PROMPT aVar[4,2] ID 105 OF oDlg PICTURE "99:99:99" COLOR CLR_BLUE, CLR_HGRAY // Hora
Redefine Say aVar[1,1] PROMPT aVar[1,2] ID 102 OF oDlg picture "999999" COLOR CLR_BLUE, CLR_HGRAY // No Folio
Redefine say aVar[22,1] PROMPT uNombre ID 118 OF oDlg COLOR CLR_BLUE, CLR_HGRAY // Nombre de Usuario
*- Aqui como definir el procedimiento de Robert Frank
Redefine Get aVar[26,1] VAR aVar[26,2] ID 121 OF oDlg Picture replicate("!",30); // Procedimiento --> ROBERT FRANK
VALID IIF(CHECAPRO(aVar[26,2])=.t.,.T.,.F.) COLOR CLR_BLACK, CLR_HGRAY
*-
Redefine Say aVar[7,1] PROMPT aVar[7,2] PICTURE "99999.999" ID 109 OF oDlg COLOR CLR_MAGENTA, CLR_HGRAY
// Precio
...
...
Activate Dialog oDlg CENTERED Valid if(GetASyncKey(VK_ESCAPE),.F.,.T.)
- No entiendo como FW24 se vincula o interactua el EVENTO de la lectura del scanner(ReadComm y lo demas....) con el control del Get " Get aVar[26,1] VAR aVar[26,2] "
Esto es nuevo para mi, espero su ayuda
Gracias Mike y Robert |
codigo de barras serial (com1) ayuda urgente | No lo he probado porque estoy en el trabajo pero creo que es un error del metacomando. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
1º) Intenta reemplazar WINDOWS por WINDOW
si no te compila quita la linea 9 y el punto y coma de la anterior
Un Saludo, |
codigo de barras serial (com1) ayuda urgente | Ok Mike Listo!, cambie Windows por Window como me indicaste y ya genero el exe.
Agradezco tu apoyo, como vez soy nuevo en esto; en si lo que pretendo es que en el campo de captura (cGet) cahe el codigo de barras leido por el scanner conectado por el puerto serial asi como lo hacen los scanner manuales o de pistola conectados al teclado o por USB.
El programa esta asi:
Define Dialog oDlg RESOURCE "Venta" TITLE pEmpresa
REDEFINE CHECKBOX oTranslate VAR lTranslate ID 116 OF oDlg VALID IIF(CHECKPTO(lTranslate)=.T.,.T.,.T.)
Redefine say aVar[6,1] PROMPT aVar[6,2] ID 114 OF oDlg UPDATE COLOR CLR_BLUE, CLR_GRAY // Fecha
Redefine Get aVar[3,1] VAR aVar[3,2] ID 104 OF oDlg PICTURE "99/99/99" COLOR CLR_BLACK, CLR_HGRAY // Fecha
Redefine Say aVar[4,1] PROMPT aVar[4,2] ID 105 OF oDlg PICTURE "99:99:99" COLOR CLR_BLUE, CLR_HGRAY // Hora
Redefine Say aVar[1,1] PROMPT aVar[1,2] ID 102 OF oDlg picture "999999" COLOR CLR_BLUE, CLR_HGRAY // No Folio
Redefine say aVar[22,1] PROMPT uNombre ID 118 OF oDlg COLOR CLR_BLUE, CLR_HGRAY // Nombre de Usuario
*- Aqui como se define el procedimiento de Robert Frank para el Get aVar[26,2] donde se quedara el codigo de barras
Redefine Get aVar[26,1] VAR aVar[26,2] ID 121 OF oDlg Picture replicate("!",30); // Procedimiento --> ROBERT FRANK
VALID IIF(CHECAPRO(aVar[26,2])=.t.,.T.,.F.) COLOR CLR_BLACK, CLR_HGRAY // valida que el producto que_
// exista y muestre descrip y precio
*-
Redefine Say aVar[7,1] PROMPT aVar[7,2] PICTURE "99999.999" ID 109 OF oDlg COLOR CLR_MAGENTA, CLR_HGRAY
// Precio
...
...
Activate Dialog oDlg CENTERED Valid if(GetASyncKey(VK_ESCAPE),.F.,.T.)
1. Leer (ReadComm->Robert Frank) por puerto serial(scanner) el codigo de barras y pasarlo al -> campo(aVar[26,2]t)
Redefine Get aVar[26,1] VAR aVar[26,2] ID 121 OF oDlg Picture replicate("!",30);
VALID IIF(ChecaProducto(aVar[26,2])=.t.,.T.,.F.) // Valida que exista en el DBF--> esto ya esta y
y despliega Descripcion, Precio
2. Como adecuar el procedimiento de Robert Frank en el campo Get aVar[26,1] VAR aVar[26,2]
- No entiendo como se vincula o interactua el EVENTO de la lectura del scanner(ReadComm y lo demas....) con el control del Get " Get aVar[26,1] VAR aVar[26,2] "
Podrian asesorarme
nuevamente,,,,, gracias Mike y Robert
Saludos |
codigo_fonte_clipper_xharbour_minigui - Ayuda con la contra | Tengo esta archivo espaquetado que lo baje hace rato, pero no me acuerdo donde deje la contraseña.
Alguien por casualidad sabe cual es.
codigo_fonte_clipper_xharbour_minigui.rar
Gracias al Fórum |
codigos de las teclas | saludos compañeros, alguien sabe los codigo de las teclas para combinaciones como alt+f1, ctrl+f2, alt+a, etc ya que no aparecen en inkey.ch, gracias de antemano |
codigos de las teclas | Hay que comprobar si está pulsada la tecla Control o Alt y la tecla del caso. |
codigos de las teclas | [quote="hmpaquito":2qklm6v6]Hay que comprobar si está pulsada la tecla Control o Alt y la tecla del caso.[/quote:2qklm6v6]
Algo asi
Try with
[quote:2qklm6v6]
local lControl := GetKeyState( VK_CONTROL )
local lShift := GetKeyState( VK_SHIFT )
local lMenu := GetKeyState( VK_MENU )
if lMenu
//
endif
[/quote:2qklm6v6] |
colocar datos en barra de mensajes (asi como la fechahora) | Como dice el asunto, necesito colocar comentarios en la barra de mensajes, asi como la fecha y la hora, pero alineados a la derecha y con cambios de colores.
Alguien me puede indicar como hacer esto?
MUCHAS GRACIAS
LEANDRO ALFONSO |
colocar datos en barra de mensajes (asi como la fechahora) | Vagner Wirts dejó alguna vez una contribución, VBar, que, creo, hace lo que necesitás.
Tendrias que buscarlo en el foro anterior; el que quedo de solo lectura
Saludos |
colocar datos en barra de mensajes (asi como la fechahora) | yo lo hago de esta forma:
DEFINE MSGITEM oMiCasilla1 OF oWndMain:oMsgBar PROMPT "Mi Mensaje" SIZE 120 COLOR CLR_BLUE
espero te sirva.
salu2 |
colocar datos en barra de mensajes (asi como la fechahora) | Leandro,
Revisa el ejemplo samples\TestMsg3.prg |
colocar datos en barra de mensajes (asi como la fechahora) | Mario Muchas Gracias por tu ayuda, me funciono perfectamente. |
color GET | Antonio:
Cuando usas en REDEFINE GET la cláusula NO MODIFY o WHEN .f. el color del texto del get no se ve bien, la combinación no es buena. Por favor, ¿por qué no pones otro color que se vea mejor?. Muchas gracias.
Salu2 |
color GET | Eso está ya implementado. Haz:
oGet:lDisColors = .F. |
color GET | [quote="Antonio Linares":35a9z13l]Eso está ya implementado. Haz:
oGet:lDisColors = .F.[/quote:35a9z13l]
Antonio,
en los checkbox y los combobox también es aplicable?
(mi versión de momento <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> es vieja).
Saludos
Carlos G. |
color GET | Antonio:
Yo no defino los GETS con una variable oGet, sino tal que REDEFINE GET ID 200, por lo que no puedo usar eso.
Lo que hago es modificar la clase TGET y cambiar el color, pero creo que es un cambio que debería hacer de serie, pues la combinación que está por defecto no se ve bien. Por favor, ¿podrías cambiar esa combinación?. Además, serviría también para los comboboxes, etc. Muchas gracias!!!. |
color GET | [quote="MOISES":e697mmrj]Antonio:
Yo no defino los GETS con una variable oGet, sino tal que REDEFINE GET ID 200, por lo que no puedo usar eso.
Lo que hago es modificar la clase TGET y cambiar el color, pero creo que es un cambio que debería hacer de serie, pues la combinación que está por defecto no se ve bien. Por favor, ¿podrías cambiar esa combinación?. Además, serviría también para los comboboxes, etc. Muchas gracias!!!.[/quote:e697mmrj]
No estoy del todo de acuerdo con cambiar la combinación.
Si no me equivoco el funcionamiento estàndard en windows es el que hacia hasta ahora FiveWin y por tanto si queremos lo contrario, ello debería ser la excepción.
Mal que nos pese windows es nuestro referente en cuanto a funcionamiento; todo lo que modifiquemos deberían ser, en lo posible, mejoras opcionales.
Otra cosa es el ámbito de aplicación del cambio de comportamiento, posiblemente ahí si que debería ser a nivel de aplicación.
Es decir, por defecto el comportamiento estándard de windows y si se cambia, que afecte a toda la aplicación; aun permitiendo (entonces si uno a uno) que el control que yo elija vuelva a tener el comportamiento estándar de windows.
Saludos
Carlos G. |
color GET | Pues que quieres que te diga, mira la foto:
[url=http://img408.imageshack.us/my.php?image=dibujoav5.jpg:2dgrcplv][img:2dgrcplv]http://img408.imageshack.us/img408/2527/dibujoav5.th.jpg[/img:2dgrcplv][/url:2dgrcplv]
Y en Windows Vista se ve peor. Creo que sería bueno que el color del get fuera más intenso, pues no se ve nada bien.
Antonio, ¿qué opinas?. |
color GET | [quote="MOISES":2wjg4abf]Pues que quieres que te diga, mira la foto:
[url=http://img408.imageshack.us/my.php?image=dibujoav5.jpg:2wjg4abf][img:2wjg4abf]http://img408.imageshack.us/img408/2527/dibujoav5.th.jpg[/img:2wjg4abf][/url:2wjg4abf]
Y en Windows Vista se ve peor. Creo que sería bueno que el color del get fuera más intenso, pues no se ve nada bien.
Antonio, ¿qué opinas?.[/quote:2wjg4abf]
Fácil,
Se aplica lo que he mencionado, se intenta conseguir que nuestra aplicación sea certificada microsoft y le subimos el precio.
Eso si, que el usuario pueda habilitar esa visibilidad a su voluntad.
Todos contentos no?
Saludos
Carlos G.
(Es broma). |
color GET | > Antonio, ¿qué opinas?.
Para eso se usa oGet:lDisColors = .F.
Lo que podemos hacer es establecerlo de forma global para toda la aplicación para así no tener que ir cambiando cada GET |
color GET | Mucho mejor Antonio, así todos contentos. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> . Por favor, que en este nuevo parámetro global se pudiera especificar el nuevo color para todos los gets cuando se usa la cláusula NO MODIFY o WHEN .F.
Este nuevo cambio global, ¿funcionará para los gets definidos tipo REDEFINE GET ID 100, es decir, sin la variable oGet?.
Muchas gracias Antonio. Siempre das en el clavo!!!. |
color GET | Moisés,
>
Por favor, que en este nuevo parámetro global se pudiera especificar el nuevo color para todos los gets cuando se usa la cláusula NO MODIFY o WHEN .F.
>
Sí, buena idea <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
>
Este nuevo cambio global, ¿funcionará para los gets definidos tipo REDEFINE GET ID 100, es decir, sin la variable oGet?.
>
Sí <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
color botones office 2007 | Antonio,
El color de <!-- m --><a class="postlink" href="http://www.fivetechsoft.com/files/skin2007.zip">http://www.fivetechsoft.com/files/skin2007.zip</a><!-- m --> no es igual al de Office 2007 en lo que toca al Azul.
¿Hay ya una solución?.
gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
color botones office 2007 | Hola:
¿Es posible?. Gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
color botones office 2007 | Ola..
Veja se é isto que vc. procura..
[code=fw:1v9hxx74]<div class="fw" id="{CB}" style="font-family: monospace;">@<span style="color: #000000;">160</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">btnbmp</span> obtn2 <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"&Sair"</span> <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"#8002"</span>,<span style="color: #ff0000;">"#8003"</span> TOP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">20</span> ;<br /> <span style="color: #0000ff;">Of</span> odlg <span style="color: #000000;">2007</span> <span style="color: #0000ff;">Action</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <br /> oBtn2:<span style="color: #000000;">bClrGrad</span> = <span style="color: #000000;">{</span> | lMouseOver | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ! lMouseOver ,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">0.5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">69</span>, <span style="color: #000000;">124</span>, <span style="color: #000000;">188</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">41</span>, <span style="color: #000000;">93</span>, <span style="color: #000000;">171</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0.5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">26</span>, <span style="color: #000000;">64</span>, <span style="color: #000000;">136</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">56</span>, <span style="color: #000000;">135</span>, <span style="color: #000000;">191</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> ,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">0.5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">123</span>, <span style="color: #000000;">178</span>, <span style="color: #000000;">236</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">71</span>, <span style="color: #000000;">126</span>, <span style="color: #000000;">205</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0.5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">17</span>, <span style="color: #000000;">78</span>, <span style="color: #000000;">175</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">128</span>, <span style="color: #000000;">225</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <br /> </div>[/code:1v9hxx74]
Abraços... |
color cells within a column in an xbrowse. | I have a 14 column xbrowse. There are 200 records being displayed.
In the first coulmn only I want to color records 1 to 20 one color and records 21-30 another color and records 31-50 another color. Just in the first column.
Using harbour, and resources.
Struggling for several hours but can't get it working.
Need some help. Thanks |
color cells within a column in an xbrowse. | Hola amigo...
Prueba lo siguiente:
[code=fw:1wbijbcw]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<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;">bClrStd</span>:=<span style="color: #000000;">{</span>||IF<span style="color: #000000;">(</span><span style="color: #000000;">(</span>oDbf:<span style="color: #000000;">CODIGO</span>>=<span style="color: #000000;">1</span> .AND. oDbf:<span style="color: #000000;">CODIGO</span><= <span style="color: #000000;">5</span><span style="color: #000000;">)</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">255</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span><span style="color: #000000;">(</span>oDbf:<span style="color: #000000;">CODIGO</span>>=<span style="color: #000000;">6</span> .AND. oDbf:<span style="color: #000000;">CODIGO</span><=<span style="color: #000000;">10</span><span style="color: #000000;">)</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">255</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> </div>[/code:1wbijbcw]
Espero te sirva.
Saludos desde Argentina, Esteban. |
color cells within a column in an xbrowse. | Amigo.
Thanks
I'll try later today.
And let you know. |
color cells within a column in an xbrowse. | Tried it and I get error message bound array access. I don't know how to get the aCols[1] array. Help. Again useing harbour and resources. Browse not created from code. |
color cells within a column in an xbrowse. | Hola...
Mira esto...
[code=fw:3t3n9007]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ...<br /> ...<br /> oLbx:<span style="color: #000000;">nRowDividerStyle</span> :=<span style="color: #000000;">5</span><br /> oLbx:<span style="color: #000000;">nColDividerStyle</span> :=<span style="color: #000000;">5</span><br /> oLbx:<span style="color: #000000;">nMarqueeStyle</span> :=<span style="color: #000000;">5</span><br /> oLbx:<span style="color: #000000;">nHeaderLines</span> :=<span style="color: #000000;">2</span><br /> oLbx:<span style="color: #000000;">nFooterLines</span> :=<span style="color: #000000;">1</span><br /> oLbx:<span style="color: #000000;">nDataType</span> :=<span style="color: #000000;">1</span><br /> oLbx:<span style="color: #000000;">nDataLines</span> :=<span style="color: #000000;">1</span><br /> oLbx:<span style="color: #000000;">nRowSel</span> :=<span style="color: #000000;">1</span><br /> oLbx:<span style="color: #000000;">nFreeze</span> :=<span style="color: #000000;">2</span><br /> oLbx:<span style="color: #000000;">nRowHeight</span> :=<span style="color: #000000;">25</span><br /> oLbx:<span style="color: #000000;">CreateFromResource</span><span style="color: #000000;">(</span><span style="color: #000000;">100</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// xBrowse creado desde recursos.</span><br /> oLbx:<span style="color: #000000;">lFooter</span> :=.t.<br /> oLbx:<span style="color: #000000;">bClrSelFocus</span> :=<span style="color: #000000;">{</span>||<span style="color: #000000;">{</span>AzulB,RGB<span style="color: #000000;">(</span><span style="color: #000000;">176</span>,<span style="color: #000000;">196</span>,<span style="color: #000000;">222</span> <span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">}</span><br /> oLbx:<span style="color: #000000;">bLDblClick</span> :=<span style="color: #000000;">{</span>||ABMClientes<span style="color: #000000;">(</span>oLbx,oWnd,oWnd1,<span style="color: #000000;">13</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> oLbx:<span style="color: #000000;">bRClicked</span> :=<span style="color: #000000;">{</span>|nRow,nCol| BotonDerechoClientes<span style="color: #000000;">(</span>nRow,nCol,oLbx,oWnd,oWnd1,Empresa<span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /><br /> oLbx:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">bEditValue</span> :=<span style="color: #000000;">{</span> || STR<span style="color: #000000;">(</span><span style="color: #000000;">(</span>cAlias<span style="color: #000000;">)</span>->CODIGO<span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oLbx:<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;">cSortOrder</span> :=<span style="color: #ff0000;">"CLIENT1"</span><br /> oLbx:<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;">nWidth</span> :=<span style="color: #000000;">80</span><br /> oLbx:<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;">cHeader</span> :=<span style="color: #ff0000;">"Código"</span><br /> oLbx:<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>:=<span style="color: #000000;">1</span><br /> oLbx:<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>:=<span style="color: #000000;">2</span><br /> oLbx:<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;">oHeaderFont</span> :=oFont2<br /> oLbx:<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;">oDataFont</span> :=oFont1<br /> oLbx:<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;">bLClickHeader</span>:=<span style="color: #000000;">{</span>|| RefreshSayClientes<span style="color: #000000;">(</span>oLbx,oSay,@vSay,<span style="color: #000000;">1</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> oLbx:<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;">bClrStd</span> :=<span style="color: #000000;">{</span>||IF<span style="color: #000000;">(</span><span style="color: #000000;">(</span>oDbf:<span style="color: #000000;">CODIGO</span>>=<span style="color: #000000;">1</span> .AND. oDbf:<span style="color: #000000;">CODIGO</span><= <span style="color: #000000;">5</span><span style="color: #000000;">)</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">255</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span><span style="color: #000000;">(</span>oDbf:<span style="color: #000000;">CODIGO</span>>=<span style="color: #000000;">6</span> .AND. oDbf:<span style="color: #000000;">CODIGO</span><=<span style="color: #000000;">10</span><span style="color: #000000;">)</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">255</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> <br /> oLbx:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">bEditValue</span> :=<span style="color: #000000;">{</span> || <span style="color: #000000;">(</span>cAlias<span style="color: #000000;">)</span>->NOMBRE <span style="color: #000000;">}</span><br /> oLbx:<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;">cSortOrder</span> :=<span style="color: #ff0000;">"CLIENT2"</span><br /> oLbx:<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;">nWidth</span> :=<span style="color: #000000;">350</span><br /> oLbx:<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;">cHeader</span> :=<span style="color: #ff0000;">"Nombre o razón social"</span><br /> oLbx:<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;">nDataStrAlign</span>:=<span style="color: #000000;">0</span><br /> oLbx:<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;">nHeadStrAlign</span>:=<span style="color: #000000;">2</span><br /> oLbx:<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;">oHeaderFont</span> :=oFont2<br /> oLbx:<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;">oDataFont</span> :=oFont1<br /> oLbx:<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;">bLClickHeader</span>:=<span style="color: #000000;">{</span>|| RefreshSayClientes<span style="color: #000000;">(</span>oLbx,oSay,@vSay,<span style="color: #000000;">2</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /><br /> ...<br /> ... <br /> </div>[/code:3t3n9007]
[img:3t3n9007]http://u2peru.com/ES/images_hosting/uploaded/1034.jpg[/img:3t3n9007]
Como verás ese código me funciona correctamente. Sólo estoy mostrando el código de dos columnas pero son varias columnas más y obviamente el xBrowse esta traído desde recursos.
Espero te sirva.
Saludos, Esteban |
color cells within a column in an xbrowse. | Got it working fine.
Put this code in the column.
[code=fw:30nmjcx6]<div class="fw" id="{CB}" style="font-family: monospace;"> ADD COLUMN <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">xBROWSE</span> oBrw ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">3</span> <span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">{</span>||IF<span style="color: #000000;">(</span><span style="color: #000000;">(</span>glnew->account >= <span style="color: #ff0000;">"1500"</span> .AND. glnew->account <= <span style="color: #ff0000;">"2040"</span><span style="color: #000000;">)</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">128</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span><span style="color: #000000;">(</span>glnew->account >= <span style="color: #ff0000;">"2055"</span> .AND. glnew->account <= <span style="color: #ff0000;">"2500"</span><span style="color: #000000;">)</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">128</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span><span style="color: #000000;">(</span>glnew->account >= <span style="color: #ff0000;">"2520"</span> .AND. glnew->account <= <span style="color: #ff0000;">"2625"</span><span style="color: #000000;">)</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">128</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span><span style="color: #000000;">(</span>glnew->account >= <span style="color: #ff0000;">"2635"</span> .AND. glnew->account <= <span style="color: #ff0000;">"2720"</span><span style="color: #000000;">)</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,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>,;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span><span style="color: #000000;">(</span>glnew->account >= <span style="color: #ff0000;">"2735"</span> .AND. glnew->account <= <span style="color: #ff0000;">"2820"</span><span style="color: #000000;">)</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">128</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span><span style="color: #000000;">(</span>glnew->account >= <span style="color: #ff0000;">"2835"</span> .AND. glnew->account <= <span style="color: #ff0000;">"2920"</span><span style="color: #000000;">)</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">128</span>,<span style="color: #000000;">128</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span><span style="color: #000000;">(</span>glnew->account >= <span style="color: #ff0000;">"3000"</span> .AND. glnew->account <= <span style="color: #ff0000;">"3353"</span><span style="color: #000000;">)</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">255</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span><span style="color: #000000;">(</span>glnew->account >= <span style="color: #ff0000;">"3360"</span> .AND. glnew->account <= <span style="color: #ff0000;">"3480"</span><span style="color: #000000;">)</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">255</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span><span style="color: #000000;">(</span>glnew->account >= <span style="color: #ff0000;">"3491"</span> .AND. glnew->account <= <span style="color: #ff0000;">"3544"</span><span style="color: #000000;">)</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span><span style="color: #000000;">(</span>glnew->account >= <span style="color: #ff0000;">"2935"</span> .AND. glnew->account <= <span style="color: #ff0000;">"2996"</span><span style="color: #000000;">)</span>,<span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span>RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> </div>[/code:30nmjcx6]
Worked perfectly.
muchas gracias. |
color cells within a column in an xbrowse. | Perfecto!! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
color columna REPORT | pues eso, estoy usando la clase REPORT y necesito saber como poner el color del texto de una columna en rojo si su valor es negativo.salu2paco |
color columna REPORT | yo mismo me contesto, resuelto!!graciaspaco |
color columna REPORT | Compañeros:
1) tengo el mismo problema y en este post nuestro compañero [b:2v681ymy]no detalló la solución[/b:2v681ymy]. ¿Alguien la sabe ?
2) el Report consiste en un listado de facturas emitidas. Algunas de ellas [b:2v681ymy]están anuladas,[/b:2v681ymy] pero me interesa que aparezcan en el listado, sin embargo necesito que [b:2v681ymy]NO sume los importes y no los tenga en cuenta en la suma de TOTALES[/b:2v681ymy]. ¿Como lo indico?
Mil gracias.
LORENZO |
color columna REPORT | Loren.
Ej. Usando colores en TReport:
DEFINE FONT oFont1 NAME "ARIAL" SIZE 0,-09
DEFINE FONT oFont2 NAME "ARIAL" SIZE 0,-10
...
COLUMN TITLE "EXISTENC" ;
DATA (calias)->EXISTENCIA;
PICTURE "@Z 999,999.99";
[b:1agu0kns] FONT if((calias)->existencia<0,2,1) ; //<---[/b:1agu0kns] SIZE 10;
GRID 2
...
IF oReport:lCreated
[b:1agu0kns] oReport:SetTxtColor(CLR_HRED,2) //color Rojo para la fuente 2[/b:1agu0kns]
ENDIF
Para el segundo caso (suponiendo que utilices un campo para identificar las anuladas):
COLUMN TITLE "VALOR FACT" ;
DATA (calias)->VALOR_FACT;
PICTURE "@Z 999,999.99";
[b:1agu0kns] TOTAL FOR (cAlias)->Nula = .f. [/b:1agu0kns]
Espero te ayude. Saludos. |
color columna recordselector | pues eso mismo,
1.como puedo cambiar el color de la columna en total del recordselector?
2.puedo tener renglones de un xbrowse de diferente tamaño? es que me interesa poner debajo de un nombre de un producto, un campo memo de notas, entonces este texto puede variar de tamaño, por lo tanto que se ajuste el tamaño del renglon automaticamente, se podra? como?
gracias
paco |
color de Folder | Colegascomo le coloco color a las pestañas o opciones de un Folder?graciasdavid |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.