topic
stringlengths
1
63
text
stringlengths
1
577k
Complete way update for FWH to newest version
So now and then I update my FWH version to the newest. My Process : Rename folder FWharb to FWharb_versionxx Install the FWH.exe file and done (until now i think) I think that some of my problems are due to NOT complete all updates. I have a Build.bat and MAK file on my program folder that is n ot changed until I need to add a lib like ex. Mysql.lib (or somethink like that) I noticed now for first that the buildh.bat in the samples folder is also changed by next versions, mostly adding some extra libs This file parts of buildh.bat link items is also important to update into my program folder right ? I include sometimes files like : Include report fileio btnget mail barcode and request DBFCDX DBFNTX DBFFPT DBFDBT Some of these I see in the buildh.bat files, so they are linked in if I put the lines of buildh.bat into my own .mak file. Are you guys doing it the same way ? In my way FWH is not fully updated i think.
Complete way update for FWH to newest version
Marc, The way you do it is perfectly fine Have you had any issues ?
Complete way update for FWH to newest version
I'm not sure if issues are part of the update procedure. (mostly my level of programming is the issue <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> ) I didn't update the lines in buildh.bat from the new versions, now i will and see if it make any difference. It's mostly to learn FWH better for the update procedure. I see sometimes more #includes in programs samples in the forum and also some request call. In the buildh.bat it seems that some of them are linked in and then I think the request is maybe not nesserary. I will look into it.
Complex Search on dbf from an array
if I have an array with 16 fields ( for a sample 30 records) and I wish see if I have allready the same record on a dbf and if found assign on array a check if there is allready a record into dbf How I must make ? sample : I create a price list for the June ( aData array) [img:16w5cuj2]https&#58;//i&#46;postimg&#46;cc/8k2cFsnC/kk&#46;png[/img:16w5cuj2] I wish Know if the user allready insert each record on tariffe.dbf database How I must make I wish check if the fields tipo,idelemento,servizio,settori,giorni,mese are the same as column 2,3,7,8,9 and 10, I could index the tariffe.dbf on tipo+idelemento I must use set filter?
Complex Search on dbf from an array
Silvio, selected customer in DBF2 checked if customer exist in DBF1 ( can be a array or fields, from gets ... ) [img:avwqk9xf]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Double&#46;jpg[/img:avwqk9xf] No :Setfilter() <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> to be filtered [color=#FF0000:avwqk9xf]cName := oCust2:Last + oCust2:First [/color:avwqk9xf] filterd in DBF1 with 450 records [color=#0000FF:avwqk9xf]oCust1:ORDSCOPE( 0, NIL ) // reset oCust1:ORDSCOPE( 1, NIL ) oCust1:ORDSCOPE(0, cName ) // filter oCust1:ORDSCOPE(1, cName ) oCust1:DBGOTOP()[/color:avwqk9xf] regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Complex Search on dbf from an array
But i have more fields to check On sql there is the query and on dbf?
Complex Search on dbf from an array
Just define a string with any condition to be filtered [quote:1udx8yz9]if I have an array with 16 fields ( for a sample 30 records) and I wish see if I have allready the same record on a dbf [/quote:1udx8yz9] cName := oCust2:Last + oCust2:First + <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> + <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Complex Search on dbf from an array
But i have a hard problem.. The procedure must found a price on dbf having only : 1.Datein and dateout to determine the mounth 2. Number of days 3. Type of produc 4. Code of the product 5. Letter of sector And the dbf can be much big
Complex Search on dbf from an array
Silvio, I think it will be no problem to [color=#0000FF:16hmlbau]replace[/color:16hmlbau] Customer and custom2 with 2 other files and different fields for a new test You just have to define a main-index where the filter belongs to ( I thinks it is product <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> Check it out and have a look at [color=#0000FF:16hmlbau][b:16hmlbau]test No. 8[/b:16hmlbau][/color:16hmlbau] of the new download ( have a look at the new image ). [quote:16hmlbau]1.Datein and dateout to determine the mounth 2. Number of days 3. Type of produc 4. Code of the product 5. Letter of sector[/quote:16hmlbau] Just copy TDATAB7.prg to TDATAB8.prg ( empty test ) There replace FUNCTION DATABASE7() with FUNCTION DATABASE8() and You will have a new test don't make changes to the original test in case You need some informations. FUNCTION DATABASE8() is the last empty test. Maybe we still need some more. regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Complex Search on dbf from an array
I resolved with a easy setfilter I had difficulty finding the way how to pass the values contained in the tips Local cFilter := "trim(Tipo) == '" + cTipo +; "' .and. alltrim(str(giorni))== '" + alltrim(str(nGiorni)) +; "' .and. idelemento== '"+cidelemento+; "' .and. settore== '" +cSettore+; "' .and. alltrim(idlistino)== '" +clistino+"'" oTariffePrezzi:= TTariffe():new() oTariffePrezzi:setFilter( cFilter) oTariffePrezzi:gotop() nPrezzo:= oTariffePrezzi:totale
Complex array into listbox: some one can help me please ?
I must create it <!-- m --><a class="postlink" href="http://img505.imageshack.us/img505/8279/tabletime2ck8.png">http://img505.imageshack.us/img505/8279 ... me2ck8.png</a><!-- m -->and I have a database with some field :l_lunl_marl_merl_giol_venl_sabeach field have a string of ten characters as "SSSSSSNSNS"S := YesN := NoI thinked to load all string into array type adatidisp[6,10][code:b9i974u5] static function CARICA_REC&#40;aDati, aDatiDisp&#41; aDatiDisp&#91;1&#93;&#91;1&#93;&#58;= Left&#40;aule->l_lun, 1&#41; aDatiDisp&#91;1&#93;&#91;2&#93;&#58;= SubStr&#40;aule->l_lun, 2, 1&#41; aDatiDisp&#91;1&#93;&#91;3&#93;&#58;= SubStr&#40;aule->l_lun, 3, 1&#41; aDatiDisp&#91;1&#93;&#91;4&#93;&#58;= SubStr&#40;aule->l_lun, 4, 1&#41; aDatiDisp&#91;1&#93;&#91;5&#93;&#58;= SubStr&#40;aule->l_lun, 5, 1&#41; aDatiDisp&#91;1&#93;&#91;6&#93;&#58;= SubStr&#40;aule->l_lun, 6, 1&#41; aDatiDisp&#91;1&#93;&#91;7&#93;&#58;= SubStr&#40;aule->l_lun, 7, 1&#41; aDatiDisp&#91;1&#93;&#91;8&#93;&#58;= SubStr&#40;aule->l_lun, 8, 1&#41; aDatiDisp&#91;1&#93;&#91;9&#93;&#58;= SubStr&#40;aule->l_lun, 9, 1&#41; aDatiDisp&#91;1&#93;&#91;10&#93;&#58;= right&#40;aule->l_lun, 1&#41; aDatiDisp&#91;2&#93;&#91;1&#93;&#58;= Left&#40;aule->l_mar, 1&#41; aDatiDisp&#91;2&#93;&#91;2&#93;&#58;= SubStr&#40;aule->l_mar, 2, 1&#41; aDatiDisp&#91;2&#93;&#91;3&#93;&#58;= SubStr&#40;aule->l_mar, 3, 1&#41; aDatiDisp&#91;2&#93;&#91;4&#93;&#58;= SubStr&#40;aule->l_mar, 4, 1&#41; aDatiDisp&#91;2&#93;&#91;5&#93;&#58;= SubStr&#40;aule->l_mar, 5, 1&#41; aDatiDisp&#91;2&#93;&#91;6&#93;&#58;= SubStr&#40;aule->l_mar, 6, 1&#41; aDatiDisp&#91;2&#93;&#91;7&#93;&#58;= SubStr&#40;aule->l_mar, 7, 1&#41; aDatiDisp&#91;2&#93;&#91;8&#93;&#58;= SubStr&#40;aule->l_mar, 8, 1&#41; aDatiDisp&#91;2&#93;&#91;9&#93;&#58;= SubStr&#40;aule->l_mar, 9, 1&#41; aDatiDisp&#91;2&#93;&#91;10&#93;&#58;= right&#40;aule->l_mar, 1&#41; aDatiDisp&#91;3&#93;&#91;1&#93;&#58;= Left&#40;aule->l_mer, 1&#41; aDatiDisp&#91;3&#93;&#91;2&#93;&#58;= SubStr&#40;aule->l_mer, 2, 1&#41; aDatiDisp&#91;3&#93;&#91;3&#93;&#58;= SubStr&#40;aule->l_mer, 3, 1&#41; aDatiDisp&#91;3&#93;&#91;4&#93;&#58;= SubStr&#40;aule->l_mer, 4, 1&#41; aDatiDisp&#91;3&#93;&#91;5&#93;&#58;= SubStr&#40;aule->l_mer, 5, 1&#41; aDatiDisp&#91;3&#93;&#91;6&#93;&#58;= SubStr&#40;aule->l_mer, 6, 1&#41; aDatiDisp&#91;3&#93;&#91;7&#93;&#58;= SubStr&#40;aule->l_mer, 7, 1&#41; aDatiDisp&#91;3&#93;&#91;8&#93;&#58;= SubStr&#40;aule->l_mer, 8, 1&#41; aDatiDisp&#91;3&#93;&#91;9&#93;&#58;= SubStr&#40;aule->l_mer, 9, 1&#41; aDatiDisp&#91;3&#93;&#91;10&#93;&#58;= right&#40;aule->l_mer, 1&#41; aDatiDisp&#91;4&#93;&#91;1&#93;&#58;= Left&#40;aule->l_gio, 1&#41; aDatiDisp&#91;4&#93;&#91;2&#93;&#58;= SubStr&#40;aule->l_gio, 2, 1&#41; aDatiDisp&#91;4&#93;&#91;3&#93;&#58;= SubStr&#40;aule->l_gio, 3, 1&#41; aDatiDisp&#91;4&#93;&#91;4&#93;&#58;= SubStr&#40;aule->l_gio, 4, 1&#41; aDatiDisp&#91;4&#93;&#91;5&#93;&#58;= SubStr&#40;aule->l_gio, 5, 1&#41; aDatiDisp&#91;4&#93;&#91;6&#93;&#58;= SubStr&#40;aule->l_gio, 6, 1&#41; aDatiDisp&#91;4&#93;&#91;7&#93;&#58;= SubStr&#40;aule->l_gio, 7, 1&#41; aDatiDisp&#91;4&#93;&#91;8&#93;&#58;= SubStr&#40;aule->l_gio, 8, 1&#41; aDatiDisp&#91;4&#93;&#91;9&#93;&#58;= SubStr&#40;aule->l_gio, 9, 1&#41; aDatiDisp&#91;4&#93;&#91;10&#93;&#58;= right&#40;aule->l_gio, 1&#41; aDatiDisp&#91;5&#93;&#91;1&#93;&#58;= Left&#40;aule->l_ven, 1&#41; aDatiDisp&#91;5&#93;&#91;2&#93;&#58;= SubStr&#40;aule->l_ven, 2, 1&#41; aDatiDisp&#91;5&#93;&#91;3&#93;&#58;= SubStr&#40;aule->l_ven, 3, 1&#41; aDatiDisp&#91;5&#93;&#91;4&#93;&#58;= SubStr&#40;aule->l_ven, 4, 1&#41; aDatiDisp&#91;5&#93;&#91;5&#93;&#58;= SubStr&#40;aule->l_ven, 5, 1&#41; aDatiDisp&#91;5&#93;&#91;6&#93;&#58;= SubStr&#40;aule->l_ven, 6, 1&#41; aDatiDisp&#91;5&#93;&#91;7&#93;&#58;= SubStr&#40;aule->l_ven, 7, 1&#41; aDatiDisp&#91;5&#93;&#91;8&#93;&#58;= SubStr&#40;aule->l_ven, 8, 1&#41; aDatiDisp&#91;5&#93;&#91;9&#93;&#58;= SubStr&#40;aule->l_ven, 9, 1&#41; aDatiDisp&#91;5&#93;&#91;10&#93;&#58;= right&#40;aule->l_ven, 1&#41; aDatiDisp&#91;6&#93;&#91;1&#93;&#58;= Left&#40;aule->l_sab, 1&#41; aDatiDisp&#91;6&#93;&#91;2&#93;&#58;= SubStr&#40;aule->l_sab, 2, 1&#41; aDatiDisp&#91;6&#93;&#91;3&#93;&#58;= SubStr&#40;aule->l_sab, 3, 1&#41; aDatiDisp&#91;6&#93;&#91;4&#93;&#58;= SubStr&#40;aule->l_sab, 4, 1&#41; aDatiDisp&#91;6&#93;&#91;5&#93;&#58;= SubStr&#40;aule->l_sab, 5, 1&#41; aDatiDisp&#91;6&#93;&#91;6&#93;&#58;= SubStr&#40;aule->l_sab, 6, 1&#41; aDatiDisp&#91;6&#93;&#91;7&#93;&#58;= SubStr&#40;aule->l_sab, 7, 1&#41; aDatiDisp&#91;6&#93;&#91;8&#93;&#58;= SubStr&#40;aule->l_sab, 8, 1&#41; aDatiDisp&#91;6&#93;&#91;9&#93;&#58;= SubStr&#40;aule->l_sab, 9, 1&#41; aDatiDisp&#91;6&#93;&#91;10&#93;&#58;= right&#40;aule->l_sab, 1&#41; return Nil [/code:b9i974u5]Now I want insert all data into a listboxthe first column must be a column of days o a weekAADD( aMat, { "MO" } )AADD( aMat, { "TU" } )AADD( aMat, { "WE" } )AADD( aMat, { "TH" } )AADD( aMat, { "FR" } )AADD( aMat, { "SA" } )and each adatidisp must be insert as a bitmapfor the yes "select.bmp" and for the NO "unselect.bmp"how I can make to put all in listbox ?
Complex array into listbox: some one can help me please ?
Silvio, maybe you can use the bus reservation sample from TSButton for your purpose.Regards,Otto[img:30qgxmih]http&#58;//www&#46;atzwanger&#46;com/fw/bus&#46;jpg[/img:30qgxmih]
Complex array into listbox: some one can help me please ?
Change it for[code:1f0kveir] static function CARICA_REC&#40;aDati, aDatiDisp&#41; aMat, &#123; "MO", ; Left&#40;aule->l_lun, 1&#41;, ; SubStr&#40;aule->l_lun, 2, 1&#41;, ; SubStr&#40;aule->l_lun, 3, 1&#41;, ; SubStr&#40;aule->l_lun, 4, 1&#41;, ; SubStr&#40;aule->l_lun, 5, 1&#41;, ; SubStr&#40;aule->l_lun, 6, 1&#41;, ; SubStr&#40;aule->l_lun, 7, 1&#41;, ; SubStr&#40;aule->l_lun, 8, 1&#41; , ; SubStr&#40;aule->l_lun, 9, 1&#41;, ; right&#40;aule->l_lun, 1&#41; &#125; [/code:1f0kveir]
Complex array into listbox: some one can help me please ?
Hello,if you load an array from string you can try this ( Hernan's browse)[code:1i7plcpi] FUNCTION test&#40;&#41; LOCAL oDlg, oLbx, aData, oBmpYes, oBmpNo oBmpYes &#58;= LoadBitmap &#40; GetResources&#40;&#41;, "X" &#41; oBmpNO &#58;= LoadBitmap &#40; GetResources&#40;&#41;, "XX" &#41; aData &#58;= &#123; &#123;'Lunes', 'S','N','S','S','N','S','S','S','S','S'&#125;,; &#123;'Martes', 'S','N','S','S','N','S','S','S','S','N'&#125;,; &#123;'Miercoles','S','N','S','S','N','S','S','S','S','S'&#125;,; &#123;'Jueves', 'S','N','S','S','N','S','S','S','S','N'&#125;,; &#123;'Viernes', 'N','N','N','S','N','S','S','S','S','N'&#125;,; &#123;'Sábado', 'S','N','S','S','N','S','S','S','S','N'&#125;,; &#123;'Domingo', 'S','N','S','S','N','S','S','S','S','N'&#125;; &#125; DEFINE DIALOG oDLg FROM 1,1 TO 20,30 @ 1,1 LISTBOX oLbx FIELDS HEADER "","0","1","2","3","4","5","6","7","8","9" OF oDlg oLbx&#58;setArray&#40;aData&#41; oLbx&#58;bLine&#58;=&#123;|| &#123; aData&#91;oLbx&#58;nAt,1&#93;,; IF&#40; aData&#91;oLbx&#58;nAt,2&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,3&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,4&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,5&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,6&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,7&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,8&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,9&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,10&#93; = 'S', oBmpYes, oBmpNo &#41;; &#125; &#125; ACTIVATE DIALOG oDlg RETURN&#40; NIL &#41; [/code:1i7plcpi]This sample isn't similar to your picture which you sent, but with some work, I think is possible to make some thing closeregardsMarcelo
Complex array into listbox: some one can help me please ?
HiBeing a Linux person these days I can't really help on the GUI side but it might be neater and quicker to use[code:2luboxx3]aule->l_mer&#91;3&#93; [/code:2luboxx3] in place of [code:2luboxx3]SubStr&#40;aule->l_mer, 3, 1&#41; [/code:2luboxx3] and given that you have a series of them look at using (nested) FOR EACHs and / or loops. Perhaps something along the lines of: [code:2luboxx3]aDays &#58;= ARRAY&#40; 6 &#41; aDays&#91;1&#93; &#58;= aule->l_lun aDays&#91;2&#93; &#58;= aule->l_mar aDays&#91;3&#93; &#58;= aule->l_mer aDays&#91;4&#93; &#58;= aule->l_gio aDays&#91;5&#93; &#58;= aule->l_ven aDays&#91;6&#93; &#58;= aule->l_sab FOR ii = 1 TO 6 thisString &#58;= aDays&#91;ii&#93; FOR jj = 1 TO 10 aDatiDisp&#91;ii&#93;&#91;jj&#93; &#58;= thisString&#91;jj&#93; NEXT NEXT [/code:2luboxx3]RegardsxProgrammer
Complex array into listbox: some one can help me please ?
THANKS , THANKS TO ALLPERHAPS I FOUND A SOLUTION !!!![img:3i32hxt3]http&#58;//img362&#46;imageshack&#46;us/img362/5647/testokxf6&#46;jpg[/img:3i32hxt3]BUT THERE IS AN ERROR ON LAST COLUMN ( FROM 9 TO 10)I want the listbox into dialog if I press arrow -> I can see only the last column and I not want move the listbox[img:3i32hxt3]http&#58;//img209&#46;imageshack&#46;us/img209/8633/errorra6&#46;jpg[/img:3i32hxt3]LOOK IT and try PLEASEI COMPILED WITH WBROWSE OF HERNAN[code:3i32hxt3] #INCLUDE "FIVEWIN&#46;CH" FUNCTION test&#40;&#41; LOCAL oDlg, oLbx, aData, oBmpYes, oBmpNo,oFld,oFont Local aDati &#91;7&#93; Local aDatiDisp&#91;6,10&#93; Local lsave &#58;=&#46;f&#46; oBmpYes &#58;= READBITMAP&#40; 0, "SELECT&#46;BMP" &#41; oBmpNO &#58;= READBITMAP&#40; 0, "UNSELECT&#46;BMP" &#41; DEFINE FONT oFont NAME "MS Sans Serif" SIZE 0,-8 USE AULE ALIAS AULE GO TOP //LOAD DATA from Aule&#46;dbf aDati&#91;1&#93;&#58;= aule->cod aDati&#91;2&#93;&#58;= aule->descr aDati&#91;3&#93;&#58;= aule->max_ore aDati&#91;4&#93;&#58;= aule->max_cla aDati&#91;5&#93;&#58;= aule->omo_cla aDati&#91;6&#93;&#58;= aule->aula_lab aDati&#91;7&#93;&#58;= aule->prec aDatiDisp&#91;1&#93;&#91;1&#93;&#58;= Left&#40;aule->l_lun, 1&#41; aDatiDisp&#91;1&#93;&#91;2&#93;&#58;= SubStr&#40;aule->l_lun, 2, 1&#41; aDatiDisp&#91;1&#93;&#91;3&#93;&#58;= SubStr&#40;aule->l_lun, 3, 1&#41; aDatiDisp&#91;1&#93;&#91;4&#93;&#58;= SubStr&#40;aule->l_lun, 4, 1&#41; aDatiDisp&#91;1&#93;&#91;5&#93;&#58;= SubStr&#40;aule->l_lun, 5, 1&#41; aDatiDisp&#91;1&#93;&#91;6&#93;&#58;= SubStr&#40;aule->l_lun, 6, 1&#41; aDatiDisp&#91;1&#93;&#91;7&#93;&#58;= SubStr&#40;aule->l_lun, 7, 1&#41; aDatiDisp&#91;1&#93;&#91;8&#93;&#58;= SubStr&#40;aule->l_lun, 8, 1&#41; aDatiDisp&#91;1&#93;&#91;9&#93;&#58;= SubStr&#40;aule->l_lun, 9, 1&#41; aDatiDisp&#91;1&#93;&#91;10&#93;&#58;= right&#40;aule->l_lun, 1&#41; aDatiDisp&#91;2&#93;&#91;1&#93;&#58;= Left&#40;aule->l_mar, 1&#41; aDatiDisp&#91;2&#93;&#91;2&#93;&#58;= SubStr&#40;aule->l_mar, 2, 1&#41; aDatiDisp&#91;2&#93;&#91;3&#93;&#58;= SubStr&#40;aule->l_mar, 3, 1&#41; aDatiDisp&#91;2&#93;&#91;4&#93;&#58;= SubStr&#40;aule->l_mar, 4, 1&#41; aDatiDisp&#91;2&#93;&#91;5&#93;&#58;= SubStr&#40;aule->l_mar, 5, 1&#41; aDatiDisp&#91;2&#93;&#91;6&#93;&#58;= SubStr&#40;aule->l_mar, 6, 1&#41; aDatiDisp&#91;2&#93;&#91;7&#93;&#58;= SubStr&#40;aule->l_mar, 7, 1&#41; aDatiDisp&#91;2&#93;&#91;8&#93;&#58;= SubStr&#40;aule->l_mar, 8, 1&#41; aDatiDisp&#91;2&#93;&#91;9&#93;&#58;= SubStr&#40;aule->l_mar, 9, 1&#41; aDatiDisp&#91;2&#93;&#91;10&#93;&#58;= right&#40;aule->l_mar, 1&#41; aDatiDisp&#91;3&#93;&#91;1&#93;&#58;= Left&#40;aule->l_mer, 1&#41; aDatiDisp&#91;3&#93;&#91;2&#93;&#58;= SubStr&#40;aule->l_mer, 2, 1&#41; aDatiDisp&#91;3&#93;&#91;3&#93;&#58;= SubStr&#40;aule->l_mer, 3, 1&#41; aDatiDisp&#91;3&#93;&#91;4&#93;&#58;= SubStr&#40;aule->l_mer, 4, 1&#41; aDatiDisp&#91;3&#93;&#91;5&#93;&#58;= SubStr&#40;aule->l_mer, 5, 1&#41; aDatiDisp&#91;3&#93;&#91;6&#93;&#58;= SubStr&#40;aule->l_mer, 6, 1&#41; aDatiDisp&#91;3&#93;&#91;7&#93;&#58;= SubStr&#40;aule->l_mer, 7, 1&#41; aDatiDisp&#91;3&#93;&#91;8&#93;&#58;= SubStr&#40;aule->l_mer, 8, 1&#41; aDatiDisp&#91;3&#93;&#91;9&#93;&#58;= SubStr&#40;aule->l_mer, 9, 1&#41; aDatiDisp&#91;3&#93;&#91;10&#93;&#58;= right&#40;aule->l_mer, 1&#41; aDatiDisp&#91;4&#93;&#91;1&#93;&#58;= Left&#40;aule->l_gio, 1&#41; aDatiDisp&#91;4&#93;&#91;2&#93;&#58;= SubStr&#40;aule->l_gio, 2, 1&#41; aDatiDisp&#91;4&#93;&#91;3&#93;&#58;= SubStr&#40;aule->l_gio, 3, 1&#41; aDatiDisp&#91;4&#93;&#91;4&#93;&#58;= SubStr&#40;aule->l_gio, 4, 1&#41; aDatiDisp&#91;4&#93;&#91;5&#93;&#58;= SubStr&#40;aule->l_gio, 5, 1&#41; aDatiDisp&#91;4&#93;&#91;6&#93;&#58;= SubStr&#40;aule->l_gio, 6, 1&#41; aDatiDisp&#91;4&#93;&#91;7&#93;&#58;= SubStr&#40;aule->l_gio, 7, 1&#41; aDatiDisp&#91;4&#93;&#91;8&#93;&#58;= SubStr&#40;aule->l_gio, 8, 1&#41; aDatiDisp&#91;4&#93;&#91;9&#93;&#58;= SubStr&#40;aule->l_gio, 9, 1&#41; aDatiDisp&#91;4&#93;&#91;10&#93;&#58;= right&#40;aule->l_gio, 1&#41; aDatiDisp&#91;5&#93;&#91;1&#93;&#58;= Left&#40;aule->l_ven, 1&#41; aDatiDisp&#91;5&#93;&#91;2&#93;&#58;= SubStr&#40;aule->l_ven, 2, 1&#41; aDatiDisp&#91;5&#93;&#91;3&#93;&#58;= SubStr&#40;aule->l_ven, 3, 1&#41; aDatiDisp&#91;5&#93;&#91;4&#93;&#58;= SubStr&#40;aule->l_ven, 4, 1&#41; aDatiDisp&#91;5&#93;&#91;5&#93;&#58;= SubStr&#40;aule->l_ven, 5, 1&#41; aDatiDisp&#91;5&#93;&#91;6&#93;&#58;= SubStr&#40;aule->l_ven, 6, 1&#41; aDatiDisp&#91;5&#93;&#91;7&#93;&#58;= SubStr&#40;aule->l_ven, 7, 1&#41; aDatiDisp&#91;5&#93;&#91;8&#93;&#58;= SubStr&#40;aule->l_ven, 8, 1&#41; aDatiDisp&#91;5&#93;&#91;9&#93;&#58;= SubStr&#40;aule->l_ven, 9, 1&#41; aDatiDisp&#91;5&#93;&#91;10&#93;&#58;= right&#40;aule->l_ven, 1&#41; aDatiDisp&#91;6&#93;&#91;1&#93;&#58;= Left&#40;aule->l_sab, 1&#41; aDatiDisp&#91;6&#93;&#91;2&#93;&#58;= SubStr&#40;aule->l_sab, 2, 1&#41; aDatiDisp&#91;6&#93;&#91;3&#93;&#58;= SubStr&#40;aule->l_sab, 3, 1&#41; aDatiDisp&#91;6&#93;&#91;4&#93;&#58;= SubStr&#40;aule->l_sab, 4, 1&#41; aDatiDisp&#91;6&#93;&#91;5&#93;&#58;= SubStr&#40;aule->l_sab, 5, 1&#41; aDatiDisp&#91;6&#93;&#91;6&#93;&#58;= SubStr&#40;aule->l_sab, 6, 1&#41; aDatiDisp&#91;6&#93;&#91;7&#93;&#58;= SubStr&#40;aule->l_sab, 7, 1&#41; aDatiDisp&#91;6&#93;&#91;8&#93;&#58;= SubStr&#40;aule->l_sab, 8, 1&#41; aDatiDisp&#91;6&#93;&#91;9&#93;&#58;= SubStr&#40;aule->l_sab, 9, 1&#41; aDatiDisp&#91;6&#93;&#91;10&#93;&#58;= right&#40;aule->l_sab, 1&#41; //PUT data into aData array aData &#58;= &#123; &#123;'Lunedì', aDatiDisp&#91;1&#93;&#91;1&#93;,aDatiDisp&#91;1&#93;&#91;2&#93;,aDatiDisp&#91;1&#93;&#91;3&#93;,aDatiDisp&#91;1&#93;&#91;4&#93;,aDatiDisp&#91;1&#93;&#91;5&#93;,aDatiDisp&#91;1&#93;&#91;6&#93;,aDatiDisp&#91;1&#93;&#91;7&#93;,aDatiDisp&#91;1&#93;&#91;8&#93;,aDatiDisp&#91;1&#93;&#91;9&#93;,aDatiDisp&#91;1&#93;&#91;10&#93;&#125;,; &#123;'Martedì', aDatiDisp&#91;2&#93;&#91;1&#93;,aDatiDisp&#91;2&#93;&#91;2&#93;,aDatiDisp&#91;2&#93;&#91;3&#93;,aDatiDisp&#91;2&#93;&#91;4&#93;,aDatiDisp&#91;2&#93;&#91;5&#93;,aDatiDisp&#91;2&#93;&#91;6&#93;,aDatiDisp&#91;2&#93;&#91;7&#93;,aDatiDisp&#91;2&#93;&#91;8&#93;,aDatiDisp&#91;2&#93;&#91;9&#93;,aDatiDisp&#91;2&#93;&#91;10&#93;&#125;,; &#123;'Mercoledì', aDatiDisp&#91;3&#93;&#91;1&#93;,aDatiDisp&#91;3&#93;&#91;2&#93;,aDatiDisp&#91;3&#93;&#91;3&#93;,aDatiDisp&#91;3&#93;&#91;4&#93;,aDatiDisp&#91;3&#93;&#91;5&#93;,aDatiDisp&#91;3&#93;&#91;6&#93;,aDatiDisp&#91;3&#93;&#91;7&#93;,aDatiDisp&#91;3&#93;&#91;8&#93;,aDatiDisp&#91;3&#93;&#91;9&#93;,aDatiDisp&#91;3&#93;&#91;10&#93;&#125;,; &#123;'Giovedì', aDatiDisp&#91;4&#93;&#91;1&#93;,aDatiDisp&#91;4&#93;&#91;2&#93;,aDatiDisp&#91;4&#93;&#91;3&#93;,aDatiDisp&#91;4&#93;&#91;4&#93;,aDatiDisp&#91;4&#93;&#91;5&#93;,aDatiDisp&#91;4&#93;&#91;6&#93;,aDatiDisp&#91;4&#93;&#91;7&#93;,aDatiDisp&#91;4&#93;&#91;8&#93;,aDatiDisp&#91;4&#93;&#91;9&#93;,aDatiDisp&#91;4&#93;&#91;10&#93;&#125;,; &#123;'Venerdi', aDatiDisp&#91;5&#93;&#91;1&#93;,aDatiDisp&#91;5&#93;&#91;2&#93;,aDatiDisp&#91;5&#93;&#91;3&#93;,aDatiDisp&#91;5&#93;&#91;4&#93;,aDatiDisp&#91;5&#93;&#91;5&#93;,aDatiDisp&#91;5&#93;&#91;6&#93;,aDatiDisp&#91;5&#93;&#91;7&#93;,aDatiDisp&#91;5&#93;&#91;8&#93;,aDatiDisp&#91;5&#93;&#91;9&#93;,aDatiDisp&#91;5&#93;&#91;10&#93;&#125;,; &#123;'Sabato', aDatiDisp&#91;6&#93;&#91;1&#93;,aDatiDisp&#91;6&#93;&#91;2&#93;,aDatiDisp&#91;6&#93;&#91;3&#93;,aDatiDisp&#91;6&#93;&#91;4&#93;,aDatiDisp&#91;6&#93;&#91;5&#93;,aDatiDisp&#91;6&#93;&#91;6&#93;,aDatiDisp&#91;6&#93;&#91;7&#93;,aDatiDisp&#91;6&#93;&#91;8&#93;,aDatiDisp&#91;6&#93;&#91;9&#93;,aDatiDisp&#91;6&#93;&#91;10&#93;&#125;,; &#125; //OPen dialog with Folder DEFINE DIALOG oDlg ; TITLE "# ARCHIVIO COMPLEMENTARE AULE E LABORATORI" ; FROM 1,1 to 24,85 @ 0&#46;5, 1 FOLDER oFld ITEMS "&Generale", "&Giorni/Ore disponibili" ; OF oDlg SIZE 320 ,120 @ 0, 2 say "Codice&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#58;" FONT oFont OF oFld&#58;aDialogs&#91; 1 &#93; @ 1, 2 say "Descrizione&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#58;" FONT oFont OF oFld&#58;aDialogs&#91; 1 &#93; @ 2, 2 say "Massimo ore insegnamento&#46;&#58;" FONT oFont OF oFld&#58;aDialogs&#91; 1 &#93; @ 3, 2 say "Massimo classi presenti&#46;&#46;&#58;" FONT oFont OF oFld&#58;aDialogs&#91; 1 &#93; @ 4, 2 say "Omogeneita' classi &#40;S/N&#41;&#46;&#58;" FONT oFont OF oFld&#58;aDialogs&#91; 1 &#93; @ 5, 2 say "Aula/Laboratorio &#40;A/L&#41;&#46;&#46;&#46;&#58;" FONT oFont OF oFld&#58;aDialogs&#91; 1 &#93; @ 6, 2 say "Precedenza &#40;1=max 9=min&#41;&#46;&#58;" FONT oFont OF oFld&#58;aDialogs&#91; 1 &#93; @ 0, 20 GET aDati&#91;1&#93; FONT oFont size 100,10 OF oFld&#58;aDialogs&#91; 1 &#93; @ 1, 20 GET aDati&#91;2&#93; FONT oFont size 100,10 OF oFld&#58;aDialogs&#91; 1 &#93; @ 2, 20 GET aDati&#91;3&#93; FONT oFont size 100,10 OF oFld&#58;aDialogs&#91; 1 &#93; @ 3, 20 GET aDati&#91;4&#93; FONT oFont size 100,10 OF oFld&#58;aDialogs&#91; 1 &#93; @ 4, 20 GET aDati&#91;5&#93; FONT oFont size 100,10 OF oFld&#58;aDialogs&#91; 1 &#93; @ 5, 20 GET aDati&#91;6&#93; FONT oFont size 100,10 OF oFld&#58;aDialogs&#91; 1 &#93; @ 6, 20 GET aDati&#91;7&#93; FONT oFont size 100,10 OF oFld&#58;aDialogs&#91; 1 &#93; TwBrowse&#40;&#41;&#58;lVscroll&#58;=&#46;f&#46; TwBrowse&#40;&#41;&#58;lHscroll&#58;=&#46;f&#46; @ 0,0&#46;5 LISTBOX oLbx FIELDS HEADER "","1","2","3","4","5","6","7","8","9","10" ; OF oFld&#58;aDialogs&#91; 2 &#93; UPDATE ; SIZE 300,110 ; SIZES 100, 50, 50, 50,50,50,50,50,50,50,50 oLbx&#58;setArray&#40;aData&#41; oLbx&#58;bLine&#58;=&#123;|| &#123; aData&#91;oLbx&#58;nAt,1&#93;,; IF&#40; aData&#91;oLbx&#58;nAt,2&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,3&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,4&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,5&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,6&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,7&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,8&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,9&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,10&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,11&#93; = 'S', oBmpYes, oBmpNo &#41;; &#125; &#125; //only wbrowse hernan oLbx&#58;nHeaderHeight &#58;= 38 * oLbx&#58;nHeaderStyle &#58;=11 * oLbx&#58;nlineStyle&#58;= 11 oLbx&#58;nLineHeight &#58;= 25 * oLbx&#58;nFreeze&#58;=1 oLbx&#58;lAdjBrowse&#58;=&#46;F&#46; //////////////////// oLbx&#58;lCellStyle &#58;= &#46;T&#46; * oLbx&#58;Set3DStyle&#40;&#41; oLbx&#58;aHJustify &#58;=&#123;2,2,2,2,2,2,2,2,2,2,2 &#125; // to change data oLbx&#58;bLClicked = &#123; | nRow, nCol | Cambia&#40; oLbx, nCol &#41; &#125; @ 7&#46;5, 29 BUTTON "&Conferma" OF oDlg SIZE 40,10 ACTION &#40; lsave&#58;=&#46;F&#46;,oDlg&#58;end&#40;&#41;&#41; @ 7&#46;5, 38 BUTTON "&Annulla" OF oDlg SIZE 40,10 ACTION &#40; lsave&#58;=&#46;F&#46;,oDlg&#58;end&#40;&#41;&#41; ACTIVATE DIALOG oDlg If lsave //sAVE ALL DATA endif RETURN&#40; NIL &#41; //change data STATIC FUNCTION CAMBIA&#40; oLbx, nCol &#41; IF oLbx&#58;nAtCol&#40; nCol &#41; = 3 oLbx&#58;Refresh&#40; &#46;F&#46; &#41; ENDIF RETURN NIL [/code:3i32hxt3]Another ...HOW i CAN MAKE TO CHANGE DATA INTO CAMBIA FUNCTION with a click?Best Regardssilviop.s. thanks to all!!!!!!!!!!!!!
Complex array into listbox: some one can help me please ?
Silvio,[quote:3oi91bdv]BUT THERE IS AN ERROR ON LAST COLUMN ( FROM 9 TO 10) I want the listbox into dialog if I press arrow -> I can see only the last column and I not want move the listbox [/quote:3oi91bdv]you can try to add a dummy column to the browse and adjust the last column oBrw:nAdjustCol := 10
Complex array into listbox: some one can help me please ?
Hi Silvio:Here you are a simple TSBrowse solution[url=http&#58;//server6&#46;theimagehosting&#46;com/image&#46;php?img=Silvio&#46;JPG:3fir6wir][img:3fir6wir]http&#58;//images6&#46;theimagehosting&#46;com/Silvio&#46;th&#46;JPG[/img:3fir6wir][/url:3fir6wir][code:3fir6wir]#include "FiveWin&#46;ch" #include "TSBrowse&#46;ch" REQUEST DBFCDX //----------------------------------------------------------------------------// Function Main&#40;&#41; Local oDlg, oBrw, aBmp&#91; 2 &#93;, aArray, nEle, ; aDay &#58;= &#123; "MO", "TU", "WE", "TH", "FR", "SA" &#125; Use MyDbf Shared New Via "DBFCDX" aArray &#58;= &#123;&#125; For nEle &#58;= 1 To FCount&#40;&#41; AAdd&#40; aArray, CtoA&#40; " " + FieldGet&#40; nEle &#41; &#41; &#41; aArray&#91; nEle, 1 &#93; &#58;= aDay&#91; nEle &#93; Next DEFINE BITMAP aBmp&#91; 1 &#93; FILENAME "\FWH\BITMAPS\32X32\YES&#46;BMP" DEFINE BITMAP aBmp&#91; 2 &#93; FILENAME "\FWH\BITMAPS\32X32\NO&#46;BMP" DEFINE DIALOG oDlg FROM 0, 0 TO 264, 448 PIXEL TITLE "Silvio's Headache" @ 0, 0 BROWSE oBrw ARRAY aArray CELLED OF oDlg SIZE 224, 128 PIXEL ADD COLUMN TO oBrw DATA ARRAY ELM 1 3DLOOK TRUE, FALSE ; COLORS CLR_BLACK, CLR_HGRAY SIZE 40 ALIGN DT_CENTER For nEle &#58;= 2 To 11 bData &#58;= MakeBlock&#40; oBrw, nEle, aBmp &#41; ADD COLUMN TO oBrw DATA bData TITLE LTrim&#40; Str&#40; nEle - 1 &#41; &#41; ; ALIGN nMakeLong&#40; DT_CENTER, DT_CENTER &#41; BITMAP SIZE 40 ; 3DLOOK FALSE, TRUE COLORS CLR_BLACK, CLR_WHITE, CLR_BLACK, CLR_HGRAY Next With Object oBrw &#58;nFreeze &#58;= 1 &#58;lLockFreeze &#58;= &#46;T&#46; &#58;nHeightCell += 20 &#58;nHeightHead += 20 &#58;lNoHScroll &#58;= &#46;T&#46; End With ACTIVATE DIALOG oDlg CENTERED aBmp&#91; 1 &#93;&#58;End&#40;&#41; aBmp&#91; 2 &#93;&#58;End&#40;&#41; DbCloseAll&#40;&#41; Return Nil //----------------------------------------------------------------------------// Static Function MakeBlock&#40; oBrw, nEle, aBmp &#41; Return &#123;|| If&#40; oBrw&#58;aArray&#91; oBrw&#58;nAt, nEle &#93; == "S", aBmp&#91; 1 &#93;, aBmp&#91; 2 &#93; &#41; &#125; //----------------------------------------------------------------------------// Function CtoA&#40; cString &#41; Local nEle, ; aArr &#58;= &#123;&#125; nEle &#58;= 1 While nEle <= Len&#40; cString &#41; AAdd&#40; aArr, SubStr&#40; cString, nEle++, 1 &#41; &#41; EndDo Return aArr [/code:3fir6wir]RegardsManuel Mercado
Complex array into listbox: some one can help me please ?
Silviouse oLbx:nFreeze := 11
Complex array into listbox: some one can help me please ?
Silvio,this is a functional sample[code:29x4dcgq] LOCAL oDlg, oLbx, aData, oBmpYes, oBmpNo oBmpYes &#58;= LoadBitmap &#40; GetResources&#40;&#41;, "X" &#41; oBmpNO &#58;= LoadBitmap &#40; GetResources&#40;&#41;, "XX" &#41; aData &#58;= &#123; &#123;'Lunes', 'S','N','S','S','N','S','S','S','S','S'&#125;,; &#123;'Martes', 'S','N','S','S','N','S','S','S','S','N'&#125;,; &#123;'Miercoles','S','N','S','S','N','S','S','S','S','S'&#125;,; &#123;'Jueves', 'S','N','S','S','N','S','S','S','S','N'&#125;,; &#123;'Viernes', 'N','N','N','S','N','S','S','S','S','N'&#125;,; &#123;'Sábado', 'S','N','S','S','N','S','S','S','S','N'&#125;,; &#123;'Domingo', 'S','N','S','S','N','S','S','S','S','N'&#125;; &#125; DEFINE DIALOG oDLg FROM 1,1 TO 20,70 @ 1,1 LISTBOX oLbx FIELDS HEADER "","0","1","2","3","4","5","6","7","8","9" SIZE 230,100; SIZES 80, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35 ; ON DBLCLICK &#40; IF&#40; aData&#91;oLbx&#58;nAt, oLbx&#58;nColAct&#93; = 'S', ; aData&#91;oLbx&#58;nAt, oLbx&#58;nColAct&#93; &#58;= 'N', ; aData&#91;oLbx&#58;nAt, oLbx&#58;nColAct&#93; &#58;= 'S'&#41;, ; oLbx&#58;Drawselect&#40;&#41; &#41; OF oDlg oLbx&#58;setArray&#40;aData&#41; oLbx&#58;bLine&#58;=&#123;|| &#123; aData&#91;oLbx&#58;nAt,1&#93;,; IF&#40; aData&#91;oLbx&#58;nAt,2&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,3&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,4&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,5&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,6&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,7&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,8&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,9&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,10&#93; = 'S', oBmpYes, oBmpNo &#41;,; IF&#40; aData&#91;oLbx&#58;nAt,11&#93; = 'S', oBmpYes, oBmpNo &#41;; &#125; &#125; oLbx&#58;nFreeze &#58;= 11 oLbx&#58;lCellstyle &#58;= &#46;T&#46; oLbx&#58;aJustify &#58;= &#123;2,2,2,2,2,2,2,2,2,2,2&#125; oLbx&#58;nHeaderHeight &#58;= 20 oLbx&#58;nLineHeight &#58;= 20 oLbx&#58;lVScroll &#58;= &#46;F&#46; oLbx&#58;lHScroll &#58;= &#46;F&#46; ACTIVATE DIALOG oDlg [/code:29x4dcgq]
Complex array into listbox: some one can help me please ?
Thanks to ALL and to :EMGOTTOQUIQUEMarcelo Via GiglioxProgrammerStefanHauptMaestro Manuel Mercado[img:1kz821tx]http&#58;//images6&#46;theimagehosting&#46;com/thanks-ok&#46;th&#46;jpg[/img:1kz821tx]I was trying to converte my old Dos clipper application and U helped me . Thanks!!
Complex array into listbox: some one can help me please ?
now I have the same problem but it is different hour MO | TU | WE | TH | FR | SA | ----------------->header1 ------------------------------------------------------------------------------- 2-------------------------------------------------------------------------------3-------------------------------------------------------------------------------4-------------------------------------------------------------------------------5------------------------------------------------------------------------------6-----------------------------------------------------------------------------7-------------------------------------------------------------------------------8-------------------------------------------------------------------------------9-------------------------------------------------------------------------------10------------------------------------------------------------------------------- AND i NOT INSERT BITMAP BUT ONLY TWO LINE OF WORDS
Componentes de una red
Buenas noches, Hay alguna función con la que pueda cargar un array con los nombres de las pc's que integran una red?. Gracias. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Componentes de una red
Se me ocurre que cada vez que entre un usuario con su pc, lo registres en una dbf, verificas la fecha, horam ip, macaddress etc.. Salu2
Componentes de una red
Buen día, Gracias por la respuesta, pero no es lo que necesito. Por ejemplo, tengo tres pc's conectadas en red. (PC1, PC2 y PC3). Necesito que al iniciar mi sistema, en un array cargar los nombres de las pc's integrantes de la red, es decir que, en el caso de este ejemplo en el array quede así: { "PC1" , "PC2" , "PC3" } Gracias. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Componentes de una red
yo hace unos meses hice un programa que me colocaba en una dbf todas las impresoras que hubieran en una red, no lo encuentro pero basicamente se basada en un winexec el cual ejecuta el comando de windows "net view" luego hacia otro net con el resultado de este, espero te sirva la idea
Componentes de una red
Hola, Gracias por responder. Efectivamente, si voy al dos y ejecuto el comando "net view", muestra el nombre de las pc's conectadas en red. Pero ¿como hago para "meterlos" en un array?. Gracias. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Componentes de una red
le hace salida a un txt y lees el txt con "net view > cosa.txt" y luego haces un append from SDF a la dbf
Componentes de una red
Muchas Gracias. Voy a hacerlo así, leeré el archivo con memoread para pasarlo a una variable que luego procesaré para extraerle todos los nombres de pc y pasarlos al array. De Nuevo Gracias por la ayuda. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Componentes de una red
Si son pc conectados a un dominio, puedes recuperar los nombres con Active Directory Provider. [code:27nd2v0v] FUNCTION Main&#40;&#41; LOCAL oAdoCommand,oAdoConnection,oRs,aPc&#58;=&#123;&#125; oAdoCommand&#58;=CreateObject&#40;"ADODB&#46;Command"&#41; oAdoConnection&#58;=CreateObject&#40;"ADODB&#46;Connection"&#41; oAdoConnection&#58;Provider&#58;="ADsDSOObject" oAdoConnection&#58;Open&#40;"Active Directory Provider"&#41; oAdoCommand&#58;ActiveConnection&#58;=oAdoConnection oAdoCommand&#58;CommandText&#58;="Select name from 'LDAP&#58;//NOMBRE DOMINIO' Where objectCategory='computer'" oRs&#58;=oAdoCommand&#58;Execute&#40;&#41; oRs&#58;MoveFirst&#40;&#41; DO WHILE !oRs&#58;Eof&#40;&#41; aAdd&#40;aPc,oRs&#58;Fields&#40;"Name"&#41;&#58;Value&#41; oRs&#58;MoveNext&#40;&#41; ENDDO FOR i&#58;=1 TO Len&#40;aPc&#41; ?aPc&#91;1&#93; NEXT RETURN NIL [/code:27nd2v0v]
Componer un array con los puertos de impresora instaladas
Compañeros, necesito hacer un array con los puertos de las impresoras que tenga instalada, o al menos obtener el puerto de una impresa en concreto. Con PrnGetPort() obtengo el puerto de la impresora predeterminada, pero ¿Como obtengo de una en concreto? Probé con msginfo(PrnGetPort(cimpresora)), pero por defecto siempre me muestra el puerto de la impresora predeterminada. ¿Alguna alma caritativa? Gracias. Lorenzo.
Componer un array con los puertos de impresora instaladas
¿?
Componer un array con los puertos de impresora instaladas
Has probado a seleccionar la que te interesa y luego llamar a PrnGetPort() ?
Componer un array con los puertos de impresora instaladas
Mira se ayuda: [code=fw:2bggl9wy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> STATUS_DA_IMPRESSORA<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;aArray := GetPrinters<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span> aArray <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; Alert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Nenhuma impressora Instalada"</span>, <span style="color: #ff0000;">"Atencao"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aArray<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cPrinterName := <span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span> aArray<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">at</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">","</span>, aArray<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"A Impressora "</span> + cPrinterName <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IsPrint<span style="color: #000000;">&#40;</span> alltrim<span style="color: #000000;">&#40;</span> cPrinterName <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Aten‡Æo Usu rio"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">Function</span> GetPrinters<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> aPrinter := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cAllEntries<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cEntry<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nStart<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cName<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cPrn<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cPort<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nJ<br /><br />&nbsp; &nbsp;cAllEntries := STRTRAN<span style="color: #000000;">&#40;</span> GetProfString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Devices"</span> <span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, CRLF <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">For</span> nStart := <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> MlCount<span style="color: #000000;">&#40;</span> cAllEntries <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;cName &nbsp;:= MemoLine<span style="color: #000000;">&#40;</span> cAllEntries,,nStart<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;cEntry := GetProfString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Devices"</span>,cName,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;nJ &nbsp; &nbsp; := <span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> ! Empty<span style="color: #000000;">&#40;</span>cPort := StrToken<span style="color: #000000;">&#40;</span>cEntry,nJ++,<span style="color: #ff0000;">","</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Aadd<span style="color: #000000;">&#40;</span>aPrinter,Trim<span style="color: #000000;">&#40;</span>cName<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" , "</span>+Trim<span style="color: #000000;">&#40;</span>cPort<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">EndDo</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Next</span><br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span>aPrinter<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> IsPrint<span style="color: #000000;">&#40;</span> QuePrinter <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nStatus<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> QuePrinter := <span style="color: #ff0000;">"LPT1:"</span><br /><br />&nbsp; &nbsp;nStatus := PrnStatus<span style="color: #000000;">&#40;</span> QuePrinter <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> &nbsp; &nbsp; nStatus < &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Esta Funcionando OK"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Pausada"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">2</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora com Erro"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">4</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Deletando"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">8</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora em Modo Bandeija"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp; &nbsp; <span style="color: #000000;">16</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Sem Papel"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp; &nbsp; <span style="color: #000000;">32</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora em Modo Manual"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp; &nbsp; <span style="color: #000000;">64</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora com Problema no Papel"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp; &nbsp;<span style="color: #000000;">128</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Off Line(Desligada)"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp; &nbsp;<span style="color: #000000;">256</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora com IO Ativo"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp; &nbsp;<span style="color: #000000;">512</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Ocupada"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp; <span style="color: #000000;">1024</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Imprimindo"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp; <span style="color: #000000;">2048</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Memoria Lotada"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp; <span style="color: #000000;">4096</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Nao Instalada"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp; <span style="color: #000000;">8192</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Aguardando"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp;<span style="color: #000000;">16384</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Processando"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp;<span style="color: #000000;">32768</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Inicializando"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; &nbsp;<span style="color: #000000;">65536</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora em Atencao"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; <span style="color: #000000;">131072</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Toner Baixo"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; <span style="color: #000000;">262144</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Sem Toner"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp; <span style="color: #000000;">524288</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora PAGE_PUNT(Ineficinte)"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp;<span style="color: #000000;">1048576</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Intervencao do Usuario"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp;<span style="color: #000000;">2097152</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Sem Memoria"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp;<span style="color: #000000;">4194304</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Tampa Aberta"</span><br />&nbsp; &nbsp;elseif nStatus = &nbsp;<span style="color: #000000;">8388608</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora Servidor Desconhecido"</span><br />&nbsp; &nbsp;elseif nStatus = <span style="color: #000000;">16777217</span> ; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"Impressora POWER_SAVE(Poupando Energia)"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span> nStatus <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2bggl9wy] 
Componer un array con los puertos de impresora instaladas
Buenas, Antonio: Ya lo intenté, pero al restituir a la impresora original (tal y como se indica en otros hilos de este foro) e intentar imprimir cualquier documento, me genera un error por NO tener ninguna impresora en windows como predeterminada. Karina: Gracias. Investigaré Un saludo. LORENZO.
Componer un array con los puertos de impresora instaladas
Loren, Puedes proporcionar un PRG de ejemplo de cómo lo has intentado ? gracias
Comportamento anomalo dbrlock/dbunlock
Ciao a tutti, anche se non è proprio il forum più indicato... vi è mai capitato un comportamento analogo? Eseguendo questo esempio, compilato con le versioni aggiornate di xHarbour.com o xHarbour.org, alla seconda iterazione il lock di alcuni record (tipo l'805) non va a buon fine senza una motivazione logica. L'unica differenza è che la versione compilata con l'xHarbour.org genera il comportamento strano solo se contestualmente crea il dbf, la versione xHarbour.com sempre. Dopo vari tentativi ho scoperto che ordinando l'array con i record da bloccare pare funzionare, ma non mi sembra molto stabile come soluzione. [code=fw:3hph47xv]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"set.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"dbinfo.ch"</span><br />REQUEST DBFCDX, DBFFPT<br /><br />FUNC Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> aRek     := <span style="color: #000000;">&#123;</span><span style="color: #000000;">797</span>,<span style="color: #000000;">1197</span>,<span style="color: #000000;">805</span>,<span style="color: #000000;">5341</span>,<span style="color: #000000;">5112</span>,<span style="color: #000000;">804</span>,<span style="color: #000000;">9650</span>,<span style="color: #000000;">3492</span>,<span style="color: #000000;">3491</span>,<span style="color: #000000;">807</span>,<span style="color: #000000;">802</span>,<span style="color: #000000;">803</span>,<span style="color: #000000;">1209</span>,<span style="color: #000000;">9662</span>,<span style="color: #000000;">5113</span>,<span style="color: #000000;">808</span>,<span style="color: #000000;">800</span>,<span style="color: #000000;">801</span>,<span style="color: #000000;">806</span>,<span style="color: #000000;">809</span>,<span style="color: #000000;">798</span>,<span style="color: #000000;">811</span>,<span style="color: #000000;">812</span>,<span style="color: #000000;">5111</span>,<span style="color: #000000;">1196</span>,<span style="color: #000000;">3129</span>,<span style="color: #000000;">1198</span>,<span style="color: #000000;">1200</span>,<span style="color: #000000;">2776</span>,<span style="color: #000000;">5342</span>,<span style="color: #000000;">895</span>,<span style="color: #000000;">2027</span>,<span style="color: #000000;">1234</span>,<span style="color: #000000;">5110</span>,<span style="color: #000000;">5109</span>,<span style="color: #000000;">799</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">LOCAL</span> aStruct  := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">LOCAL</span> n, nRek<br />   rddSetDefault<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DBFCDX"</span><span style="color: #000000;">&#41;</span><br />   SET DBFLOCKSCHEME <span style="color: #0000ff;">TO</span> DB_DBFLOCK_CLIP<br />   <span style="color: #00C800;">IF</span> !os_iswtsclient<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      os_netregok<span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br />   set<span style="color: #000000;">&#40;</span> _SET_MBLOCKSIZE, <span style="color: #000000;">64</span> <span style="color: #000000;">&#41;</span><br />   set<span style="color: #000000;">&#40;</span> _SET_AUTOPEN,   <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   set<span style="color: #000000;">&#40;</span> _SET_AUTORDER,  <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   set<span style="color: #000000;">&#40;</span> _SET_AUTOSHARE, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   set<span style="color: #000000;">&#40;</span> _SET_OPTIMIZE, .T.<span style="color: #000000;">&#41;</span><br />   disablewaitlocks<span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> !File<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Test.dbf"</span><span style="color: #000000;">&#41;</span><br />      aAdd<span style="color: #000000;">&#40;</span>aStruct, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"ID"</span>,         <span style="color: #ff0000;">"C"</span>,  <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      dbCreate<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Test.dbf"</span>,aStruct<span style="color: #000000;">&#41;</span><br />      USE <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Test.dbf"</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">NEW</span><br />      <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> FIELD->ID       TAG <span style="color: #ff0000;">"I1"</span><br />      <span style="color: #00C800;">FOR</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">9999</span><br />         Test-><span style="color: #000000;">&#40;</span>dbAppend<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />         Test->ID  := StrZero<span style="color: #000000;">&#40;</span>n,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">NEXT</span><br />      USE<br />   <span style="color: #00C800;">ENDIF</span><br />   USE <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Test.dbf"</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">NEW</span> SHARED<br />   <span style="color: #00C800;">FOR</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">2</span><br />      <span style="color: #00C800;">FOR</span> EACH nRek IN aRek<br />         Test-><span style="color: #000000;">&#40;</span>dbGoTo<span style="color: #000000;">&#40;</span>nRek<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">IF</span> Test-><span style="color: #000000;">&#40;</span>!dbrLock<span style="color: #000000;">&#40;</span>RecNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />            ? <span style="color: #ff0000;">'Bad lock'</span>, Test-><span style="color: #000000;">&#40;</span>RecNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">ENDIF</span><br />      <span style="color: #00C800;">NEXT</span><br />      Test-><span style="color: #000000;">&#40;</span>dbUnlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">NEXT</span><br />   ? <span style="color: #ff0000;">'End'</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:3hph47xv]
Comportamiento anómalo en barra de menú
Hola a todos He notado un comportamiento un tanto raro en la barra de menú de una de mis aplicaciones. El caso es que si al primer ÍTEM de la barra le añado un submenú, al ir a cualquier opción que tenga una ventana MDICHILD con una butonbar, me borra el penúltimo ítem del menú y me añade al anterior una opción que yo no pongo, es decir, que si tengo diez ítems me borra el noveno y en el octavo, en su submenú me añade un ítem más. Por ejemplo, el octavo ítem es IVA y tiene dos opciones, diario y listado de iva, el noveno ítem es útiles y tiene tres opciones de submenú. Bien, escojo del menú la opción clientes que tiene una ventana mdichild, me hace desaparecer el ítem útiles, y me pone un cuadro de color gris, si pincho en él me sale el octavo ítem (IVA) y me añade la opción 1 fichero de clientes, con el icono de opción elegida en su parte izquierda. No obstante si al primer ítem le quito las opciones del submenú , esto no me lo hace. ¿Alguien sabe el motivo de esto?
Comportamiento anómalo en barra de menú
Pedro... Posiblemente lo estés definiendo mal... Pone aquí la definición de tu Menú y lo analizamos. Saludos, Esteban.
Comportamiento anómalo en barra de menú
Hola Esteban No creo que lo esté definiendo mal, ya que los defino igual en otros programas. El tema está en poner o no opciones en el primer ítem del menú. No obstante te lo pongo. [code=fw:1t4x78mu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"menu.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oBarMain,oMenu<br />EXTERNAL DBFCDX<br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// INICIO DEL PROGRAMA PRINCIPAL</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oBmp<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oIco,aCorH<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> hDlib<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> aoBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span> , oBoton<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oPopMenu<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span><br />&nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">Public</span> &nbsp;oWmain, oFont<br />&nbsp; &nbsp;<span style="color: #00C800;">Public</span> &nbsp;xArea, cArea := <span style="color: #ff0000;">""</span>, cTempArea := <span style="color: #ff0000;">""</span>,aDatEmp<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp;SetHandleCount<span style="color: #000000;">&#40;</span> <span style="color: #000000;">120</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;REQUEST HB_LANG_ES <span style="color: #B900B9;">// Para establecer español para Mensajes, fechas, etc..</span><br />&nbsp; &nbsp;REQUEST DBFCDX<br />&nbsp; &nbsp;RDDSETDEFAULT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DBFCDX"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET DATE <span style="color: #0000ff;">TO</span> ITALIAN<br />&nbsp; &nbsp;SET DELETE <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET 3DLOOK <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET AUTOPEN OFF<br />&nbsp; &nbsp;SetDialogEsc<span style="color: #000000;">&#40;</span>.f.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;HB_LangSelect<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'ES'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;HB_SetCodePage<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ESMWIN"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hDlib := LoadLibrary<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"bwcc32.dll"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;BWCCRegister<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cTempArea := <span style="color: #ff0000;">"C:<span style="color: #000000;">\T</span>EMPROG"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> !lIsdir<span style="color: #000000;">&#40;</span>cTempArea<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; lMkdir<span style="color: #000000;">&#40;</span>cTempArea<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br />&nbsp; &nbsp;cTempArea := <span style="color: #ff0000;">"C:<span style="color: #000000;">\T</span>EMPROG<span style="color: #000000;">\"</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;DEFINE FONT &nbsp; oFont NAME "</span>Ms Sans Serif<span style="color: #ff0000;">" SIZE 0, -11<br />&nbsp; &nbsp;DEFINE ICON&nbsp; &nbsp;oIco &nbsp;FILENAME "</span>.\BMP\GAETE.ICO<span style="color: #ff0000;">"<br />&nbsp; &nbsp;If File("</span>.\BMP\LOGOEMP.JPG<span style="color: #ff0000;">")<br />&nbsp; &nbsp; &nbsp; oBmp := TImage():Define( , "</span>.\BMP\LOGOEMP.jpg<span style="color: #ff0000;">" )<br />&nbsp; &nbsp;Else<br />&nbsp; &nbsp; &nbsp; oBmp := TImage():Define( , "</span>.\BMP\LOGOGEN.jpg<span style="color: #ff0000;">" )<br />&nbsp; &nbsp;EndIf &nbsp; &nbsp; <br />&nbsp; &nbsp;SetBalloon( .T. ) &nbsp;<br /><br />&nbsp; &nbsp;DEFINE WINDOW oWMain MDI FROM 02, 02 TO ( MaxRow() - 2 ), ( MaxCol() - 10 );<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TITLE "</span>GESTIÓN DE CÁRNICAS<span style="color: #ff0000;">" &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ICON oIco;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENU MainMenu()<br /><br />&nbsp; &nbsp;SET FONT OF oWMain TO oFOnt<br />&nbsp; &nbsp;SET MESSAGE OF oWMain TO "</span>GESTIÓN DE CÁRNICAS<span style="color: #ff0000;">" CENTERED TIME DATE KEYBOARD 2007<br />&nbsp; &nbsp;oWMain:bPainted := {|hDC| PalBmpDraw( hDC, 0, 0, oBmp:hBitmap,, oWMain:nWidth, oWMain:nHeight,, .T.) }<br /><br /><br />&nbsp; &nbsp; &nbsp; DEFINE BUTTONBAR oBarMain OF oWMain SIZE 70, 55 2007<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; MENU oPopMenu[1] POPUP 2007<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENUITEM "</span>Ejercicios<span style="color: #ff0000;">" ACTION EscogeArea()<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENUITEM "</span>Empresas<span style="color: #ff0000;">" //ACTION Empresas(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; ENDMENU &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; DEFINE BUTTON aoBtn[1] OF oBarMain ACTION aoBtn[1]:ShowPopup() ;<br />&nbsp; &nbsp; &nbsp; RESOURCE "</span>EMPRESAS<span style="color: #ff0000;">" PROMPT "</span>EMPRESAS<span style="color: #ff0000;">" GROUP ;<br />&nbsp; &nbsp; &nbsp; MENU oPopMenu[1] TOOLTIP "</span>Area de trabajo<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[2] POPUP 2007<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Clientes<span style="color: #ff0000;">" ACTION CLIENTES(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Articulos<span style="color: #ff0000;">" ACTION ARTICULOS(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Proveedores<span style="color: #ff0000;">" ACTION PROVEEDORES(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Comerciales<span style="color: #ff0000;">" ACTION COMERCIALES(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Cobradores<span style="color: #ff0000;">" ACTION COBRADORES(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Repartidores<span style="color: #ff0000;">" ACTION REPARTIDORES(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Destos. Especiales<span style="color: #ff0000;">" ACTION DESCTOESPE(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Tipos de Iva<span style="color: #ff0000;">" ACTION TIPOSIVA(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Mensajes Albarán<span style="color: #ff0000;">" ACTION MENSAJES(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp;ENDMENU<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;DEFINE BUTTON aoBtn[2] OF oBarMain ACTION aoBtn[2]:ShowPopup(); <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RESOURCE "</span>FICHEROS<span style="color: #ff0000;">" PROMPT "</span>FICHEROS<span style="color: #ff0000;">" GROUP ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[2] TOOLTIP "</span>Ficheros generales<span style="color: #ff0000;">"<br />&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[3] POPUP 2007<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Entrada de Albaranes<span style="color: #ff0000;">" ACTION ALBARANES(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Modificación de Albaranes<span style="color: #ff0000;">" ACTION MODIFIALBAR(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Consulta de Albaranes<span style="color: #ff0000;">" ACTION CONSALBA(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Repetir Albaranes<span style="color: #ff0000;">" ACTION REPITEALB(oBarMain,oMenu )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Listado de Albaranes<span style="color: #ff0000;">" ACTION LISTALBAR(oBarMain,oMenu )<br />&nbsp; &nbsp; &nbsp; &nbsp;ENDMENU<br />&nbsp; &nbsp; &nbsp; &nbsp;DEFINE BUTTON aoBtn[3] OF oBarMain ACTION aoBtn[3]:ShowPopup() ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RESOURCE "</span>ALBARANES<span style="color: #ff0000;">" PROMPT "</span>ALBARANES<span style="color: #ff0000;">" GROUP ; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[3] TOOLTIP "</span>Gestión de albaranes<span style="color: #ff0000;">"<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[4] POPUP 2007<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Facturas de Albaranes<span style="color: #ff0000;">" ACTION FACTURALBAR(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Modificación de Facturas<span style="color: #ff0000;">" ACTION MODIFIFACTU(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Consulta de Facturas<span style="color: #ff0000;">" ACTION CONSFACTU(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Factura Directa<span style="color: #ff0000;">" ACTION FACTURAS(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Facturar un Albarán<span style="color: #ff0000;">" ACTION FACTURAUNALBAR(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Repetir Facturas<span style="color: #ff0000;">" ACTION REPITEFAC(oBarMain,oMenu )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Listado de Facturas<span style="color: #ff0000;">" ACTION LISFACTURAS(oBarMain,oMenu )<br />&nbsp; &nbsp; &nbsp; &nbsp;ENDMENU<br />&nbsp; &nbsp; &nbsp; &nbsp;DEFINE BUTTON aoBtn[4] OF oBarMain ACTION aoBtn[4]:ShowPopup();<br />&nbsp; &nbsp; &nbsp; &nbsp;RESOURCE "</span>FACTURAS<span style="color: #ff0000;">" PROMPT "</span>FACTURAS<span style="color: #ff0000;">" GROUP &nbsp;; <br />&nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[4] TOOLTIP "</span>Gestión de Facturas<span style="color: #ff0000;">"<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[5] POPUP 2007<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Clientes <span style="color: #0000ff;">sin</span> Compras General<span style="color: #ff0000;">" ACTION LISINCOMPRA(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Clientes <span style="color: #0000ff;">sin</span> Compras por fechas<span style="color: #ff0000;">" ACTION SINCOMPRAFECHA(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Clientes <span style="color: #0000ff;">sin</span> Compras un día un reparto<span style="color: #ff0000;">" ACTION SINCOMPRAUDUR(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Consumos de Clientes<span style="color: #ff0000;">" ACTION CONSUMOCLIE(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Kilos Mes de Clientes<span style="color: #ff0000;">" ACTION HISTOCLIE(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Ventas de Artículos y Agentes<span style="color: #ff0000;">" ACTION VENTAGEART(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Kilos Mes de Artículos<span style="color: #ff0000;">" ACTION HISTOART(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Agentes ventas Artículos<span style="color: #ff0000;">" ACTION LISTAGEART(oBarMain,oMenu,1)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Agentes ventas Clientes<span style="color: #ff0000;">" ACTION LISTAGECLI(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Kilos por Repartos<span style="color: #ff0000;">" ACTION LISTAGEART(oBarMain,oMenu,2 )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Ventas por Grupos Clientes<span style="color: #ff0000;">" ACTION LISVENGRUPO(oBarMain,oMenu )<br />&nbsp; &nbsp; &nbsp; &nbsp;ENDMENU<br />&nbsp; &nbsp; &nbsp; &nbsp;DEFINE BUTTON aoBtn[5] OF oBarMain ACTION aoBtn[5]:ShowPopup();<br />&nbsp; &nbsp; &nbsp; &nbsp;RESOURCE "</span>ESTADISTICAS<span style="color: #ff0000;">" PROMPT "</span>LISTADOS<span style="color: #ff0000;">" GROUP ;<br />&nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[5] TOOLTIP "</span>Estadisticas de Ventas<span style="color: #ff0000;">"<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[6] POPUP 2007<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Enlace a Contabilidad<span style="color: #ff0000;">" ACTION ENLACONTACOBR(oBarMain,oMenu,1)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Enlace a Cobros<span style="color: #ff0000;">" ACTION ENLACONTACOBR(oBarMain,oMenu,2)<br />&nbsp; &nbsp; &nbsp; &nbsp;ENDMENU<br />&nbsp; &nbsp; &nbsp; &nbsp;DEFINE BUTTON aoBtn[6] OF oBarMain ACTION aoBtn[6]:ShowPopup();<br />&nbsp; &nbsp; &nbsp; &nbsp;RESOURCE "</span>ENLACES<span style="color: #ff0000;">" PROMPT "</span>ENLACES <span style="color: #ff0000;">" GROUP ;<br />&nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[6] TOOLTIP "</span>Enlaces de Facturas Cobros/Contabilidad<span style="color: #ff0000;">"<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[7] POPUP 2007<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Listado de Albaranes del Reparto<span style="color: #ff0000;">" ACTION LISALBREP(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Marcar/Desmarcar Albaranes<span style="color: #ff0000;">" ACTION MARCALBARAN(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Cobros del Reparto<span style="color: #ff0000;">" ACTION COBROSPED(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Listado de Cobros<span style="color: #ff0000;">" ACTION LISCOBPED(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Consulta de Cobros<span style="color: #ff0000;">" ACTION CONSCOBPED(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Caja Repartos<span style="color: #ff0000;">" ACTION COBROSREP(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Listado de Caja<span style="color: #ff0000;">" ACTION LISTCAJAR(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp;ENDMENU<br />&nbsp; &nbsp; &nbsp; &nbsp;DEFINE BUTTON aoBtn[7] OF oBarMain ACTION aoBtn[7]:ShowPopup();<br />&nbsp; &nbsp; &nbsp; &nbsp;RESOURCE "</span>REPARTOS<span style="color: #ff0000;">" PROMPT "</span>REPARTO<span style="color: #ff0000;">" GROUP ;<br />&nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[7] TOOLTIP "</span>Gestión del Reparto<span style="color: #ff0000;">"<br />&nbsp; <br />&nbsp; &nbsp; &nbsp; MENU oPopMenu[8] POPUP 2007<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Diario de Facturas<span style="color: #ff0000;">" ACTION DIARIOFACTURAS(oBarMain,oMenu )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span><span style="color: #000000;">347</span> de Ventas<span style="color: #ff0000;">" ACTION MODELO347(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp;ENDMENU &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;DEFINE BUTTON aoBtn[8] OF oBarMain ACTION aoBtn[8]:ShowPopup();<br />&nbsp; &nbsp; &nbsp; &nbsp;RESOURCE "</span>IVA<span style="color: #ff0000;">" PROMPT "</span>I.V.A.<span style="color: #ff0000;">" GROUP ; <br />&nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[8] TOOLTIP "</span>UTILES DE IVA<span style="color: #ff0000;">"<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[9] POPUP 2007<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Generar Indices<span style="color: #ff0000;">" ACTION INDICES(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Elegir Impresora<span style="color: #ff0000;">" ACTION PrinterSetup(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Listados de Lotes<span style="color: #ff0000;">" ACTION LOTESANIDAD(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Kilos de un Lote<span style="color: #ff0000;">" ACTION KILOSLOTES(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Borrar Clientes <span style="color: #0000ff;">sin</span> Compras<span style="color: #ff0000;">" ACTION DELCLIESINCOM(oBarMain,oMenu)<br />&nbsp; &nbsp; &nbsp; &nbsp;ENDMENU &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;DEFINE BUTTON aoBtn[9] OF oBarMain ACTION aoBtn[9]:ShowPopup();<br />&nbsp; &nbsp; &nbsp; &nbsp;RESOURCE "</span>UTILES<span style="color: #ff0000;">" PROMPT "</span>UTILES<span style="color: #ff0000;">" GROUP ; <br />&nbsp; &nbsp; &nbsp; &nbsp;MENU oPopMenu[9] TOOLTIP "</span>UTILIDADES<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;DEFINE BUTTON aoBtn[10] OF oBarMain ACTION dbCloseAll(), oWMain:End();<br />&nbsp; &nbsp; &nbsp; &nbsp;RESOURCE "</span>Salir<span style="color: #ff0000;">" PROMPT "</span>Salir<span style="color: #ff0000;">" GROUP TOOLTIP "</span>Salir de la Aplicacion<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; ACTIVATE WINDOW oWMain MAXIMIZED ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ON INIT EscogeArea() ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;VALID MsgYesNo( "</span>Finalizar sesion?<span style="color: #ff0000;">","</span>Elija<span style="color: #ff0000;">" )<br /><br />&nbsp; &nbsp; dbCloseAll()<br />&nbsp; &nbsp; SET 3DLOOK OFF<br />&nbsp; &nbsp; RELEASE FONT oFont<br />&nbsp; &nbsp; RELEASE BITMAP oBmp<br />&nbsp; &nbsp; RELEASE ICON oIco<br />&nbsp; &nbsp; FreeLibrary(hDlib)<br /><br /><br />return( nil )<br /><br />//----------------------------------------------------------------------------//<br /><br />function MainMenu()<br /><br />&nbsp; <br /><br /><br />&nbsp; &nbsp;MENU oMenu 2007<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; MENUITEM "</span>Ejercicios<span style="color: #ff0000;">"<br />&nbsp; &nbsp;MENU<br />&nbsp; &nbsp; &nbsp;MENUITEM "</span>Areas de trabajo<span style="color: #ff0000;">" ACTION EscogeArea() ;<br />&nbsp; &nbsp; &nbsp; &nbsp;MESSAGE "</span>Eleccion del Area de trabajo<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;MENUITEM "</span>Empresas<span style="color: #ff0000;">" ACTION MsgInfo("</span>empresas<span style="color: #ff0000;">") ;<br />&nbsp; &nbsp; &nbsp;MESSAGE "</span>Creación de ejercicios<span style="color: #ff0000;">" <br />&nbsp; &nbsp;ENDMENU &nbsp; &nbsp; &nbsp; &nbsp; <br /><br /><br />&nbsp; &nbsp; &nbsp;MENUITEM "</span>Ficheros<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;MENU<br />&nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Clientes<span style="color: #ff0000;">" &nbsp;ACTION CLIENTES(oBarMain, oMenu) ;<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Fichas de Clientes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Artículos<span style="color: #ff0000;">" ACTION ARTICULOS(oBarMain, oMenu) ;<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Fichas de Artículos<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Proveedores<span style="color: #ff0000;">" ACTION PROVEEDORES(oBarMain, oMenu) ;<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Fichas de Proveedores<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Comerciales<span style="color: #ff0000;">" ACTION COMERCIALES(oBarMain, oMenu) ;<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Fichas de Comerciales<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Cobradores<span style="color: #ff0000;">" ACTION COBRADORES(oBarMain, oMenu) ;<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Fichas de Cobradores<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Repartidores<span style="color: #ff0000;">" ACTION REPARTIDORES(oBarMain, oMenu) ;<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Fichas de Repartidores<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Desctos. Especiales<span style="color: #ff0000;">" ACTION DESCTOESPE(oBarMain, oMenu) ;<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Descuentos especiales a Clientes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Tipos de Iva<span style="color: #ff0000;">" ACTION TIPOSIVA(oBarMain, oMenu) ;<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Fichas de Tipos de IVA<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Mensajes Albarán<span style="color: #ff0000;">" ACTION MENSAJES(oBarMain, oMenu) ;<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Mensajes en Albaranes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;ENDMENU<br /><br /><br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Albaranes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;MENU<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;MENUITEM "</span>Entrada de Albaranes<span style="color: #ff0000;">" ACTION ALBARANES(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; &nbsp; MESSAGE "</span>Hacer albaranes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Modificación de Albaranes<span style="color: #ff0000;">" ACTION MODIFIALBAR(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Modificar albaranes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Consulta de Albaranes<span style="color: #ff0000;">" ACTION CONSALBA(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Consultar albaranes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Repetir Albaranes<span style="color: #ff0000;">" ACTION REPITEALB(oBarMain,oMenu );<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Repetir impresión de albaranes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Listado de Albaranes<span style="color: #ff0000;">" ACTION LISTALBAR(oBarMain,oMenu );<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Listados de albaranes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;ENDMENU<br /><br /><br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Facturas<span style="color: #ff0000;">"<br />&nbsp; &nbsp;MENU &nbsp;<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Facturas de Albaranes<span style="color: #ff0000;">" ACTION FACTURALBAR(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Facturar albaranes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Modificación de Facturas<span style="color: #ff0000;">" ACTION MODIFIFACTU(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Modificar Facturas<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Consulta de Facturas<span style="color: #ff0000;">" ACTION CONSFACTU(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Consultar Facturas<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Factura Directa<span style="color: #ff0000;">" ACTION FACTURAS(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Hacer una Factura<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Facturar un Albarán<span style="color: #ff0000;">" ACTION FACTURAUNALBAR(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Facturar un albarán<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Repetir Facturas<span style="color: #ff0000;">" ACTION REPITEFAC(oBarMain,oMenu );<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Repetir Facturas<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Listado de Facturas<span style="color: #ff0000;">" ACTION LISFACTURAS(oBarMain,oMenu );<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Listados de Facturas<span style="color: #ff0000;">"<br />&nbsp; &nbsp;ENDMENU &nbsp; <br /><br /><br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Estadisticas<span style="color: #ff0000;">"<br />&nbsp; &nbsp;MENU &nbsp;<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Clientes <span style="color: #0000ff;">sin</span> Compras<span style="color: #ff0000;">" ACTION LISINCOMPRA(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Listado de Clientes <span style="color: #0000ff;">sin</span> Compras<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Consumos de Clientes<span style="color: #ff0000;">" ACTION CONSUMOCLIE(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Listado de Consumos de Clientes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Kilos Mes de Clientes<span style="color: #ff0000;">" ACTION HISTOCLIE(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Listado de Kilos de Clientes por mes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Ventas de Artículos y Agentes<span style="color: #ff0000;">" ACTION VENTAGEART(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Listado de Ventas de Artículos y por Agentes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Kilos Mes de Artículos<span style="color: #ff0000;">" ACTION HISTOART(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Listado de Kilos de Artículos por mes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Agentes ventas Artículos<span style="color: #ff0000;">" ACTION LISTAGEART(oBarMain,oMenu,1);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Ventas de Artículos por Agentes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Agentes ventas Clientes<span style="color: #ff0000;">" ACTION LISTAGECLI(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Ventas a Clientes por Agentes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Kilos por Repartos<span style="color: #ff0000;">" ACTION LISTAGEART(oBarMain,oMenu,2 );<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Ventas en Kilos por reparto entre fechas<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Ventas por Grupos Clientes<span style="color: #ff0000;">" ACTION LISVENGRUPO(oBarMain,oMenu );<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Ventas a Grupos de Clientes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;ENDMENU<br /><br /><br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Enlaces<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;MENU<br />&nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Enlace a Contabilidad<span style="color: #ff0000;">" ACTION ENLACONTACOBR(oBarMain, oMenu,1) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MESSAGE "</span>Enlace de facturas a IVA y Contabilidad<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Enlace a Cobros<span style="color: #ff0000;">" ACTION ENLACONTACOBR(oBarMain, oMenu,2 ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MESSAGE "</span>Enlace de facturas a Cobros<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;ENDMENU<br /><br /><br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Repartos<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;MENU<br />&nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Listado de Albaranes del Reparto<span style="color: #ff0000;">" ACTION LISALBREP(oBarMain, oMenu ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MESSAGE "</span>Listado de Artículos de un reparto<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Marcar/Desmarcar Albaranes<span style="color: #ff0000;">" ACTION MARCALBARAN(oBarMain, oMenu ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MESSAGE "</span>Marca o desmarca albaranes para no facturar<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Cobros del Reparto<span style="color: #ff0000;">" ACTION COBROSPED(oBarMain, oMenu ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MESSAGE "</span>Cobros de albaranes de un reparto<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Listado de Cobros<span style="color: #ff0000;">" ACTION LISCOBPED(oBarMain, oMenu ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MESSAGE "</span>Listado de los Cobros de un reparto<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Caja Repartos<span style="color: #ff0000;">" ACTION COBROSREP(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MESSAGE "</span>Entrada de Cobros de los repartos<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;ENDMENU<br /><br /><br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>I.V.A.<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;MENU<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Diario de Facturas<span style="color: #ff0000;">" ACTION DIARIOFACTURAS(oBarMain,oMenu );<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Diario de Facturas Emitidas<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR <br />&nbsp; &nbsp; &nbsp; MENUITEM "</span><span style="color: #000000;">347</span> de Ventas<span style="color: #ff0000;">" ACTION MODELO347(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; &nbsp; MESSAGE "</span>Modelo <span style="color: #000000;">347</span> de ventas<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;ENDMENU<br /><br /><br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Utiles<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp;MENU<br />&nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>Indices<span style="color: #ff0000;">" ACTION Indices(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; &nbsp; MESSAGE "</span>Generacion de Indices<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR <br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>&Impresora<span style="color: #ff0000;">" ACTION PrinterSetUp();<br />&nbsp; &nbsp; &nbsp; &nbsp; MESSAGE "</span>Configuracion impresora<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>&Buscar Lotes<span style="color: #ff0000;">" ACTION LOTESANIDAD(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; &nbsp; MESSAGE "</span>Búsqueda y Listado de Lotes<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Borrar Clientes <span style="color: #0000ff;">sin</span> Compras<span style="color: #ff0000;">" ACTION DELCLIESINCOM(oBarMain,oMenu);<br />&nbsp; &nbsp; &nbsp; MESSAGE "</span>Borrar clientes que no han comprado<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; MENUITEM "</span>&Acerca de...<span style="color: #ff0000;">" ACTION MsgAbout("</span>GFACTU <span style="color: #000000;">2.0</span><span style="color: #ff0000;">",,,,"</span><span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span>Pedro Núñez<span style="color: #ff0000;">","</span>LOGO<span style="color: #ff0000;">" ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MESSAGE OemToAnsi( "</span>GESTION COMERCIAL<span style="color: #ff0000;">" )<br />&nbsp; &nbsp; &nbsp;ENDMENU<br /><br />&nbsp; &nbsp; &nbsp; MENUITEM "</span>Terminar<span style="color: #ff0000;">" ACTION oWMain:End(),dbCloseAll() ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MESSAGE OemToAnsi( "</span>Volver a Windows<span style="color: #ff0000;">" )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;ENDMENU<br /><br />return( oMenu )<br />*-------------------------------------------------------------------------------<br />#pragma BEGINDUMP<br /><br />#include <hbapi.h><br />#include <windows.h><br /><br />HB_FUNC( OLEUNINITIALIZE )<br />{<br />&nbsp; &nbsp;OleUninitialize();<br />}<br /><br />#pragma ENDDUMP<br /><br />*******************************************************************************<br /><br /><br />DLL32 FUNCTION BWCCRegister( hInst AS LONG ) AS WORD PASCAL LIB "</span>BWCC32.DLL<span style="color: #ff0000;">"<br /></span></div>[/code:1t4x78mu]
Comportamiento de CheckBox
Amigos: He notado que un checkbox puesto sobre un DIALOG acepta salir con la tecla ENTER o RETURN pero si el checkbox esta sobre un FOLDER solo es posible salir con la tecla TAB. Alguna idea de como corregir este comportamiento para salir con la tecla RETURN ? FWH810 y xHarbour Saludos
Comportamiento de CheckBox
D. Antonio: Alguna pista sobre esto ? Gracias
Comportamiento de CheckBox
Master Linares: Alguna respuesta ? Saludos
Comportamiento de CheckBox
Armando, Puedes proporcionar un PRG pequeño de ejemplo que reproduzca lo que comentas ? gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Comportamiento de CheckBox
Antonio: Aquí tienes el link donde puedes bajar el ejemplo que me pediste. <!-- m --><a class="postlink" href="http://www.megaupload.com/?d=06LBK8IR">http://www.megaupload.com/?d=06LBK8IR</a><!-- m --> Por favor cambia la extensión del archivo es ZIP pero va como ZOP, te estoy enviando la carpeta en la que construí el ejemplo, incluye los PRGS, RES y el EXE para que puedas ver como se comporta. Por cierto, estoy compilando con FWH810. Saludos y gracias por tu interés
Comportamiento de CheckBox
Maestro Antonio: Te sirvió el ejemplo que subí ?, o necesitas alguna otra cosa ? Saludos
Comportamiento de CheckBox
Master Antonio: En algun post mencionaste que había que insistir porque algunas veces, por carga de trabajo, se te olvida dar respuesta. Alguna novedad ? Saludos
Comportamiento de CheckBox
Armando, Con este código aqui funciona bien FWH\samples\TestFold.prg: oChk:bKeyDown = { || oChk:oWnd:GoNextCtrl() } Gracias por insistir <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Son muchos mensajes, muchas cosas en la cabeza, y es la única forma: insistir <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Comportamiento de CheckBox
Antonio: Excelente !, con tu solución todo funciona muy bien. Gracias
Comportamiento desigual entre xharbour y harbour
Hola compañeros. A que puede deberse que en xharbour este código se comporta correctamente , me pinta de distinto color aquellos recibos en los cuales los cheques diferidos ya han sido acreditados, y en harbour me muestra el listbox completamente vacío? y se bloquea el programa [code=fw:s9iym9k3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />....<br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">LISTBOX</span> oBrw1 fields StrZero<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oAjuste:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>->ncli, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; StrZero<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oAjuste:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>->recibo, <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> oAjuste:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>->detalle, ;<br />&nbsp; &nbsp; &nbsp; Transform<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oAjuste:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>->dolar, <span style="color: #ff0000;">"@e 999,999.999"</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; Transform<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oAjuste:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>->importe, <span style="color: #ff0000;">"@e 99,999,999.99"</span> <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">UPDATE</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> DBLCLICK &nbsp;hnotas<span style="color: #000000;">&#40;</span> &nbsp;oAjuste, oBrw1 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <br /><br />&nbsp; &nbsp;oBrw1:<span style="color: #000000;">aheaders</span> := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Nº Cliente"</span>, <span style="color: #ff0000;">"Recibo"</span>, <span style="color: #ff0000;">"Detalle"</span>, <span style="color: #ff0000;">"Dólar"</span>, <span style="color: #ff0000;">"Importe"</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrw1:<span style="color: #000000;">aColSizes</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">90</span>, <span style="color: #000000;">90</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">95</span>, <span style="color: #000000;">120</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrw1:<span style="color: #000000;">aHjustify</span> := <span style="color: #000000;">&#123;</span><span style="color: #000000;">2</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrw1:<span style="color: #000000;">ajustify</span> := <span style="color: #000000;">&#123;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrw1:<span style="color: #000000;">bSkip</span> = <span style="color: #000000;">&#123;</span>| nRecs | oAjuste:<span style="color: #000000;">Skipper</span><span style="color: #000000;">&#40;</span> nRecs <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrw1:<span style="color: #000000;">nLineStyle</span> := <span style="color: #000000;">3</span><br />&nbsp; &nbsp;oBrw1:<span style="color: #000000;">nClrPane</span> := <span style="color: #000000;">&#123;</span> || iif<span style="color: #000000;">&#40;</span>fechache<span style="color: #000000;">&#40;</span>oAjuste:<span style="color: #000000;">recibo</span>,oCheque,oBrw1<span style="color: #000000;">&#41;</span>, cColor<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"verde"</span><span style="color: #000000;">&#41;</span>, cColor<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />etc,etc<br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> fechache<span style="color: #000000;">&#40;</span>nRecibo,oCheque,obrw1<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> lverdad := .t.<br /><br />oCheque:<span style="color: #000000;">gotop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">if</span> oCheque:<span style="color: #000000;">seek</span><span style="color: #000000;">&#40;</span>nRecibo<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">do</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> oCheque:<span style="color: #000000;">feccha</span> >= Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lverdad := .f.<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; oCheque:<span style="color: #000000;">skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;until oCheque:<span style="color: #000000;">recibo</span> != nRecibo<br /><span style="color: #00C800;">endif</span><br />&nbsp;<br />obrw1:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> lverdad<br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:s9iym9k3] Luis
Comportamiento desigual entre xharbour y harbour
hola por casualidad utilizas la clase twbrowse() de Hernan? si es correcto, entonces elimina la wbrowse.obj de la libreria fiveh.lib
Comportamiento desigual entre xharbour y harbour
Patricio utilizó la clase de Hernan pero en todos los demás módulos funciona bien, es en esta rutina en particular que falla y temo que mi código no debe ser bueno. Lo puedo resolver antes del wbrowse cargando un array con la [color=#0040BF:3nis7lul]función fechache(nrecibo,oCheque,oBrw1)[/color:3nis7lul] resuelta en el mismo, es decir agregando lverdad como nuevo itmen del array , pero tendrían que comportarse tanto en harbor como xharbour de forma similar ya que no es nada que con clipper no se hiciera. Se puede hacer algo en la función [color=#0040BF:3nis7lul]fechache[/color:3nis7lul] para que con un mínimo cambio funcione Saludos Luis
Comportamiento desigual entre xharbour y harbour
Probando lo solucioné les muestro una parte mas del código original [code=fw:3aq54yw4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />********<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> !pasaje<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ajustes"</span> <span style="color: #000000;">&#41;</span>;RETURN <span style="color: #00C800;">nil</span>;ENDIF<br />&nbsp; &nbsp;DATABASE oAjuste<br />&nbsp; &nbsp;oAjuste:<span style="color: #000000;">beof</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oAjuste:<span style="color: #000000;">setorder</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aObj, oAjuste <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; oAjuste:<span style="color: #000000;">gotop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"Brw_grup"</span><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">cCaption</span> := <span style="color: #ff0000;">"Notas de Crédito-Débito"</span><br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> onbut<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">104</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"BTNELIMINA"</span>, <span style="color: #ff0000;">"BTNELIMINA1"</span> &nbsp;<span style="color: #0000ff;">ACTION</span> &nbsp;BORRO<span style="color: #000000;">&#40;</span> oBrw1, oAjuste <span style="color: #000000;">&#41;</span> &nbsp;NOBORDER<br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> onbut<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">105</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"btnsalir"</span>, <span style="color: #ff0000;">"btnsali1"</span> &nbsp; <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> NOBORDER<br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> onbut<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">108</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"btnctacte"</span>, <span style="color: #ff0000;">"btnctacte1"</span> &nbsp;<span style="color: #0000ff;">ACTION</span> ctacli<span style="color: #000000;">&#40;</span> oAjuste:<span style="color: #000000;">ncli</span>,, .F. <span style="color: #000000;">&#41;</span> NOBORDER<br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> onbut<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">107</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"bt_guardar"</span>, <span style="color: #ff0000;">"bt_guardar1"</span> &nbsp;<span style="color: #0000ff;">ACTION</span> fguardo<span style="color: #000000;">&#40;</span> oAjuste, oAjuste1, oBrw1 <span style="color: #000000;">&#41;</span> NOBORDER<br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> onbut<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">106</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"bt_espera"</span>, <span style="color: #ff0000;">"bt_espera1"</span> &nbsp;<span style="color: #0000ff;">ACTION</span> fespera<span style="color: #000000;">&#40;</span> oAjuste1, oDlg <span style="color: #000000;">&#41;</span> NOBORDER<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">LISTBOX</span> oBrw1 fields StrZero<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oAjuste:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>->ncli, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; StrZero<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oAjuste:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>->recibo, <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> oAjuste:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>->detalle, ;<br />&nbsp; &nbsp; &nbsp; Transform<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oAjuste:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>->dolar, <span style="color: #ff0000;">"@e 999,999.999"</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; Transform<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oAjuste:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>->importe, <span style="color: #ff0000;">"@e 99,999,999.99"</span> <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">UPDATE</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> DBLCLICK &nbsp;hnotas<span style="color: #000000;">&#40;</span> oAjuste:<span style="color: #000000;">recibo</span>, oAjuste:<span style="color: #000000;">ncli</span>, oAjuste:<span style="color: #000000;">importe</span>, oAjuste, oBrw1 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <br /><br />&nbsp; &nbsp;oBrw1:<span style="color: #000000;">aheaders</span> := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Nº Cliente"</span>, <span style="color: #ff0000;">"Recibo"</span>, <span style="color: #ff0000;">"Detalle"</span>, <span style="color: #ff0000;">"Dólar"</span>, <span style="color: #ff0000;">"Importe"</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrw1:<span style="color: #000000;">aColSizes</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">90</span>, <span style="color: #000000;">90</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">95</span>, <span style="color: #000000;">120</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrw1:<span style="color: #000000;">aHjustify</span> := <span style="color: #000000;">&#123;</span><span style="color: #000000;">2</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrw1:<span style="color: #000000;">ajustify</span> := <span style="color: #000000;">&#123;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrw1:<span style="color: #000000;">bSkip</span> = <span style="color: #000000;">&#123;</span>| nRecs | oAjuste:<span style="color: #000000;">Skipper</span><span style="color: #000000;">&#40;</span> nRecs <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrw1:<span style="color: #000000;">nLineStyle</span> := <span style="color: #000000;">3</span><br />&nbsp; &nbsp;oBrw1:<span style="color: #000000;">nClrPane</span> := <span style="color: #000000;">&#123;</span> || iif<span style="color: #000000;">&#40;</span>fechache<span style="color: #000000;">&#40;</span>oAjuste:<span style="color: #000000;">recibo</span>,oCheque,oBrw1<span style="color: #000000;">&#41;</span>, cColor<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"verde"</span><span style="color: #000000;">&#41;</span>, cColor<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;<br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">Init</span> oBrw1:<span style="color: #000000;">gobottom</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cldata<span style="color: #000000;">&#40;</span> aObj <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:3aq54yw4] El código de arriba funcionaba en xharbour pero no en harbour. Le quité [color=#FF0000:3aq54yw4]oAjuste:gotop()[/color:3aq54yw4] Y ahora funciona con los dos compiladores Ahora cual es la explicación?? Luis
Comportamiento desigual entre xharbour y harbour
Luis, Pero ahora te funciona bien ?
Comportamiento desigual entre xharbour y harbour
Hola Antonio, sí funciona perfectamente, no hay cuelgues, las consultas que hago sobre la grilla responden bien. Funciona igual que en xHarbour. Luis
Comportamiento extraño
Hola compañeros tengo el siguiente código [code=fw:1y04cc44]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #00C800;">LOCAL</span> aConstancia := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Activo"</span>, <span style="color: #ff0000;">"No Inscripto"</span>, <span style="color: #ff0000;">"Exento"</span>, <span style="color: #ff0000;">"No Alcanzado"</span>, <span style="color: #ff0000;">"Exento no alcanzado"</span> <span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">LOCAL</span> cConiva := <span style="color: #ff0000;">"No Inscripto"</span><br />   <span style="color: #00C800;">LOCAL</span> cCongan := <span style="color: #ff0000;">"No Inscripto"</span><br />   <span style="color: #00C800;">LOCAL</span> cConmono := <span style="color: #ff0000;">"No Inscripto"</span><br /><br /> <span style="color: #B900B9;">/////////</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCos<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cConiva <span style="color: #0000ff;">id</span> <span style="color: #000000;">114</span> <span style="color: #0000ff;">ITEMS</span> aConstancia <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCos<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cCongan <span style="color: #0000ff;">id</span> <span style="color: #000000;">115</span> <span style="color: #0000ff;">ITEMS</span> aConstancia <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCos<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cConmono <span style="color: #0000ff;">id</span> <span style="color: #000000;">119</span> <span style="color: #0000ff;">ITEMS</span> aConstancia <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span><br /><span style="color: #B900B9;">/////////////</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> ACEPTAR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">IF</span>  reviso<span style="color: #000000;">&#40;</span>oData<span style="color: #000000;">&#41;</span><br />     <span style="color: #B900B9;">/////</span><br />           oData:<span style="color: #000000;">constiva</span> := grabcons<span style="color: #000000;">&#40;</span> cConiva <span style="color: #000000;">&#41;</span><br />           oData:<span style="color: #000000;">constgan</span> := grabcons<span style="color: #000000;">&#40;</span> cCongan <span style="color: #000000;">&#41;</span><br />           oData:<span style="color: #000000;">constmono</span> := grabcons<span style="color: #000000;">&#40;</span> cConmono <span style="color: #000000;">&#41;</span><br />      <span style="color: #B900B9;">//////</span><br />           salvo<span style="color: #000000;">&#40;</span>oData<span style="color: #000000;">&#41;</span><br /> <br />      <span style="color: #00C800;">ENDIF</span><br /> </div>[/code:1y04cc44] [code=fw:1y04cc44]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> grabcons<span style="color: #000000;">&#40;</span> cConstan <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> cActivo := <span style="color: #ff0000;">""</span><br /><br />   ? cConstan<br /><br />   <span style="color: #00C800;">IF</span> cConstan == <span style="color: #ff0000;">"Activo"</span><br />      cActivo := <span style="color: #ff0000;">"AC"</span><br />   ELSEIF cConstan == <span style="color: #ff0000;">"No Inscripto"</span><br />      cActivo := <span style="color: #ff0000;">"NI"</span><br />   ELSEIF cConstan == <span style="color: #ff0000;">"Exento"</span><br />      cActivo := <span style="color: #ff0000;">"EX"</span><br />   ELSEIF cConstan == <span style="color: #ff0000;">"No alcanzado"</span><br />      cActivo := <span style="color: #ff0000;">"NA"</span><br />   ELSEIF cConstan == <span style="color: #ff0000;">"Exento no alcanzado"</span><br />      cActivo := <span style="color: #ff0000;">"AN"</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> cActivo<br /> </div>[/code:1y04cc44] Este mismo código compilado con harbour da distintos resultados que con xharbour, a saber hice un msginfo en dónde transformo las variables al dato que necesito Supongamos que en el combo elijo "Activo" En xHarbour El msginfo dice [color=#BF0040:1y04cc44]"Activo"[/color:1y04cc44] pero el compilado con harbour El msginfo dice [color=#FF0040:1y04cc44] "Activocripto"[/color:1y04cc44] No reemplaza la variable sino que la sobreescribe. Lo que hice fue poner todas las opciones con la misma cantidad de caracteres, y funciona. Pero porque el comportamiento. Luis
Comportamiento extraño
Luis, Puedes comprobar si en el ejemplo samples\combos.prg te ocurre igual ? gracias
Comportamiento extraño
No Antonio en el ejemplo funciona bien. Luis
Comportamiento extraño
Luis, Podrias proporcionar un pequeño ejemplo autocontenido que reproduzca el problema ? gracias
Comportamiento extraño
Antonio hice este ejemplo lo compile en el mismo programa ....Y ACA FUNCIONA BIEN [code=fw:3uwrd69e]<div class="fw" id="{CB}" style="font-family: monospace;"><br /># include <span style="color: #ff0000;">"Fivewin.ch"</span><br />&nbsp;<span style="color: #00C800;">function</span> prueba<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<br />&nbsp;<span style="color: #00C800;">LOCAL</span> aConstancia := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Activo"</span>, <span style="color: #ff0000;">"No Inscripto"</span>, <span style="color: #ff0000;">"Exento"</span>, <span style="color: #ff0000;">"No Alcanzado"</span>, <span style="color: #ff0000;">"Exento no alcanzado"</span> <span style="color: #000000;">&#125;</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> cConmono &nbsp;:= <span style="color: #ff0000;">"No Inscripto"</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> oDlg<br />&nbsp;<span style="color: #00C800;">local</span> oBtn<br />&nbsp;<br />&nbsp;<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>, <span style="color: #000000;">60</span><br />&nbsp;<br /><br />@ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">COMBOBOX</span> cConmono <span style="color: #0000ff;">ITEMS</span> aConstancia <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">100</span><br /><br />@ <span style="color: #000000;">4</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">button</span> oBtn &nbsp;<span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"prueba"</span> <span style="color: #0000ff;">ACTION</span> grabcons<span style="color: #000000;">&#40;</span> cConmono <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">30</span> <br /><br />@ <span style="color: #000000;">4</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">button</span> oBtn &nbsp; <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Salir"</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">30</span> <br /><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">/////////////////////////////////////////////////////////////////////////////////////////</span><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">FUNCTION</span> grabcons<span style="color: #000000;">&#40;</span> cConstan <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cActivo := <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp;? cConstan<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> cConstan == <span style="color: #ff0000;">"Activo"</span><br />&nbsp; &nbsp; &nbsp; cActivo := <span style="color: #ff0000;">"AC"</span><br /><br />&nbsp; &nbsp;ELSEIF cConstan == <span style="color: #ff0000;">"No Inscripto"</span><br />&nbsp; &nbsp; &nbsp; cActivo := <span style="color: #ff0000;">"NI"</span><br />&nbsp; &nbsp;ELSEIF cConstan == <span style="color: #ff0000;">"Exento"</span><br />&nbsp; &nbsp; &nbsp; cActivo := <span style="color: #ff0000;">"EX"</span><br />&nbsp; &nbsp;ELSEIF cConstan == <span style="color: #ff0000;">"No alcanzado"</span><br />&nbsp; &nbsp; &nbsp; cActivo := <span style="color: #ff0000;">"NA"</span><br />&nbsp; &nbsp;ELSEIF cConstan == <span style="color: #ff0000;">"Exento no alcanzado"</span><br />&nbsp; &nbsp; &nbsp; cActivo := <span style="color: #ff0000;">"AN"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> cActivo<br />&nbsp;</div>[/code:3uwrd69e] Aquí funciona bien. Realmente no se porque en los demas programas no trabaja correctamente, ya que todos los prg que son compilados con harbour y xharbour son los mismos, pero en uno funciona y en harbour da esa incongruencia. Luis
Comportamiento extraño
Seguí haciendo pruebas Código original [code=fw:3uhfy6u7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCos<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cConiva <span style="color: #0000ff;">id</span> <span style="color: #000000;">114</span> <span style="color: #0000ff;">ITEMS</span> aConstancia <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span><br /> </div>[/code:3uhfy6u7] En este es caso cuando da la incongruencia entre los dos compiladores Ahora si hago [code=fw:3uhfy6u7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCos<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cConiva <span style="color: #0000ff;">id</span> <span style="color: #000000;">114</span> <span style="color: #0000ff;">ITEMS</span> aConstancia <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span>  <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> grabcons<span style="color: #000000;">&#40;</span>cConiva<span style="color: #000000;">&#41;</span><br /> </div>[/code:3uhfy6u7] Recuerdo la función [code=fw:3uhfy6u7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> grabcons<span style="color: #000000;">&#40;</span> cConstan <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> cActivo := <span style="color: #ff0000;">""</span><br /><br />   ? AllTrim<span style="color: #000000;">&#40;</span>cConstan<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> cConstan = <span style="color: #ff0000;">"Activo"</span><br />      cActivo := <span style="color: #ff0000;">"AC"</span><br />   ELSEIF cConstan = <span style="color: #ff0000;">"No Inscripto"</span><br />      cActivo := <span style="color: #ff0000;">"NI"</span><br />   ELSEIF cConstan = <span style="color: #ff0000;">"Exento"</span><br />      cActivo := <span style="color: #ff0000;">"EX"</span><br />   ELSEIF cConstan = <span style="color: #ff0000;">"No alcanzado"</span><br />      cActivo := <span style="color: #ff0000;">"NA"</span><br />   ELSEIF cConstan = <span style="color: #ff0000;">"Exento no alcanzado"</span><br />      cActivo := <span style="color: #ff0000;">"AN"</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> cActivo<br /> </div>[/code:3uhfy6u7] De esta forma funciona correctamente!!!! Porqué ???? Si lo único que hago es mostrar la variable (y la muestra correctamente) ??? Ademas cConstan se vé solamente en la función grabcons Luis
Comportamiento extraño
Ahora probé de esta forma Cuando modifico cargo los datos de la base de datos [u:15zln4n6]Antes [/u:15zln4n6] [code=fw:15zln4n6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #00C800;">LOCAL</span> cConiva := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> cCongan := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> cConmono := <span style="color: #ff0000;">""</span><br /><span style="color: #B900B9;">////////////////////////////////////////////////////</span><br /><br />    <span style="color: #00C800;">if</span> !lnuevo<br />      cConiva := vercond<span style="color: #000000;">&#40;</span> oData:<span style="color: #000000;">constiva</span> <span style="color: #000000;">&#41;</span><br />      cCongan := vercond<span style="color: #000000;">&#40;</span> oData:<span style="color: #000000;">constgan</span> <span style="color: #000000;">&#41;</span><br />      cConmono := vercond<span style="color: #000000;">&#40;</span> oData:<span style="color: #000000;">constmono</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:15zln4n6] Ahora [code=fw:15zln4n6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #00C800;">LOCAL</span> cConiva := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> cCongan := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> cConmono := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> cVariva := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> cVarGan := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> cVarmono := <span style="color: #ff0000;">""</span><br /><span style="color: #B900B9;">//////////</span><br />    <span style="color: #00C800;">if</span> !lnuevo<br />      cVariva := cConiva := vercond<span style="color: #000000;">&#40;</span> oData:<span style="color: #000000;">constiva</span> <span style="color: #000000;">&#41;</span><br />      cVarGan := cCongan := vercond<span style="color: #000000;">&#40;</span> oData:<span style="color: #000000;">constgan</span> <span style="color: #000000;">&#41;</span><br />      cVarmono := cConmono := vercond<span style="color: #000000;">&#40;</span> oData:<span style="color: #000000;">constmono</span> <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:15zln4n6] la Función VERCOND [code=fw:15zln4n6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">///////////</span><br /><span style="color: #00C800;">FUNCTION</span> vercond<span style="color: #000000;">&#40;</span> cVar <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> cCondicion<br /><br />   <span style="color: #00C800;">IF</span> cVar = <span style="color: #ff0000;">"AC"</span> .OR. cVar = <span style="color: #ff0000;">"S"</span><br />      cCondicion := <span style="color: #ff0000;">"Activo"</span><br />   ELSEIF cVar = <span style="color: #ff0000;">"NI"</span> .OR. cVar = <span style="color: #ff0000;">"N"</span> .OR. Empty<span style="color: #000000;">&#40;</span> cVar <span style="color: #000000;">&#41;</span><br />      cCondicion := <span style="color: #ff0000;">"No Inscripto"</span><br />   ELSEIF cVar = <span style="color: #ff0000;">"EX"</span><br />      cCondicion := <span style="color: #ff0000;">"Exento"</span><br />   ELSEIF cVar = <span style="color: #ff0000;">"NA"</span><br />      cCondicion = <span style="color: #ff0000;">"No alcanzado"</span><br />   ELSEIF cVar = <span style="color: #ff0000;">"XN"</span><br />      cCondicion = <span style="color: #ff0000;">"Exento no alcanzado"</span><br />   ELSEIF cVar = <span style="color: #ff0000;">"AN"</span><br />      cCondicion = <span style="color: #ff0000;">"Activo no alcanzado"</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> cCondicion<br /> </div>[/code:15zln4n6] [u:15zln4n6]Antes[/u:15zln4n6] [code=fw:15zln4n6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCos<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cConiva <span style="color: #0000ff;">id</span> <span style="color: #000000;">114</span> <span style="color: #0000ff;">ITEMS</span> aConstancia <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span>  <br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCos<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cCongan <span style="color: #0000ff;">id</span> <span style="color: #000000;">115</span> <span style="color: #0000ff;">ITEMS</span> aConstancia <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span> <br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCos<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cConmono <span style="color: #0000ff;">id</span> <span style="color: #000000;">119</span> <span style="color: #0000ff;">ITEMS</span> aConstancia <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span> <br /> </div>[/code:15zln4n6] [u:15zln4n6]Ahora[/u:15zln4n6] [code=fw:15zln4n6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCos<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cConiva <span style="color: #0000ff;">id</span> <span style="color: #000000;">114</span> <span style="color: #0000ff;">ITEMS</span> aConstancia <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">change</span><span style="color: #000000;">&#40;</span> cVariva :=  cConiva<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCos<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cCongan <span style="color: #0000ff;">id</span> <span style="color: #000000;">115</span> <span style="color: #0000ff;">ITEMS</span> aConstancia <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">change</span><span style="color: #000000;">&#40;</span>cVarGan := cCongan <span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCos<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cConmono <span style="color: #0000ff;">id</span> <span style="color: #000000;">119</span> <span style="color: #0000ff;">ITEMS</span> aConstancia <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">change</span><span style="color: #000000;">&#40;</span>cVarmono :=  cConmono <span style="color: #000000;">&#41;</span><br /> </div>[/code:15zln4n6] [u:15zln4n6]Antes[/u:15zln4n6] NO FUNCIONABA [u:15zln4n6]Ahora[/u:15zln4n6] FUNCIONA Alguna idea del porque??? Luis
Comportamiento extraño
Luis, Es dificil de saber la razón salvo que pudieses proporcionar un ejemplo autocontenido para probrarlo
Comportamiento extraño
Antonio en el ejemplo que te quiero enviar funciona perfectamente, indudablemente es algo del programa que interfiere, pero todavía no he podido encontrarlo, en dónde falla es un prg de alta baja de clientes y en el de proveedores que son muy similares. Luis
Comportamiento extraño PRINT oPrn FILE ""factura.pdf""
Buenos días para todos, Tengo el siguiente código, el cual genera un pdf directo al disco sin hacer la previsualización, asi: [code=fw:3jep6z2p]<div class="fw" id="{CB}" style="font-family: monospace;"><br />***********************************************************************<br /><span style="color: #00C800;">function</span> ImpFactura<span style="color: #000000;">&#40;</span>tipo<span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">local</span> oPrn, oFont<br />    <span style="color: #00C800;">local</span> cName    := PadR<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Cliente de Prueba"</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">local</span> cCity    := PadR<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"1234567890"</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">local</span> cCountry := PadR<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Calle 55 No. 777-988"</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">local</span> cItem    := <span style="color: #ff0000;">"31198765431"</span><br />   <br />    <span style="color: #00C800;">PRINT</span> oPrn FILE <span style="color: #ff0000;">"factura.pdf"</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> <span style="color: #0000ff;">OF</span> oPrn<br /><br />    <span style="color: #0000ff;">PAGE</span><br /><br />    oPrn:<span style="color: #000000;">PrintImage</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">700</span> , <span style="color: #ff0000;">"Logo.bmp"</span>, <span style="color: #000000;">715</span> , <span style="color: #000000;">1000</span> <span style="color: #000000;">&#41;</span><br /><br /><br />    @ <span style="color: #000000;">3.00</span>, <span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> cName    INCHES <span style="color: #0000ff;">FONT</span> oFont<br />    @ <span style="color: #000000;">3.30</span>, <span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> cCity    INCHES <span style="color: #0000ff;">FONT</span> oFont<br />    @ <span style="color: #000000;">3.60</span>, <span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> cCountry INCHES <span style="color: #0000ff;">FONT</span> oFont<br />    @ <span style="color: #000000;">3.90</span>, <span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> cItem    INCHES <span style="color: #0000ff;">FONT</span> oFont<br /><br /><br />    @ <span style="color: #000000;">3.00</span>,<span style="color: #000000;">5.00</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> dato ;<br />    AS BARCODE TYPE <span style="color: #ff0000;">"QR-CODE"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">1.9</span>,<span style="color: #000000;">1.9</span> INCHES<br /><br /><br />    <span style="color: #0000ff;">ENDPAGE</span><br /><br />    <span style="color: #0000ff;">ENDPRINT</span><br /><br /><br />    <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3jep6z2p] El problema es que algunas veces me genera el archivo completo que pesa 140KB, y otras veces lo genera incompleto con un peso de 2KB. Incompleto [code=fw:3jep6z2p]<div class="fw" id="{CB}" style="font-family: monospace;"><br />%PDF<span style="color: #000000;">-1.3</span><br /><span style="color: #000000;">2</span> <span style="color: #000000;">0</span> obj<br /><<<br />/Type /<span style="color: #0000ff;">Page</span> /Parent <span style="color: #000000;">1</span> <span style="color: #000000;">0</span> R<br />/Resources <span style="color: #000000;">3</span> <span style="color: #000000;">0</span> R<br />/MediaBox <span style="color: #000000;">&#91;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">595.00</span> <span style="color: #000000;">842.00</span> <span style="color: #000000;">&#93;</span><br />/Contents <span style="color: #000000;">4</span> <span style="color: #000000;">0</span> R<br />>><br />endobj<br /><span style="color: #000000;">3</span> <span style="color: #000000;">0</span> obj<br /><<<br />/ColorSpace << /DeviceRGB /DeviceGray >><br />/ProcSet <span style="color: #000000;">&#91;</span> /PDF /<span style="color: #0000ff;">Text</span> /ImageB /ImageC <span style="color: #000000;">&#93;</span><br />/XObject<br /><<<br />/Image1 <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> R<br />>><br />>><br />endobj<br /><span style="color: #000000;">4</span> <span style="color: #000000;">0</span> obj << /Length <span style="color: #000000;">5</span> <span style="color: #000000;">0</span> R <br /><br />>><br />stream<br /><br />q<br /><span style="color: #000000;">595.0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">842.0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> cm<br />/Image1 <span style="color: #00C800;">Do</span><br />Q <br />endstream<br />endobj<br /><span style="color: #000000;">5</span> <span style="color: #000000;">0</span> obj<br /><span style="color: #000000;">43</span><br />endobj<br /><span style="color: #000000;">6</span> <span style="color: #000000;">0</span> obj<br /><<<br />/Type /<span style="color: #0000ff;">Page</span> /Parent <span style="color: #000000;">1</span> <span style="color: #000000;">0</span> R<br />/Resources <span style="color: #000000;">7</span> <span style="color: #000000;">0</span> R<br />/MediaBox <span style="color: #000000;">&#91;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">595.00</span> <span style="color: #000000;">842.00</span> <span style="color: #000000;">&#93;</span><br />/Contents <span style="color: #000000;">8</span> <span style="color: #000000;">0</span> R<br />>><br />endobj<br /><span style="color: #000000;">7</span> <span style="color: #000000;">0</span> obj<br /><<<br />/ColorSpace << /DeviceRGB /DeviceGray >><br />/ProcSet <span style="color: #000000;">&#91;</span> /PDF /<span style="color: #0000ff;">Text</span> /ImageB /ImageC <span style="color: #000000;">&#93;</span><br />/XObject<br /><<<br />/Image1 <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> R<br />>><br />>><br />endobj<br /><span style="color: #000000;">8</span> <span style="color: #000000;">0</span> obj << /Length <span style="color: #000000;">9</span> <span style="color: #000000;">0</span> R <br /><br />>><br />stream<br /><br />q<br /><span style="color: #000000;">595.0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">842.0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> cm<br />/Image1 <span style="color: #00C800;">Do</span><br />Q <br />endstream<br />endobj<br /><span style="color: #000000;">9</span> <span style="color: #000000;">0</span> obj<br /><span style="color: #000000;">43</span><br />endobj<br /><span style="color: #000000;">1</span> <span style="color: #000000;">0</span> obj<br /><<<br />/Type /Pages /<span style="color: #0000ff;">Count</span> <span style="color: #000000;">1</span><br />/Kids <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#93;</span><br />>><br />endobj<br /><span style="color: #000000;">10</span> <span style="color: #000000;">0</span> obj<br /><< /<span style="color: #0000ff;">Title</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />/Producer <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />/Author <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />/Creator <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />/<span style="color: #0000ff;">Subject</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />/Keywords <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />/CreationDate <span style="color: #000000;">&#40;</span>D:<span style="color: #000000;">20190516114059</span><span style="color: #000000;">&#41;</span><br />>><br />endobj<br /><span style="color: #000000;">11</span> <span style="color: #000000;">0</span> obj<br /><< /Type /Catalog /Pages <span style="color: #000000;">1</span> <span style="color: #000000;">0</span> R /Outlines <span style="color: #000000;">12</span> <span style="color: #000000;">0</span> R >><br />endobj<br /><span style="color: #000000;">12</span> <span style="color: #000000;">0</span> obj<br /><< /Type /Outlines /<span style="color: #0000ff;">Count</span> <span style="color: #000000;">0</span> >><br />endobj<br /><br />xref<br /><span style="color: #000000;">0</span> <span style="color: #000000;">13</span><br /><span style="color: #000000;">0000000000</span> <span style="color: #000000;">65535</span> f<br /><span style="color: #000000;">0000000784</span> <span style="color: #000000;">00000</span> n<br /><span style="color: #000000;">0000000010</span> <span style="color: #000000;">00000</span> n<br /><span style="color: #000000;">0000000130</span> <span style="color: #000000;">00000</span> n<br /><span style="color: #000000;">0000000271</span> <span style="color: #000000;">00000</span> n<br /><span style="color: #000000;">0000000376</span> <span style="color: #000000;">00000</span> n<br /><span style="color: #000000;">0000000397</span> <span style="color: #000000;">00000</span> n<br /><span style="color: #000000;">0000000517</span> <span style="color: #000000;">00000</span> n<br /><span style="color: #000000;">0000000658</span> <span style="color: #000000;">00000</span> n<br /><span style="color: #000000;">0000000763</span> <span style="color: #000000;">00000</span> n<br /><span style="color: #000000;">0000000843</span> <span style="color: #000000;">00000</span> n<br /><span style="color: #000000;">0000000979</span> <span style="color: #000000;">00000</span> n<br /><span style="color: #000000;">0000001049</span> <span style="color: #000000;">00000</span> n<br />trailer << /<span style="color: #0000ff;">Size</span> <span style="color: #000000;">13</span> /Root <span style="color: #000000;">11</span> <span style="color: #000000;">0</span> R /Info <span style="color: #000000;">10</span> <span style="color: #000000;">0</span> R >><br />startxref<br /><span style="color: #000000;">1101</span><br />%%EOF<br /><br /> </div>[/code:3jep6z2p] Alguien a tenido un problema similar? Hay algo mal en el código? De antemano gracias
Comportamiento extraño PRINT oPrn FILE ""factura.pdf""
Mira se te gusta: [code=fw:2wnuyicn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> PAD_LEFT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> PAD_RIGHT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> PAD_CENTER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">2</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oPrn, oFont, oPen<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nLinI, nColI, nLinF, nColF<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// verifica o formato do papela na impressora</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// FOLHA_PAPEL_FOLIO()</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">PRINT</span> oPrn <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Imprimir"</span> PREVIEW <span style="color: #0000ff;">MODAL</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-10</span> BOLD <span style="color: #0000ff;">OF</span> oPrn<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> PEN oPen WIDTH &nbsp;<span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oPrn<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// oPrn:SetPage(9) &nbsp;// A4</span><br />&nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">SetPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<span style="color: #B900B9;">// FOLIO?</span><br />&nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">SetPortrait</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">//Vertical</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PAGE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinI := &nbsp;<span style="color: #000000;">0.90</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColI := &nbsp;<span style="color: #000000;">0.90</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinF := <span style="color: #000000;">28.6</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColF := <span style="color: #000000;">20.0</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">Cmtr2Pix</span><span style="color: #000000;">&#40;</span>@nLinI, @nColI<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">cmtr2Pix</span><span style="color: #000000;">&#40;</span>@nLinF, @nColF<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">Box</span><span style="color: #000000;">&#40;</span>nLinI, nColI, nLinF, nColF, oPen &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">cmSay</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1.0</span>, &nbsp;<span style="color: #000000;">1.0</span>, <span style="color: #ff0000;">"Superior Izquierda"</span>, oFont,,CLR_BLACK,,PAD_LEFT &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">cmSay</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1.0</span>, <span style="color: #000000;">10.5</span>, <span style="color: #ff0000;">"Superior Centro"</span>, &nbsp; &nbsp;oFont,,CLR_BLACK,,PAD_CENTER <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">cmSay</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1.0</span>, <span style="color: #000000;">20.0</span>, <span style="color: #ff0000;">"Superior Derecha"</span>, &nbsp; oFont,,CLR_BLACK,,PAD_RIGHT <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">cmSay</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">28.0</span>, &nbsp;<span style="color: #000000;">1.0</span>, <span style="color: #ff0000;">"Inferior Izquierda"</span>, oFont,,CLR_BLACK,,PAD_LEFT &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">cmSay</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">28.0</span>, <span style="color: #000000;">10.5</span>, <span style="color: #ff0000;">"Inferior Centro"</span>, &nbsp; &nbsp;oFont,,CLR_BLACK,,PAD_CENTER <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">cmSay</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">28.0</span>, <span style="color: #000000;">20.0</span>, <span style="color: #ff0000;">"Inferior Derecha"</span>, &nbsp; oFont,,CLR_BLACK,,PAD_RIGHT <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDPAGE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// sin preview</span><br />&nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">lMeta</span> = .F.<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDPRINT</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// save pdf</span><br />&nbsp; &nbsp;FWSavePreviewToPDF<span style="color: #000000;">&#40;</span> oPrn <span style="color: #000000;">&#41;</span><br />&nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">FUNCTION</span> FOLHA_PAPEL_FOLIO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oPrinter, aPaper<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Para Checar o Tipo de Papel Que Esta Na Impressora - Correto</span><br />&nbsp; &nbsp;oPrinter = TPrinter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Meu Documento'</span> , .F., .F., <span style="color: #00C800;">NIL</span>, .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;aPaper = PrnGetPaper<span style="color: #000000;">&#40;</span> oPrinter <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> .NOT. aPaper<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">"Folio"</span> <span style="color: #B900B9;">// 'A4'</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Trocar nas propriedades da impressora.</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Troque o Formato do Papel Para Folio"</span>, <span style="color: #ff0000;">"Impressora"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//----------------------------------------------------</span><br /><span style="color: #00C800;">FUNCTION</span> PrnGetPaper<span style="color: #000000;">&#40;</span> oPrn <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aPoint := PrnGetSize<span style="color: #000000;">&#40;</span> oPrn:<span style="color: #000000;">hDc</span> <span style="color: #000000;">&#41;</span>, aRecmm := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, nW := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nH := <span style="color: #000000;">0</span>, wx := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aPapers:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_LETTER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , &nbsp;<span style="color: #000000;">1</span> , <span style="color: #ff0000;">"Letter &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">216</span>,<span style="color: #000000;">279</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_LETTERSMALL &nbsp; &nbsp; &nbsp; "</span> , &nbsp;<span style="color: #000000;">2</span> , <span style="color: #ff0000;">"Letter Small &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">216</span>,<span style="color: #000000;">279</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_TABLOID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span> , &nbsp;<span style="color: #000000;">3</span> , <span style="color: #ff0000;">"Tabloid &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">280</span>,<span style="color: #000000;">432</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_LEDGER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , &nbsp;<span style="color: #000000;">4</span> , <span style="color: #ff0000;">"Ledger &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">432</span>,<span style="color: #000000;">280</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_LEGAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span> , &nbsp;<span style="color: #000000;">5</span> , <span style="color: #ff0000;">"Legal &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">216</span>,<span style="color: #000000;">356</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_STATEMENT &nbsp; &nbsp; &nbsp; &nbsp; "</span> , &nbsp;<span style="color: #000000;">6</span> , <span style="color: #ff0000;">"Statement &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">140</span>,<span style="color: #000000;">216</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_EXECUTIVE &nbsp; &nbsp; &nbsp; &nbsp; "</span> , &nbsp;<span style="color: #000000;">7</span> , <span style="color: #ff0000;">"Executive &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">184</span>,<span style="color: #000000;">257</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_A3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , &nbsp;<span style="color: #000000;">8</span> , <span style="color: #ff0000;">"A3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">297</span>,<span style="color: #000000;">420</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_A4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , &nbsp;<span style="color: #000000;">9</span> , <span style="color: #ff0000;">"A4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">210</span>,<span style="color: #000000;">297</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_A4SMALL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">10</span> , <span style="color: #ff0000;">"A4 Small &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">210</span>,<span style="color: #000000;">297</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_A5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">11</span> , <span style="color: #ff0000;">"A5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">148</span>,<span style="color: #000000;">210</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_B4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">12</span> , <span style="color: #ff0000;">"B4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">250</span>,<span style="color: #000000;">354</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_B5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">13</span> , <span style="color: #ff0000;">"B5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">182</span>,<span style="color: #000000;">257</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_FOLIO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">14</span> , <span style="color: #ff0000;">"Folio &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">216</span>,<span style="color: #000000;">330</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_QUARTO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">15</span> , <span style="color: #ff0000;">"Quarto &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">215</span>,<span style="color: #000000;">275</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_10X14 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">16</span> , <span style="color: #ff0000;">"10x14 in &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">254</span>,<span style="color: #000000;">356</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_11X17 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">17</span> , <span style="color: #ff0000;">"11x17 in &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">280</span>,<span style="color: #000000;">432</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_NOTE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">18</span> , <span style="color: #ff0000;">"Note &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">216</span>,<span style="color: #000000;">279</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_9 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">19</span> , <span style="color: #ff0000;">"Envelope #9 &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">098</span>,<span style="color: #000000;">225</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_10 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">20</span> , <span style="color: #ff0000;">"Envelope #10 &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">105</span>,<span style="color: #000000;">241</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_11 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">21</span> , <span style="color: #ff0000;">"Envelope #11 &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">114</span>,<span style="color: #000000;">264</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_12 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">22</span> , <span style="color: #ff0000;">"Envelope #12 &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">109</span>,<span style="color: #000000;">279</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_14 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">23</span> , <span style="color: #ff0000;">"Envelope #14 &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">127</span>,<span style="color: #000000;">292</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_DL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">27</span> , <span style="color: #ff0000;">"Envelope DL &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">110</span>,<span style="color: #000000;">220</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_C5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">28</span> , <span style="color: #ff0000;">"Envelope C5 &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">162</span>,<span style="color: #000000;">229</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_C3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">29</span> , <span style="color: #ff0000;">"Envelope C3 &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">324</span>,<span style="color: #000000;">458</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_C4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">30</span> , <span style="color: #ff0000;">"Envelope C4 &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">229</span>,<span style="color: #000000;">324</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_C6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">31</span> , <span style="color: #ff0000;">"Envelope C6 &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">114</span>,<span style="color: #000000;">162</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_C65 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">32</span> , <span style="color: #ff0000;">"Envelope C65 &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">114</span>,<span style="color: #000000;">229</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_B4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">33</span> , <span style="color: #ff0000;">"Envelope B4 &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">250</span>,<span style="color: #000000;">353</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_B5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">34</span> , <span style="color: #ff0000;">"Envelope B5 &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">176</span>,<span style="color: #000000;">250</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_B6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">35</span> , <span style="color: #ff0000;">"Envelope B6 &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">176</span>,<span style="color: #000000;">125</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_ITALY &nbsp; &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">36</span> , <span style="color: #ff0000;">"Envelope &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">110</span>,<span style="color: #000000;">230</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_MONARCH &nbsp; &nbsp; &nbsp; "</span> , <span style="color: #000000;">37</span> , <span style="color: #ff0000;">"Envelope Monarch &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">098</span>,<span style="color: #000000;">191</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_ENV_PERSONAL &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">38</span> , <span style="color: #ff0000;">"6 3/4 Envelope &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">092</span>,<span style="color: #000000;">165</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_FANFOLD_US &nbsp; &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">39</span> , <span style="color: #ff0000;">"US Std Fanfold &nbsp; &nbsp; &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">378</span>,<span style="color: #000000;">279</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_FANFOLD_STD_GERMAN"</span> , <span style="color: #000000;">40</span> , <span style="color: #ff0000;">"German Std Fanfold &nbsp;"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">216</span>,<span style="color: #000000;">305</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DMPAPER_FANFOLD_LGL_GERMAN"</span> , <span style="color: #000000;">41</span> , <span style="color: #ff0000;">"German Legal Fanfold"</span> , <span style="color: #000000;">&#123;</span><span style="color: #000000;">216</span>,<span style="color: #000000;">330</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;aRecmm = oPrn:<span style="color: #000000;">Pix2Mmtr</span><span style="color: #000000;">&#40;</span>aPoint<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aPoint<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;nW = <span style="color: #0000ff;">ROUND</span><span style="color: #000000;">&#40;</span>aRecmm<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nH = <span style="color: #0000ff;">ROUND</span><span style="color: #000000;">&#40;</span>aRecmm<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> wx=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aPapers<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> aPapers<span style="color: #000000;">&#91;</span>wx,<span style="color: #000000;">4</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = nW .AND. aPapers<span style="color: #000000;">&#91;</span>wx,<span style="color: #000000;">4</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = nH<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #000000;">&#123;</span>aPapers<span style="color: #000000;">&#91;</span>wx,<span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,aPapers<span style="color: #000000;">&#91;</span>wx,<span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>,aPapers<span style="color: #000000;">&#91;</span>wx,<span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">""</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:2wnuyicn] 
Comportamiento extraño PRINT oPrn FILE ""factura.pdf""
[code=fw:quysd0qr]<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;">"Directry.ch"</span><br /><br /><span style="color: #00C800;">static</span> oWnd<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBar, Tipo<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Factura"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar _3D <span style="color: #0000ff;">OF</span> oWnd<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> ImpFactura<span style="color: #000000;">&#40;</span> tipo <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Factura"</span> NOINSET CLOCK DATE KEYBOARD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> ImpFactura<span style="color: #000000;">&#40;</span> tipo <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oPrn, oFont, nRow, nCol<br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cName &nbsp; &nbsp;:= PadR<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Cliente de Prueba"</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cCity &nbsp; &nbsp;:= PadR<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"1234567890"</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cCountry := PadR<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Calle 55 No. 777-988"</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cItem &nbsp; &nbsp;:= <span style="color: #ff0000;">"31198765431"</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"factura.pdf"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; FERASE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"factura.pdf"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"factura.pdf"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;? <span style="color: #ff0000;">"Que pasa con el PDF? No borra"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; <span style="color: #00C800;">PRINT</span> oPrn FILE <span style="color: #ff0000;">"factura.pdf"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span> <span style="color: #0000ff;">OF</span> oPrn<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">SetPage</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">//-> A4</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">SetPortrait</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">//-> Vertical(Retrato)</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PAGE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// oPrn:PrintImage( 100, 700 , "Logo.bmp", 715 , 1000 )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nRow &nbsp; &nbsp; &nbsp; &nbsp;:= &nbsp; <span style="color: #000000;">1.50</span> &nbsp;<span style="color: #B900B9;">// Linha</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nCol &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">650.00</span> &nbsp;<span style="color: #B900B9;">// Coluna do Logo.jpg</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// JPG es mejor.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ nRow, nCol <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">IMAGE</span> <span style="color: #ff0000;">"LOGO.JPG"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">650</span>, <span style="color: #000000;">650</span> LASTROW nRow<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">3.00</span>, <span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> cName &nbsp; &nbsp;INCHES <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">3.30</span>, <span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> cCity &nbsp; &nbsp;INCHES <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">3.60</span>, <span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> cCountry INCHES <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">3.90</span>, <span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> cItem &nbsp; &nbsp;INCHES <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// esto no funciona en mi version.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">3.00</span>,<span style="color: #000000;">5.00</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> dato ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AS BARCODE TYPE <span style="color: #ff0000;">"QR-CODE"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">1.9</span>,<span style="color: #000000;">1.9</span> INCHES<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ENDPAGE</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ENDPRINT</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// oFont:End()</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"factura.pdf"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;? <span style="color: #ff0000;">"PDF Creado. Very Good"</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:quysd0qr] 
Comportamiento extraño PRINT oPrn FILE ""factura.pdf""
karinha, muchas gracias pror el dato <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> , funciono a la perfección. Asi quedo el reporte final [code=fw:dyxcs0hl]<div class="fw" id="{CB}" style="font-family: monospace;"><br />***********************************************************************<br /><span style="color: #00C800;">function</span> ImpFactura<span style="color: #000000;">&#40;</span>tipo<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oPrn, oFont<br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cName &nbsp; &nbsp;:= PadR<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Cliente de Prueba"</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cCity &nbsp; &nbsp;:= PadR<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"1234567890"</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cCountry := PadR<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Calle 55 No. 777-988"</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cItem &nbsp; &nbsp;:= <span style="color: #ff0000;">"31198765431"</span> &nbsp; <br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> dato &nbsp;:= <span style="color: #ff0000;">"NumFac:5465465"</span><br /><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #00C800;">PRINT</span> oPrn PREVIEW<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span> <span style="color: #0000ff;">OF</span> oPrn<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PAGE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">PrintImage</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span> , <span style="color: #000000;">700</span> , <span style="color: #ff0000;">"Logo.bmp"</span>, <span style="color: #000000;">715</span> , <span style="color: #000000;">1000</span> <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">3.00</span>, <span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> cName &nbsp; &nbsp;INCHES <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">3.30</span>, <span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> cCity &nbsp; &nbsp;INCHES <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">3.60</span>, <span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> cCountry INCHES <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">3.90</span>, <span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> cItem &nbsp; &nbsp;INCHES <span style="color: #0000ff;">FONT</span> oFont<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">3.00</span>,<span style="color: #000000;">5.00</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> dato ;<br />&nbsp; &nbsp; &nbsp; &nbsp; AS BARCODE TYPE <span style="color: #ff0000;">"QR-CODE"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">1.9</span>,<span style="color: #000000;">1.9</span> INCHES<br /><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ENDPAGE</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #B900B9;">// sin preview</span><br />&nbsp; &nbsp; oPrn:<span style="color: #000000;">lMeta</span> = tipo&nbsp; &nbsp;<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ENDPRINT</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> !tipo<br />&nbsp; &nbsp; &nbsp; &nbsp; FWSavePreviewToPDF<span style="color: #000000;">&#40;</span> oPrn, <span style="color: #ff0000;">"pruebafactura.pdf"</span> ,.f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:dyxcs0hl]
Comportamiento extraño con tSmtp.
Antonio Utilizando el ejemplo testsmtp, FWH27 y la configuración de mi servidor de correo, ciertas direcciones de correo no reciben los mensajes que envio, por ejemplo una cuenta en gmail. Lo curioso es que el envio se realiza, o por lo menos ::bDone así lo recibe. ¿Alguna idea? Saludos Toni Sales
Comportamiento extraño con tSmtp.
Toni, Envias algún documento adjunto ?
Comportamiento extraño con tSmtp.
[quote="Antonio Linares":3kauy25z]Toni, Envias algún documento adjunto ?[/quote:3kauy25z] He probado de las dos formas. Te adjunto el código: function SendMail() local oOutMail, cIP oWnd:SetMsg( "Sending Internet email..." ) WSAStartup() oOutMail := TSmtp():New( "smtp.midominio.com" ) oOutMail:bConnecting = {||oWnd:SetMsg( "Connecting ..." ) } oOutMail:bConnected = {||oWnd:SetMsg( "Connected" ) } oOutMail:bDone = { || msginfo("Mensaje enviado correctamente") } oOutMail:SendMail( "a.sales@iaicom.com",; // From { "toni.sales@gmail.com" },; // To "Dime si recibes este correo",; // Msg Text "Prueba de envio correo Smtp" ) // Subject return nil Saludos Toni SAles
Comportamiento extraño con tSmtp.
en mi prueba, de testsmtp.prg, enviando a mi propia cuenta, lo hace pero, de los adjuntos solo llega basura It is working!!! application/x-zip-compressed; name="testsmtp.prg" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="TESTSMTP.PRG" Ly8gVGVzdGluZyBGaXZlV2luIG5ldyBJbnRlcm5ldCBPdXRnb2luZyBtYWlsIChTTVRQIHByb3Rv Y29sKSBDbGFzcw0KDQojaW5jbHVkZSAiRml2ZVdpbi5jaCINCg0Kc3RhdGljIG9XbmQNCg0KLy8t ... application/x-zip-compressed; name="testsmtp.zip" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="TESTSMTP.ZIP" UEsDBBQAAgAIAOKT0i53UfJ1LwIAAMIFAAAMAAAAdGVzdHNtdHAucHJnvZRNj9owEIbvK+1/GNIL SJQceqNCKh9hG3WTIOIW9VR5zQTcBhvFTind3f/ecQIUKMuprW/2zDzvfNj2fWBorFQLGMvvOJMK ... Enviando a otras cuentas gmail y yahoo, por ej., no llegan Alguna solución? gracias
Comportamiento extraño por el uso de wbrwline.c
Antonio En algunas ocasiones he reportado el comportamiento extraño en el repintado de ventanas con color de fondo, cuando otra ventana es movida por encima. Creo haber localizado el problema pero se escapa a mis conocimientos el poderlo solucionar. Proviene del uso de la clase TWbrose de Hernan y concrétamente la línea: #define _PutSym( _SymEval ) hb_vmPushSymbol( &hb_symEval ) en el fichero "WBRWLINE.C". Y como muestra un boton: [url:388l2eam]http&#58;//hyperupload&#46;com/download/a680c984/Dibujo1&#46;JPG&#46;html[/url:388l2eam] En la imagen se aprecian los residuos. El codigo fuente utilizado es el siguiente, enlazando al mismo tiempo el fichero en "c" al buildx.bat : echo wbrwline.obj + >> b32.bc ----------------------------------------------------------------- #include "FiveWin.ch" static oWnd function Main() local oWndEdit, oBar, oIcon, oImage local cName := "FiveWin power" DEFINE ICON oIcon RESOURCE "test" DEFINE WINDOW oWnd FROM 1, 1 TO 20, 70 TITLE "I am the MDI Frame" ; COLOR "W+/R" ; ICON oIcon ACTIVATE WINDOW oWnd MAXIMIZED ; VALID MsgYesNo( "Want to End ?" ) return nil --------------------------------------------------------------------------- Saludos
Comportamiento extraño por el uso de wbrwline.c
Toni, En el ejemplo que proporcionas no estás usando el browse. El problema proviene por una lentitud al procesar todos los mensajes de pintado que envia Windows, debido al uso del pintado a doble buffer. Si en la Clase TWindow declaras los métodos DispBegin() y DispEnd() como VIRTUAL, entonces desaparecerá el problema, pero no tendrás pintado a doble buffer que elimina muchos parpadeos, pero tiene ese desagradable efecto, debido al tiempo que consume la maquina virtual de la aplicación.
Comportamiento extraño por el uso de wbrwline.c
[quote="Antonio Linares":m1c2ojw6]Toni, En el ejemplo que proporcionas no estás usando el browse. El problema proviene por una lentitud al procesar todos los mensajes de pintado que envia Windows, debido al uso del pintado a doble buffer. Si en la Clase TWindow declaras los métodos DispBegin() y DispEnd() como VIRTUAL, entonces desaparecerá el problema, pero no tendrás pintado a doble buffer que elimina muchos parpadeos, pero tiene ese desagradable efecto, debido al tiempo que consume la maquina virtual de la aplicación.[/quote:m1c2ojw6] Antonio El tema es que si comenta la linea que te indico y sin usar el browse el repintado se realiza correctamente. Yo le he probado en 2 equipos diferentes con tarjetas de video + o - rápidas y en ambos casos el comportamiento es identico. Con el problema del doble buffer se entendería un comporamiento lógico si tardando más, al final, lo repintara correctamente. Lo curioso es que cuando la ventana recibe el foco, esta se queda con los residuos hasta que se fuerza de alguna forma un repintado. Saludos
Comportamiento extraño por el uso de wbrwline.c
Toni, Es como si se perdiesen mensajes de pintado, ya que si luego redimensionas la ventana ó la maximizas, se pinta correctamente. Es un problema que comenzó con el pintado a doble buffer y que todavía no sabemos exactamente por qué ocurre.
Comportamiento nStretchCol
Compañeros, Estoy usando dos browse ( adjunto imagen ), ambos tiene la propiedad :nStretchCol := STRETCHCOL_WIDEST, sin embargo en una de las tablas funciona y la otra me estira la última columna. Esto también ocurría FWH 12.04 siempre con Harbour, tengo otro proyecto que uso xHarbour y funciona bien en ambos browse. Actualmente uso FWH 14.09. Alguna idea ??. Muchísimas gracias . <!-- m --><a class="postlink" href="http://imageshack.com/a/img538/7880/e12LjV.jpg">http://imageshack.com/a/img538/7880/e12LjV.jpg</a><!-- m --> Saludos
Comportamiento raro en xbrowse
Estoy pasando una aplicación que se encuentra compilada en xHarbour a Harbour. Uso MySql como motor. Normalmente uso Array para levantar los datos y mostrarlos en xBrowse. He adjuntado el fuente de la clase al proyecto pero me ocurre un error raro. Cuando utilizo el método ToExcel, el control trata de leer el recordset y por supuesto me genera un error, ya que el recordset lo cierro una vez obtenidos los datos. Pero lo más extraño es que si lo desmonto del proyecto funciona perfectamente. Esto no pasaba con xHarbour. Estoy bastante decepcionado con este pasaje a pesar de que harbour parece más robusto. Alguien sabe ??? Gracias ... Saludos
Comportamiento raro en xbrowse
Aquí la descripción del error [code=fw:391srfpg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Application<br />===========<br />&nbsp; &nbsp;Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\sipep_sql\SIPEP.EXE <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Size</span>: <span style="color: #000000;">2</span>,<span style="color: #000000;">752</span>,<span style="color: #000000;">512</span> bytes<br />&nbsp; &nbsp;Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.1</span>.0dev <span style="color: #000000;">&#40;</span>Rev. <span style="color: #000000;">17222</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FiveWin &nbsp;Version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">12.03</span><br />&nbsp; &nbsp;Windows version: <span style="color: #000000;">5.1</span>, Build <span style="color: #000000;">2600</span> Service Pack <span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp;Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">4</span> secs <br />&nbsp; &nbsp;Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">06</span>/<span style="color: #000000;">11</span>/<span style="color: #000000;">2012</span>, <span style="color: #000000;">16</span>:<span style="color: #000000;">07</span>:<span style="color: #000000;">35</span><br />&nbsp; &nbsp;Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1004</span> &nbsp;<span style="color: #0000ff;">Message</span> not found: <span style="color: #00C800;">NIL</span>:<span style="color: #000000;">FIELDS</span><br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = U &nbsp; <br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> __ERRRT_SBASE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => <span style="color: #00C800;">NIL</span>:<span style="color: #000000;">ERROR</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>HBOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => <span style="color: #00C800;">NIL</span>:<span style="color: #000000;">MSGNOTFOUND</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => <span style="color: #00C800;">NIL</span>:<span style="color: #000000;">FIELDS</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">C</span>:\sipep_sql\<span style="color: #0000ff;">xbrowse</span>.prg => TXBROWSE:<span style="color: #000000;">TOEXCEL</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">6880</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EVAL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">126</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\MSGRUN.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MSGRUN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">36</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">87</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">873</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">270</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\MSGRUN.PRG => MSGRUN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">42</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">C</span>:\sipep_sql\PADRON.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>INICIA<span style="color: #000000;">&#40;</span> <span style="color: #000000;">126</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\TRBTN.PRG => TRBTN:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">676</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\TRBTN.PRG => TRBTN:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">854</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\TRBTN.PRG => TRBTN:<span style="color: #000000;">LBUTTONDOWN</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">758</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1687</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\TRBTN.PRG => TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1520</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3153</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> WINRUN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">980</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">C</span>:\sipep_sql\Sipep.prg => EMPIEZA<span style="color: #000000;">&#40;</span> <span style="color: #000000;">199</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">C</span>:\sipep_sql\Sipep.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:391srfpg] Gracias
Comportamiento raro en xbrowse
There should not be any difference between xHarbour and Harbour. Your code must be closing the recordset object before closing the browse window.
Comportamiento raro en xbrowse
Rao, thanks for the reply but I do not think I understood I'm going on an application that is compiled in xHarbour to Harbour. Using MySQL as. Normally used to lift Array data and display it in xBrowse. I have attached the source of the class to the project but I can think of a weird error. When I use the method ToExcel, the control tries to read the recordset and of course fails me as I close the recordset data once obtained. But the strangest thing is that if you dismount the project works perfectly. This did not happen with xHarbour. I'm pretty disappointed with this passage although Harbour seems more robust. Anyone know??? Thanks ...
Comportamiento ultima version Harbour (r2101261627) SOLVED
Hola : He observado un comportamiento que yo considero extraño sobre la ultima version de Harbour 32 bits del 31-01 compilada con BCC74 , bajada de la web del amigo Mel. En concreto es la (r2101261627) En las otras versiones abrias un terminal con cmd.exe y escribias lo tipico harbour --version y te salia la version que tenias. ahora con esta ultima no sale absolutamente nada, solamente sale si abres el terminal de GitBash, ahi como antes. Sin embargo los buildh.bat , el FivEdit etc funcionan bien. Por supuesto en las variables de entorno en el PATH tengo definida la ruta del compilador Solo es una curiosidad, yo la verdad no le encuentro la explicacion, Un saludo a todos. Jose.
Comportamiento ultima version Harbour (r2101261627) SOLVED
I confirm the bug. It seems that the output of the compiler is not to the stdout anymore. EMG
Comportamiento ultima version Harbour (r2101261627) SOLVED
This build seems to work fine: [url:qse4h5wy]https&#58;//github&#46;com/FiveTechSoft/Harbour_builder/blob/master/harbour_win32_bcc_2020_10_19&#46;zip[/url:qse4h5wy]
Comportamiento ultima version Harbour (r2101261627) SOLVED
Yes, but it's older. EMG
Comportamiento ultima version Harbour (r2101261627) SOLVED
From Mel Smith: [quote:luyxxoa6]Hi Enrico: I reported the fault to the Harbour-Users group a few minutes ago. We'll see what happens. But that group is almost totally using MinGW. So, I don't expect an immediate answer. However, there were two changes made in January - by Phil Krylov and Oleksii Myronenko. *They* might look deeper.[/quote:luyxxoa6] EMG
Comportamiento ultima version Harbour (r2101261627) SOLVED
Hola José Vicente !!! Te refieres a [code=fw:3oempmf0]<div class="fw" id="{CB}" style="font-family: monospace;">F:\TMP\Harbour\Borland\bin>harbour --version<br />Harbour <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>r2101261627<span style="color: #000000;">&#41;</span><br />Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1999</span><span style="color: #000000;">-2020</span>, https:<span style="color: #B900B9;">//harbour.github.io/</span></div>[/code:3oempmf0] y [code=fw:3oempmf0]<div class="fw" id="{CB}" style="font-family: monospace;">F:\TMP\Harbour\Borland\bin>harbour -build<br />Harbour <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>r2101261627<span style="color: #000000;">&#41;</span><br />Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1999</span><span style="color: #000000;">-2020</span>, https:<span style="color: #B900B9;">//harbour.github.io/</span><br /><br />Harbour Build Info<br />---------------------------<br />Version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>r2101261627<span style="color: #000000;">&#41;</span><br />Compiler: <span style="color: #000000;">Borland</span>/Embarcadero C++ <span style="color: #000000;">7.4</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span>-bit<span style="color: #000000;">&#41;</span><br />Platform: <span style="color: #000000;">Windows</span> <span style="color: #000000;">7</span> <span style="color: #000000;">6.1</span> SP1<br />PCode version: <span style="color: #000000;">0.3</span><br />ChangeLog last entry: <span style="color: #000000;">2021</span><span style="color: #000000;">-01</span><span style="color: #000000;">-26</span> <span style="color: #000000;">18</span>:<span style="color: #000000;">27</span> UTC<span style="color: #000000;">+0200</span> Oleksii Myronenko <span style="color: #000000;">&#40;</span>m.oleksa ukr.<br />net<span style="color: #000000;">&#41;</span><br />ChangeLog <span style="color: #0000ff;">ID</span>: 37e7b7f3a705b9c54eb8441fde553f4eb70c9403<br />Built <span style="color: #0000ff;">on</span>: <span style="color: #000000;">Feb</span>  <span style="color: #000000;">7</span> <span style="color: #000000;">2021</span> <span style="color: #000000;">18</span>:<span style="color: #000000;">31</span>:<span style="color: #000000;">31</span><br />Extra Harbour compiler options: -l-<br />Extra C compiler options: -w-<br />Extra linker options: -LF:\Develop\Borland\BCC74_32\lib\win -LF:\Develop\Harbour<br />Binaries\Borland\<span style="color: #000000;">7432</span>\lib\win\bcc<br />Build options: <span style="color: #000000;"><span style="color: #000000;">&#40;</span>Clipper</span> <span style="color: #000000;">5</span>.3b<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span>Clipper <span style="color: #000000;">5</span>.x undoc<span style="color: #000000;">&#41;</span><br />---------------------------</div>[/code:3oempmf0] Saludos,
Comportamiento ultima version Harbour (r2101261627) SOLVED
Si Felix. A eso me refiero , deberiamos migrar a Mingw en Harbour , compilador y Fivewin construido con Mingw. Embarcadero Borland no creo que mejore el producto, cualquier dia cambia la licencia, mirad que esta haciendo con Delphi. [url] <!-- m --><a class="postlink" href="https://www.clubdelphi.com/foros/showthread.php?t=95081">https://www.clubdelphi.com/foros/showthread.php?t=95081</a><!-- m --> [/url] Alucinante sus licencias caducan, te obligan a comprar la licencia cada año y eso esta escrito en la letra pequeña, la mayoria de usuarios no lo saben. Desde luego nosotros con Fivewin no nos podemos quejar hay usuarios con versiones del 2012 o anteriores y encima se les da soporte. No solo es necesario un buen producto, hace falta una buena direccion empresaria. Saludos. Jose.
Comportamiento ultima version Harbour (r2101261627) SOLVED
Hola: Solucionado, la version construida por Felix con Borland 7.4 funciona bien. Gracias Felix Saludos. Jose.
Comportamiento ultima version Harbour (r2101261627) SOLVED
Hola, Si se cambia el compilador por defecto en Windows, debería ser MSVC, que es con el que está construido el propio SO. A mi juicio, pretender usar Mingw en Windows por defecto es como si Word fuera el procesador por defecto en Linux. A no se que haya otra razón que se me haya escapado. Un saludo
Comportamiento ultima version Harbour (r2101261627) SOLVED
Totalmente de acuerdo contigo Moisés Yo, particularmente utilizo en "producción" siempre el VSC ( por ejemplo FIVEDIT está construído con él ) El único inconveniente es que los principales desarrolladores de harbour empezaron a desarrollar los últimos "avances" haciendo que fuesen compatible con Mingw...... ( a Borland ya lo dejaron hace tiempo )
Comportamiento ultima version Harbour (r2101261627) SOLVED
[quote="MOISES":3qrhcmt0]Hola, Si se cambia el compilador por defecto en Windows, debería ser MSVC, que es con el que está construido el propio SO. A mi juicio, pretender usar Mingw en Windows por defecto es como si Word fuera el procesador por defecto en Linux. A no se que haya otra razón que se me haya escapado. Un saludo[/quote:3qrhcmt0] ¿ Cómo sabemos que Windows está construido con MSVC ? La verdad es que no tenía ni idea. Lo que si sabía es que MSVC y Windows son del mismo fabricante Windows cada vez se acerca más al mundo Linux... No sé cómo se reparó lo de Harbour, pero quizás sólo le faltó el flag console o algo así, al .bat de compilación. No parece que el asunto tenga demasiada trascendencia Mis dos céntimos
Comportamiento ultima version Harbour (r2101261627) SOLVED
Hola amigos En mi humilde opinión yo creo que lo que deberíamos usar es lo que utilice el equipo de Harbour actualmente. ya que es el lenguaje que utilizamos, como este construido Windows aunque importante no lo es tanto. Si harbour utiliza mingw esa debería ser nuestra primera opción. Usar también su compilador y con Fivewin no tenemos problema al tener las libs para todos esos compiladores. Pero es una maravilla que podamos elegir. Un abrazo a todos. Jose. Enviado desde mi POCOPHONE F1 mediante Tapatalk
Comportamiento ultima version Harbour (r2101261627) SOLVED
Jose Vicente, tampoco te falta razón
Comportamientos de Preview (Solucionado)
He observado distintos comportamientos del Preview con las últimas versiones de Fwh, y no se a que puede ser debido. - Un comportamiento es, si llamo al preview desde una tbar que tengo en una ventana MDI, tras hacer clic en el icono imprimir, se me baja el preview a la barra de tareas y se me iconiza., y para salir de él, tengo que pinchar en el icono para que vuelva a abrirse y poder hacer clic en salir. - Otro comportamiento extraño y que antes tampocomo me ocurría, es en otro menú, y llamando también desde una tbar que tengo en otra ventana MDI, resulta que lo que me desaparece es la aplicación, quedándome sólamente en pantalla el preview, y la aplicación no está ni en la barra de tareas. Solo queda como remedio llamar al administrador de tareas de windows y "matar" la aplicación. También me he dado cuenta con respecto a éste último comportamiento es que ésto no ocurre si en lugar de llamar al preview desde el boton de la tbar, lo hago desde un dialogo, funciona perfectamente. como puedo solucionarlo?
Comportamientos de Preview (Solucionado)
Tenia que poner oPrn:lPrvModal:=.t.
Compra Fwh
Antonio. Voy a comprar la ultima versión de fwh. Quiero que me hagais factura a la empresa. Como lo hacemos Por favor contestame al correo privado Saludos
Compra Fwh
Te hemos enviado un email, gracias
Compra Fwh
Antonio. Ya recibi la actualización. Muchas gracias
Compra Fwh
José, Gracias a tí,