topic
stringlengths
1
63
text
stringlengths
1
577k
Class TOleAuto para Harbour
Aqui la teneis para quienes querais empezar a usarla <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> <!-- m --><a class="postlink" href="http://rapidshare.com/files/26446254/hboleaut.lib.html">http://rapidshare.com/files/26446254/hboleaut.lib.html</a><!-- m -->
Class TPdf with TReport Class
Alguem já fez a criação da report com a tpdf, ou seja tudo que gerar na Treport sair em PDF.. igual fizeram com a TExcels ?
Class TScintilla and IntelliSense support
First tests using IntelliSense of Class TScintilla: [img:2izyiic6]http&#58;//img194&#46;imageshack&#46;us/img194/382/screenshot20120316at112&#46;png[/img:2izyiic6] The same code is working the same way in FWH Windows <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Class TScintilla and IntelliSense support
The quality of the video is not good but you can see how the automatic indentation is already working <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [url:2ahrs9zc]http&#58;//www&#46;youtube&#46;com/watch?v=zKJkKNvZ8TM&context=C4badf6cADvjVQa1PpcFMO0DaQqiHEzeUJ8zskvEbo7V-Hv00yuY0=[/url:2ahrs9zc]
Class TScintilla and IntelliSense support
Changing colors in Class TScintilla: [url:3388f9lr]http&#58;//www&#46;youtube&#46;com/watch?v=NYPVx1oibH4&context=C4badf6cADvjVQa1PpcFMO0DaQqiHEzeUJ8zskvEbo7V-Hv00yuY0=[/url:3388f9lr]
Class TScintilla and IntelliSense support
Using different types of files: [url:3qm134pv]http&#58;//www&#46;youtube&#46;com/watch?v=siXo-43-W-A&feature=plcp&context=C43e4e54VDvjVQa1PpcFMO0DaQqiHEzZSFSLG2okNXrAIOL_I6gUE%3D[/url:3qm134pv]
Class TScintilla based IDE
New demo for the Class TScintilla for FWH: [url:3n74wvw2]http&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=scintila_8&#46;zip&can=2&q=[/url:3n74wvw2] It is already possible to compile and run PRGs from it! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Still under development, but surely you will enjoy it. Please copy it to FWH\samples for a correct behavior. [img:3n74wvw2]http&#58;//img100&#46;imageshack&#46;us/img100/8459/capturemgi&#46;png[/img:3n74wvw2]
Class TScintilla based IDE
For those that have downloaded version 7, please download it again as it had a bug when saving files, thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Class TScintilla based IDE
Antonio, could I make a list with some desired features? Like: [list:2gbmittj] [*:2gbmittj]Compiler list with the different versions of Fivewin/(x)Harbour/BCC, like: FW 10.6, xHarbour 1.2.1, BCC 5.82 / Fw 12.2,xHarbour..... [/*:2gbmittj] [*:2gbmittj]Editable colors: Reserved word, background, commented code, functions, string, number, logical, etc....[/*:2gbmittj] [*:2gbmittj]Autocomplete for functions/procedures[/*:2gbmittj] [*:2gbmittj]Autocomplete for parameters[/*:2gbmittj] [/list:u:2gbmittj]
Class TScintilla for FWH first tests
[url:240oyanl]http&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=scintila_1&#46;zip&can=2&q=[/url:240oyanl] Full source code included <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> A free source code editor, that you can configure the way you want and include it in your apps <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Class TScintilla for FWH first tests
A new example that highlight the FWH keywords: [url:1yze3k0h]http&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=scintila_2&#46;zip&can=2&q=[/url:1yze3k0h] [img:1yze3k0h]http&#58;//img52&#46;imageshack&#46;us/img52/2991/captureorj&#46;png[/img:1yze3k0h]
Class TScintilla for FWH first tests
Highlighting Harbour tokens: [code=fw:2j92lcgk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;::<span style="color: #000000;">SendEditor</span><span style="color: #000000;">&#40;</span> SCI_SETKEYWORDS, <span style="color: #000000;">1</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"local public static private "</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"if else endif "</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"do while endwhile end "</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"do case otherwise endcase "</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">SetAStyle</span><span style="color: #000000;">&#40;</span> SCE_FS_KEYWORD2, CLR_HCYAN <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">SendEditor</span><span style="color: #000000;">&#40;</span> SCI_STYLESETBACK, SCE_FS_KEYWORD2, &nbsp; &nbsp; GetSysColor<span style="color: #000000;">&#40;</span> COLOR_WINDOW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2j92lcgk]
Class TScintilla for FWH first tests
Antonio, Perfecto !!!
Class TScintilla for FWH first tests
Antonio, very nice, that can be the base for a new debugger <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
Class TScintilla for FWH first tests
New test, Dialog find partially working, find next and find prev implemented. Full source code included: [url:3tkrkmwm]http&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=scintila_3&#46;zip&can=2&q=[/url:3tkrkmwm] Please copy the EXE and DLLs to FWH\samples
Class TScintilla for FWH first tests
Setting the colors of the selected text: ::SendEditor( SCI_SETSELFORE, 1, CLR_WHITE ) ::SendEditor( SCI_SETSELBACK, 1, CLR_BLUE ) [img:2027kbmc]http&#58;//img692&#46;imageshack&#46;us/img692/2016/capturefjb&#46;png[/img:2027kbmc]
Class TScintilla for FWH first tests
New test, dialog GoTo Line already implemented: [url:3hvlcmgk]http&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=scintila_4&#46;zip&can=2&q=[/url:3hvlcmgk] Full source code included. Please copy the EXE to FWH\samples
Class TScintilla for FWH first tests
[img:11k9ksrp]http&#58;//img28&#46;imageshack&#46;us/img28/6039/capturendg&#46;png[/img:11k9ksrp]
Class TScintilla for FWH first tests
Very good Antonio. Will it be 12.02 nowadays?
Class TScintilla for FWH first tests
Hakan, Today we publish it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Class TScintilla for FWH first tests
Added right panel with the functions (classes, methods, procedures) list <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [img:2n0yph86]http&#58;//img405&#46;imageshack&#46;us/img405/1751/capturenlf&#46;png[/img:2n0yph86] You may download it from (EXE and full source code included): [url:2n0yph86]http&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=scintila_6&#46;zip&can=2&q=[/url:2n0yph86]
Class TScintilla for FWH first tests
Great contribution Antonio I think this will be my editor for my programs developed under harbour and FWH. Thanks, George
Class TScintilla for FWH first tests
George, We are working to complete it as soon as possible, so we can use it instead of UEStudio, etc <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> I think that it can become a very friendly abd useful tool
Class TSmtp with authentication - Luis Krause
<!-- m --><a class="postlink" href="http://hyperupload.com/download/0243cd3541/TSMTP.zip.html">http://hyperupload.com/download/0243cd3 ... P.zip.html</a><!-- m -->
Class TSystemInfo and Windows 7
TO ANYBODY: Does anybody have problems with this combo? I appreciate much any help on this. Thank you in advance... Toyet
Class TTITLE ( images ) possible without Freeimage.dll ?
Hello, nearly all image-paintings don't need Freeimage.dll anymore is it possible to update class TTitle ( image-section ) for usage without Freeimage.dll <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Class TTITLE ( images ) possible without Freeimage.dll ?
[quote="ukoenig":1rttl4k8]Hello, nearly all image-paintings don't need Freeimage.dll anymore is it possible to update class TTitle ( image-section ) for usage without Freeimage.dll <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->[/quote:1rttl4k8] itio's possible change the METHOD LoadBitmap( cnName ) I thinkg insert hBmp := FW_ReadImage( nil, ::cImage )[ 1 ] instead of hBmp = ResizeImg( cnName, ::nWidth, ::nHeight ) but I not tried
Class TTITLE ( images ) possible without Freeimage.dll ?
Silvio, I thaught there would be maybe a fix in new FWH 19.05 but still needs Freeimage.dll If I have the time, I will have a look at the image-section. regards Uwe <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Class TTITLE ( images ) possible without Freeimage.dll ?
I'm sorry but at the moment I have work problems: there is the closure of the school year I have to take part in the scrutinies, I have to make records at school (I work at school I am a technical teacher even if Mr. Massimo Linossi doesn't believe it - I don't interested) and also I should finish the software in which I still have serious problems not solved: I had already answered you because I saw the change in the vistamenu class and in other classes, I am convinced that navarro antonio and nages will find the right modification to do, also I would be interested not to use the freeimage
Class TTITLE ( images ) possible without Freeimage.dll ?
[quote="ukoenig":2rry9jpu]Hello, nearly all image-paintings don't need Freeimage.dll anymore is it possible to update class TTitle ( image-section ) for usage without Freeimage.dll <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->[/quote:2rry9jpu] Mr. Uwe, I think even now it does not require freeimage.dll. But this class handle only bmp files whether we have freeimage.dll or not. I do not think we can use png,jpg files in this class even if we have freeimage.dll. Am I wrong?
Class TTITLE ( images ) possible without Freeimage.dll ?
Mr. Rao, [quote:2ctvomf9]I think even now it does not require freeimage.dll. But this class handle only bmp files whether we have freeimage.dll or not. I do not think we can use png,jpg files in this class even if we have freeimage.dll.[/quote:2ctvomf9] Yes I agree only bmp can be used another format is not visible. there is maybe still another image-call inside my test that needs freeimage.dll Using TTitle my idea was using maybe GDIPLUS otherwise the wanted images must be converted to bmp regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Class TTabControl enhancements
* Enhancement: Class TTabControl has been enhanced to be able to create the control from a dialog on runtime. Also, arrow left-right click detection has been implemented. Please review samples\TestTCtr.prg If you need it, please say it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> We will include them in the next FWH build
Class TURL generates GPF
Friends tip.lib to use TURL something but makes lack so that it does notgenerate GPF xharbour 0.99.60 vzdownload("http://www.aduanet.gob.pe/aduanas/sgdbf/Vehiculos.zip","Vehiculos.zip") FUNC VZDOWNLOAD( cGUARDAR , cCOMO ) Local oUrl := tURL():New(cGUARDAR) Local oClient := tIPClient():New( oUrl ) oClient:nConnTimeout := 20000 oClient:Open( oUrl ) oClient:ReadToFile( cCOMO ) oClient:Close() retu .t. Thanks
Class TURL generates GPF
[quote="Vladimir Zorrilla":2am1yz7z]Friends tip.lib to use TURL something but makes lack so that it does notgenerate GPF xharbour 0.99.60 vzdownload("http://www.aduanet.gob.pe/aduanas/sgdbf/Vehiculos.zip","Vehiculos.zip") FUNC VZDOWNLOAD( cGUARDAR , cCOMO ) Local oUrl := tURL():New(cGUARDAR) Local oClient := tIPClient():New( oUrl ) oClient:nConnTimeout := 20000 oClient:Open( oUrl ) oClient:ReadToFile( cCOMO ) oClient:Close() retu .t. Thanks[/quote:2am1yz7z] Vladimir, Incluye la LIB PCREPOS Saludos
Class Tsmtp with Authentication
Is there anyway I can send a user name and pasword using this class. On some machines I have problems with the Tmail Class "No Mapi Client"
Class Tsmtp with Authentication
[quote="PAUL SIMM":ksbclrzk]Is there anyway I can send a user name and pasword using this class. On some machines I have problems with the Tmail Class "No Mapi Client"[/quote:ksbclrzk] Paul: Try Luis Krause's SMTP, it works with autentication.
Class Tsmtp with Authentication
Rene: tu sabes, o existe algun ejemplo, para rescatar los correos ? los correos que recibo siempre tienen caracteres raros , ej: cambia los "?" por "2Ea=" o cosas como esas ? existe la lectura a lo menos para archivos de texto. ? Estoy usando la TSmtp de LKM pero la TPop3 no tiene ejemplos. Agradeceria tu respuesta Julio Gonzalez V. RANDOM S.A.
Class bluetooth
There are many classese to ask : 1. support bluetooth also in fwh 2. Ocr class recognition 3. sms send /receive 4. calendar with tscheduling ( as <!-- m --><a class="postlink" href="http://www.componentsource.com/products/expressscheduler/index.html">http://www.componentsource.com/products ... index.html</a><!-- m -->) 5. Map gps 6. Small draw component 7. Biometrics Authentication 8.Wireless, Handheld and Mobile 9.Spreadsheet 10. Software Licensing ( creation installing code as xxxx-xxxx-xxxx-xxxx -x as <!-- m --><a class="postlink" href="http://www.componentsource.com/res/pub/img/products/full/514284.gif">http://www.componentsource.com/res/pub/ ... 514284.gif</a><!-- m --> )
Class definition advice needed. (SOLVED)
Dear Masters, I have an browse class name TYK_List. I have an define line like above. [code=fw:32f3ddhb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">CLASS</span> TYK_List <span style="color: #0000ff;">FROM</span> TYK_Core<br /><br />    <span style="color: #00C800;">DATA</span> oData<br />    <span style="color: #00C800;">DATA</span> oDlg, oDlg_Other<br />    <span style="color: #00C800;">DATA</span> oParent<br />    ....<br />    ....<br />    ....<br /><br />    <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cVarName, cCerID, uData, aMyCols, aHeaders, cButtonPlace, SART, ARANAN, nOrd, aButtons, ;<br />            aRelations, aOptions, Esas_Isim, Ex_SART, aCargo, cSilKontrol, cOnBody, aArama, oData, ;<br />            lLineNo, cOnExtra_Caption, oApp, oFont_Brw, oFont_Edit, ldontExit, aStartUp, bOzelyetki, ;<br />            bOnLocked, cOnLocked, lDesc, lMultiSelect, oWnd, oParent, cPrefix_Sil, aKaydet_Kontrol, ;<br />            cTitle, cOnExtra_Bitmap, cIcon<span style="color: #000000;">&#41;</span> CONSTRUCTOR<br />    <br />        <br />    <span style="color: #00C800;">METHOD</span> GO_DETAY_Ekle<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">METHOD</span> GO_DETAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">METHOD</span> GO_SIL<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">METHOD</span> GO_BUL<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    ....<br />    ....<br />    ....<br />    <br />    <span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span>    <br /> </div>[/code:32f3ddhb] [code=fw:32f3ddhb]<div class="fw" id="{CB}" style="font-family: monospace;"> #xcommand <span style="color: #0000ff;">DEFINE</span> Ob_Browse1 <oOb_Brw> <span style="color: #000000;">&#91;</span><span style="color: #0000ff;">OF</span> <oWnd><span style="color: #000000;">&#93;</span>;<br />                        <span style="color: #000000;">&#91;</span> CERCEVEID <cCerID> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> UDATA <uData> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> <span style="color: #00C800;">DATA</span> <oData> <span style="color: #000000;">&#93;</span> ;<br />            <span style="color: #000000;">&#91;</span> <cols: <span style="color: #000000;">COLS</span>, COLUMNS> <aMyCols,...> <span style="color: #000000;">&#93;</span> ;<br />            <span style="color: #000000;">&#91;</span> <head:<span style="color: #000000;">HEAD</span>,HEADER,HEADERS> <aHeaders,...> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> BUTTONYERI <cButtonPlace> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> SART <cSART> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> ARANAN <cARANAN> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> ORDER <nOrd> <span style="color: #000000;">&#93;</span> ;<br />            <span style="color: #000000;">&#91;</span> <buttons:<span style="color: #0000ff;">BUTTON</span>, BUTTONS> <aButtons,...> <span style="color: #000000;">&#93;</span> ;<br />            <span style="color: #000000;">&#91;</span> <rela:<span style="color: #000000;">RELATION</span>, RELATIONS> <aRelations,...> <span style="color: #000000;">&#93;</span> ;<br />            <span style="color: #000000;">&#91;</span> <opt:<span style="color: #000000;">OPTION</span>, OPTIONS> <aOptions,...> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> ESASISIM <cEsas_Isim> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> EXTRASART <Ex_SART> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> CARGO <uCargo> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> ONSILKONTROL <cSilKontrol> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> ONBODY <cOnBody> <span style="color: #000000;">&#93;</span> ;<br />            <span style="color: #000000;">&#91;</span> <aramavar: <span style="color: #000000;">ARAMAVAR</span>> <aAramaVar,...><span style="color: #000000;">&#93;</span> ;<br />            <span style="color: #000000;">&#91;</span> <lineno: <span style="color: #000000;">LINENO</span>> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> EXTRABUTTON CAPTION <Ex_BCaption> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> EXTRABUTTON BITMAP <Ex_BBitmap> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">TITLE</span> <cTitle> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> APPLICATION <oApplication> <span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> BROWSE <span style="color: #0000ff;">FONT</span> <oFont_Brw> <span style="color: #000000;">&#93;</span>;<br />                        <span style="color: #000000;">&#91;</span> <span style="color: #00C800;">EDIT</span> <span style="color: #0000ff;">FONT</span> <oFont_Edit> <span style="color: #000000;">&#93;</span>;<br />                        <span style="color: #000000;">&#91;</span> PARENT <oParent> <span style="color: #000000;">&#93;</span> ;<br />            <span style="color: #000000;">&#91;</span> <ldontExit: <span style="color: #000000;">DONTEXIT</span>> <span style="color: #000000;">&#93;</span> ;<br />            <span style="color: #000000;">&#91;</span> STARTUP <aStartUp><span style="color: #000000;">&#93;</span> ;<br />            <span style="color: #000000;">&#91;</span> OZELYETKI <bOzelYetki><span style="color: #000000;">&#93;</span> ;<br />            <span style="color: #000000;">&#91;</span> ONLOCKED <bOnLocked><span style="color: #000000;">&#93;</span> ;<br />            <span style="color: #000000;">&#91;</span> ONLOCKED_VAR <cOnLocked><span style="color: #000000;">&#93;</span> ;<br />                        <span style="color: #000000;">&#91;</span> <lDesc: <span style="color: #000000;">DESCENDING</span>> <span style="color: #000000;">&#93;</span> ;               <br />                        <span style="color: #000000;">&#91;</span> <lMulti: <span style="color: #000000;">MULTISELECT</span>> <span style="color: #000000;">&#93;</span> ;             <br />                        <span style="color: #000000;">&#91;</span> PREFIX_SIL <cPrefix_Sil> <span style="color: #000000;">&#93;</span> ;<br />            <span style="color: #000000;">&#91;</span> <KONTROL> <aKontrols,...> <span style="color: #000000;">&#93;</span> ;<br />      => ;<br />          <oOb_Brw> := TYK_List<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: #000000;">&#40;</span>oOb_Brw<span style="color: #000000;">&#41;</span>>, <cCerID>, <uData>, ;<br />                        <span style="color: #000000;">&#91;</span>\<span style="color: #000000;">&#123;</span><aMyCols>\<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#93;</span>,;<br />                        <span style="color: #000000;">&#91;</span>\<span style="color: #000000;">&#123;</span><aHeaders>\<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#93;</span>,;<br />                        <span style="color: #000000;">&#91;</span><cButtonPlace><span style="color: #000000;">&#93;</span>,<span style="color: #000000;">&#91;</span><cSART><span style="color: #000000;">&#93;</span>,<span style="color: #000000;">&#91;</span><cARANAN><span style="color: #000000;">&#93;</span>,<span style="color: #000000;">&#91;</span><nOrd><span style="color: #000000;">&#93;</span>,;<br />                        <span style="color: #000000;">&#91;</span><aButtons><span style="color: #000000;">&#93;</span>,<span style="color: #000000;">&#91;</span>\<span style="color: #000000;">&#123;</span><aRelations>\<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#93;</span>,<span style="color: #000000;">&#91;</span><aOptions><span style="color: #000000;">&#93;</span>,<span style="color: #000000;">&#91;</span><cEsas_Isim><span style="color: #000000;">&#93;</span>,;<br />                        <span style="color: #000000;">&#91;</span><Ex_SART><span style="color: #000000;">&#93;</span>,<span style="color: #000000;">&#91;</span><uCargo><span style="color: #000000;">&#93;</span>,<cSilKontrol>,<cOnBody>,<span style="color: #000000;">&#91;</span><aAramaVar><span style="color: #000000;">&#93;</span>, ;<br />                        <oData>, <.lineno.>, <span style="color: #000000;">&#91;</span><Ex_BCaption><span style="color: #000000;">&#93;</span>, <oApplication>,;<br />                        <span style="color: #000000;">&#91;</span><oFont_Brw><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span><oFont_Edit><span style="color: #000000;">&#93;</span>, <.ldontExit.>, <aStartUp>, <bOzelYetki>, ;<br />                        <bOnLocked>, <cOnLocked>, <.lDesc.>, <.lMulti.>, <span style="color: #000000;">&#91;</span><oWnd><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span><oParent><span style="color: #000000;">&#93;</span>,;<br />                        <span style="color: #000000;">&#91;</span><cPrefix_Sil><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span>\<span style="color: #000000;">&#123;</span><aKontrols>\<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span><cTitle><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span><Ex_BBitmap><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />                   </div>[/code:32f3ddhb] This class has a dialog and can be define more than one same class in it. There is no problem. It works. If there is an error in one dialog that called from first class, I could not found the which derived object is from. I have decided to separate class like This [code=fw:32f3ddhb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">CLASS</span> TMy_Purpose1 <span style="color: #0000ff;">FROM</span> TYK_List<br /><span style="color: #00C800;">ENDCLASS</span>    <br /><br /><span style="color: #00C800;">CLASS</span> TMy_Purpose2 <span style="color: #0000ff;">FROM</span> TYK_List<br /><span style="color: #00C800;">ENDCLASS</span>    <br /><br /><span style="color: #00C800;">CLASS</span> TMy_Purpose3 <span style="color: #0000ff;">FROM</span> TYK_List<br /><span style="color: #00C800;">ENDCLASS</span>    <br /><br /><span style="color: #00C800;">CLASS</span> TMy_Purposen <span style="color: #0000ff;">FROM</span> TYK_List<br /><span style="color: #00C800;">ENDCLASS</span>   </div>[/code:32f3ddhb] In this situation, I can not use define "Ob_Browse1" name. I should define every inherited class "TMy_Purpose?". But This class is constantly changing, it also defines. I should not forget to change inherited class defines also. Question : Is there any general define method (or parameter) to run inherited classes from one define line? [code=fw:32f3ddhb]<div class="fw" id="{CB}" style="font-family: monospace;">xcommand <span style="color: #0000ff;">DEFINE</span> oMy_Purpose1        oOb_Browse1         <span style="color: #B900B9;">// but should run TMy_Purpose1() instead TYK_List()</span></div>[/code:32f3ddhb]
Class definition advice needed. (SOLVED)
Please try this sample and adapt to your requirements: [code=fw:1s6c4oo6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />#xcommand <span style="color: #0000ff;">DEFINE</span> <o> Ob_Browse1  <n> <span style="color: #000000;">&#91;</span>SUBCLASS <cClass><span style="color: #000000;">&#93;</span> => ;<br />   <o> := HB_ExecFromArray<span style="color: #000000;">&#40;</span> IfNil<span style="color: #000000;">&#40;</span> <cClass>, <span style="color: #ff0000;">"TYK_LIST"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <n> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> o, o1, o2, O3<br /><br />   <span style="color: #0000ff;">DEFINE</span> o  Ob_Browse1  <span style="color: #000000;">1</span><br />   <span style="color: #0000ff;">DEFINE</span> o1 Ob_Browse1  <span style="color: #000000;">1</span> SUBCLASS <span style="color: #ff0000;">"TMY_PURPOSE1"</span><br />   <span style="color: #0000ff;">DEFINE</span> o2 Ob_Browse1  <span style="color: #000000;">1</span> SUBCLASS <span style="color: #ff0000;">"TMY_PURPOSE2"</span><br />   <span style="color: #0000ff;">DEFINE</span> o3 Ob_Browse1  <span style="color: #000000;">1</span> SUBCLASS <span style="color: #ff0000;">"TMy_Purpose3"</span><br /><br />   ? o:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, o1:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, o2:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, o3:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">CLASS</span> TYK_List<br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">CLASS</span> TMy_Purpose1 <span style="color: #0000ff;">FROM</span> TYK_List<br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">CLASS</span> TMy_Purpose2 <span style="color: #0000ff;">FROM</span> TYK_List<br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">CLASS</span> TMy_Purpose3 <span style="color: #0000ff;">FROM</span> TYK_List<br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">CLASS</span> TMy_Purposen <span style="color: #0000ff;">FROM</span> TYK_List<br /><span style="color: #00C800;">ENDCLASS</span></div>[/code:1s6c4oo6] [url=https&#58;//imageshack&#46;com/i/pnbk3bzop:1s6c4oo6][img:1s6c4oo6]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/923/bk3bzo&#46;png[/img:1s6c4oo6][/url:1s6c4oo6]
Class definition advice needed. (SOLVED)
Thank you very much Mr. Rao, This solved my problem.
Class method
Antonio, Is this possible to create class like this where ::ShowTest() method is call for get object ? Thanks for help Pawel [code:19levqht] Function ClassTest &#40;&#41; Local oTest &#58;= Nil oTest &#58;= Test &#40;&#41; &#58; New &#40;&#41; Return &#46;T&#46; Class Test Data oWnd Data oGet1 Data cGet1 Init Space &#40;10&#41; Method New &#40;&#41; Method ReadTest &#40;&#41; Method ShowTest &#40;&#41; EndClass Method New &#40;&#41; Class Test Define Window &#58;&#58;oWnd Title 'Class Test' @ 10, 10 Button 'Ok' Size 60, 20 Pixel Action &#58;&#58;ReadTest &#40;&#41; Activate Window &#58;&#58;oWnd Return Self Method ReadTest &#40;&#41; Class Test @ 40, 10 Get &#58;&#58;oGet1 Var &#58;&#58;cGet1 Size 100, 20 Pixel On Change &#58;&#58;ShowTest &#40;&#41; Of &#58;&#58;oWnd // this generate error message not found TGET&#58;SHOWTEST @ 70, 10 Button 'Ok' Size 60, 20 Pixel Action MsgInfo &#40;Str &#40;&#58;&#58;oGet1 &#58; nPos&#41;&#41; Return &#46;T&#46; Method ShowTest &#40;&#41; Class Test MsgInfo &#40;Str &#40;&#58;&#58;oGet1 &#58; nPos&#41;&#41; Return &#46;T&#46; [/code:19levqht]
Class method
Hello, Can you try [code:1kx7npal] &#46;&#46;&#46; &#58;&#58;oGet1&#58;bChange &#58;= &#123;|| &#58;&#58;ShowTest&#40;&#41; &#125; &#46;&#46;&#46;[/code:1kx7npal] Regards.
Class method
Pawel, Besides Carles solution, you may do: [code:1jyy3dik] Method ReadTest &#40;&#41; Class Test local oThis &#58;= Self @ 40, 10 Get &#58;&#58;oGet1 Var &#58;&#58;cGet1 Size 100, 20 Pixel On Change oThis&#58;ShowTest &#40;&#41; Of &#58;&#58;oWnd @ 70, 10 Button 'Ok' Size 60, 20 Pixel Action MsgInfo &#40;Str &#40;&#58;&#58;oGet1 &#58; nPos&#41;&#41; Return &#46;T&#46; [/code:1jyy3dik]
Class syntax not working
Antonio, I am trying to use the syntaxes, READONLY, HIDDEN, and PROTECTED in classes but none of them are working. I seem to remember that in the past at least some of them were working. The test code below compiles and runs without any errors--and there should be errors. Either the compiler shouldn't allow it, or the running app should report errors. Any ideas? James [code=fw:1lmwy71e]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />Purpose  : Test OOP syntax: hidden, readonly, protected<br />Program  : <br />Author   : James Bott, <!-- e --><a href="mailto:jbott@compuserve.com">jbott@compuserve.com</a><!-- e --><br />Date     : 06/30/2017 12:58:01 PM<br />Company  : Intellitech<br />Language : Fivewin 16.02/xHarbour<br />Updated  : <br />Notes    : It seems none of these syntaxes have any affect. <br /><br />*/</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Local</span> oSyntax<br />   oSyntax:= TSyntax<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: #000000;">&#41;</span><br />   oSyntax:<span style="color: #000000;">fname</span> := <span style="color: #ff0000;">"Mary"</span><br />   oSyntax:<span style="color: #000000;">Lname</span> := <span style="color: #ff0000;">"Jones"</span><br />   oSyntax:<span style="color: #000000;">cAlias</span> := <span style="color: #ff0000;">"MyAlias"</span><br />   <br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oSyntax:<span style="color: #000000;">fname</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">msgInfo</span><span style="color: #000000;">&#40;</span> oSyntax:<span style="color: #000000;">lname</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">msgInfo</span><span style="color: #000000;">&#40;</span> oSyntax:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">Class</span> TSyntax<br />   <span style="color: #00C800;">Data</span> fname  HIDDEN<br />   <span style="color: #00C800;">Data</span> lname  <span style="color: #00C800;">PROTECTED</span><br />   <span style="color: #00C800;">DATA</span> cAlias READONLY <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">"cAlias"</span>   <br /><br />   <span style="color: #00C800;">Method</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endclass</span><br /><br /><span style="color: #00C800;">Method</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">class</span> TSyntax<br />   ::<span style="color: #000000;">fName</span>:=<span style="color: #ff0000;">"James"</span><br />   ::<span style="color: #000000;">lname</span>:= <span style="color: #ff0000;">"Bott"</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">self</span></div>[/code:1lmwy71e]
Class syntax not working
James, I never use those clauses. I hate them since Borland TurboVision times <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> (when I wanted to change some DATAs and it was impossible, forcing you to write extra classes and code) So I am fraid I can't help you with that
Class syntax not working
James, the scope specifiers don't work with xHarbour but work with Harbour: [code=fw:1ti6bhll]<div class="fw" id="{CB}" style="font-family: monospace;">Error BASE/<span style="color: #000000;">41</span> &nbsp;Scope violation <span style="color: #000000;">&#40;</span>hidden<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">TSYNTAX</span>:_FNAME<br />Error BASE/<span style="color: #000000;">42</span> &nbsp;Scope violation <span style="color: #000000;">&#40;</span><span style="color: #00C800;">protected</span><span style="color: #000000;">&#41;</span>: <span style="color: #000000;">TSYNTAX</span>:_LNAME<br />Error BASE/<span style="color: #000000;">42</span> &nbsp;Scope violation <span style="color: #000000;">&#40;</span><span style="color: #00C800;">protected</span><span style="color: #000000;">&#41;</span>: <span style="color: #000000;">TSYNTAX</span>:_CALIAS</div>[/code:1ti6bhll] EMG
Class syntax not working
Antonio, [quote:3w4zln9w]I hate them since Borland TurboVision times (when I wanted to change some DATAs and it was impossible, forcing you to write extra classes and code)[/quote:3w4zln9w] OK, I get that. In my case I am just trying to protect myself from me! It's hard to remember what can be changed without unintended consequences, and what can be changed. Since, I have the source, I can change my mind about the level of protection at a later time. Enrico, So you are saying it is a xHarbour issue? I assume the output you posted was from a Harbour compile? Thanks for the responses, both of you. James
Class syntax not working
[quote="James Bott":7ekxt3vv]Enrico, So you are saying it is a xHarbour issue? I assume the output you posted was from a Harbour compile?[/quote:7ekxt3vv] Yes. But this is from xdiff.txt: [quote:7ekxt3vv]Module Scope: ------------- OOP Scoping supports PRIVATE/HIDDEN, PROTECTED, and READONLY scopes. Classes sharing the SAME compilation unit may freely access such restricted access Members, without causing any scope violation.[/quote:7ekxt3vv] So, I assume (not tested) that the scope specifiers would work in xHarbour too outside the same PRG. EMG
Class syntax not working
Well, I should have done this first. I dug through all my notes and I found the note below from 2006. This explains a lot. This does make it difficult to write code that works with both xHarbour and Harbour. Of course, things may well have changed since then so I still need to do some testing. James [quote:2hgovtsm]OK, after a considerable amount of work I finally have xHarbour up and running. I ran some class scoping tests and this is what I found. FW/Clipper HIDDEN Only visible within the class in which it is defined and it's subclasses. PROTECTED Visible everywhere. Not assignable outside the class or subclass. READONLY Same as protected. FWH/Harbour All class scope syntax is ignored and everything is treated as EXPORTED. FWH/xHarbour Note that these don't work when the class is in the same prg as the code. HIDDEN Only visible within the class in which it is defined. Not visible in subclasses. PROTECTED Only visible within the class in which it is defined and it's subclasses. READONLY Visible everywhere. Not assignable outside the class or subclass. In summary, HIDDEN in FW/Clipper is the same as PROTECTED in FWH/xHarbour. PROTECTED and READONLY are synonymous in FW/Clipper, but have different scopes in FWH/xHarbour.[/quote:2hgovtsm]
Class syntax not working
[quote:2wny4es9]So, I assume (not tested) that the scope specifiers would work in xHarbour too outside the same PRG. [/quote:2wny4es9] Yes. If we keep the class alone in a different module, then both xHarbour and Harbour work alike.
Class to read / write Excel
Hello FiveWinners What is the class to read and / or write Excel, without having Excel installed on my system? Thank you... regards
Class to read / write Excel
Mira se ayuda: [code=fw:1vyg94ay]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> ReadFromExcel<span style="color: #000000;">&#40;</span> cFile, xColumnas, nHojaExcel, nFilasVacias, lConvertNulls <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> oExcel, oPage<br /><span style="color: #00C800;">LOCAL</span> aDatos := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, aLinea := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, nLine := <span style="color: #000000;">0</span>, nCol := <span style="color: #000000;">0</span>, lVacio := .F., nContador:=<span style="color: #000000;">0</span><br /><span style="color: #00C800;">LOcal</span> nFilas:=<span style="color: #000000;">0</span>, nColumnas:=<span style="color: #000000;">0</span><br /><br /><span style="color: #00C800;">DEFAULT</span> xColumnas <span style="color: #0000ff;">TO</span> <span style="color: #000000;">256</span><br /><span style="color: #00C800;">DEFAULT</span> nHojaExcel <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1</span><br /><span style="color: #00C800;">DEFAULT</span> nFilasVacias <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span><br /><span style="color: #00C800;">DEFAULT</span> lConvertNulls <span style="color: #0000ff;">TO</span> .T.<br /><br /><br /><span style="color: #00C800;">IF</span> !File<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br />MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No existe el documento Excel "</span> + cFile<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">TRY</span><br />oExcel := GetActiveObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Excel.Application"</span> <span style="color: #000000;">&#41;</span><br />CATCH<br /><span style="color: #00C800;">TRY</span><br />oExcel := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Excel.Application"</span> <span style="color: #000000;">&#41;</span><br />CATCH<br /><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Excel no disponible. ["</span> + Ole2TxtError<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"]"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> .F.<br />END<br />END<br /><br />oExcel:<span style="color: #000000;">WorkBooks</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br />oPage := oExcel:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">&#40;</span> nHojaExcel <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> ValType<span style="color: #000000;">&#40;</span>xColumnas<span style="color: #000000;">&#41;</span>=<span style="color: #ff0000;">"A"</span><br />nFilas:=xColumnas<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />nColumnas:=xColumnas<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br /><span style="color: #00C800;">Else</span><br />nColumnas:=xColumnas<br /><span style="color: #00C800;">Endif</span><br /><br />MsgWait<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Leyendo datos de Hoja Excel"</span>,,<span style="color: #ff0000;">"Excel"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FOR</span> nLine := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">65536</span><br />lVacio := .T.<br />aLinea := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">FOR</span> nCol := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nColumnas<br />AAdd<span style="color: #000000;">&#40;</span> aLinea, <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>lConvertNulls .And. oPage:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> nLine, nCol <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>=<span style="color: #00C800;">Nil</span>,<span style="color: #ff0000;">''</span>,oPage:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> nLine, nCol <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">IF</span> lVacio .AND. !Vacio<span style="color: #000000;">&#40;</span> aLinea<span style="color: #000000;">&#91;</span> Len<span style="color: #000000;">&#40;</span> aLinea <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />lVacio := .F.<br />nContador := nFilasVacias<br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #B900B9;">//Limite de filas si se ha requerido</span><br /><span style="color: #00C800;">If</span> nFilas<><span style="color: #000000;">0</span> .And. nLine>nFilas<br />Exit<br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">IF</span> lVacio<br />nContador--<br /><span style="color: #00C800;">IF</span> nContador = <span style="color: #000000;">0</span><br />EXIT<br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">ELSE</span><br /><br />AAdd<span style="color: #000000;">&#40;</span> aDatos, aLinea <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">NEXT</span><br /><br />oExcel:<span style="color: #000000;">Quit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> aDatos<br />&nbsp;</div>[/code:1vyg94ay] 
Class to read / write Excel
[url:1mukiog7]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=17030&p=122340&hilit=clase+TExcel#p122340[/url:1mukiog7]
Class to read / write Excel
I think both responses need Excel installed. He asked how to update "without" Excel installed. You can use ADO to access spreadsheet. Here is an example connection info. oCon := CreateObject("ADODB.Connection") oCon:open( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+cFileName+";Extended Properties=Excel 8.0" )
Class to read / write Excel
Gale ... you're right. I will investigate how read or write a table Excel with ADO. If you have a more complete example I would greatly appreciate it regards
Class to read / write Excel
[quote="devtuxtla":qd1gup7y]What is the class to read and / or write Excel, without having Excel installed on my system?[/quote:qd1gup7y] Hi, [u:qd1gup7y][b:qd1gup7y]Option 1[/b:qd1gup7y][/u:qd1gup7y] There is a Class named TExcel. This class use an Excel OCX. So I believe that this can be used in PC's without Excel installed. Search this Forum [u:qd1gup7y][b:qd1gup7y]Option 2[/b:qd1gup7y][/u:qd1gup7y] A class named TFileXls, this does not require Excel to be installed on your PC. Search this Forum [u:qd1gup7y][b:qd1gup7y]Option 3[/b:qd1gup7y][/u:qd1gup7y] XlsXml.Prg <!-- m --><a class="postlink" href="https://github.com/harbour/core/blob/master/extras/hbxlsxml/xlsxml.prg">https://github.com/harbour/core/blob/ma ... xlsxml.prg</a><!-- m --> This will help you to create XML format Excel file. Does not require Excel to be installed on your PC [u:qd1gup7y][b:qd1gup7y]Option 4[/b:qd1gup7y][/u:qd1gup7y] <!-- m --><a class="postlink" href="http://www.libxl.com">http://www.libxl.com</a><!-- m --> This company sells a DLL which can be used in Harbour/xHarbour. Does not require Excel to be installed on your PC Regards [b:qd1gup7y]Anser[/b:qd1gup7y]
Class to read / write Excel
i use texcel but it needs Excel.
Class to read / write Excel
Hello, See also methods in xbrowse and adofuncs provided by Mr. Nages.
Class to read / write Excel
Here is a vbscript example you can look at. [code=fw:am8d5f04]<div class="fw" id="{CB}" style="font-family: monospace;">Const adOpenStatic = <span style="color: #000000;">3</span><br />Const adLockOptimistic = <span style="color: #000000;">3</span><br /><br />filename = <span style="color: #ff0000;">"Test.xls"</span><br />Set cn = CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ADODB.Connection"</span><span style="color: #000000;">&#41;</span><br />cn.Open <span style="color: #ff0000;">"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="</span> & filename & _<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">";Extended Properties=Excel 8.0"</span><br /><br />query = <span style="color: #ff0000;">"Select * from [Sheet1$A1:B65535]"</span><br />Set rs = CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ADODB.Recordset"</span><span style="color: #000000;">&#41;</span><br />rs.Open query, cn, adOpenStatic, adLockOptimistic<br /><br />rs.AddNew<br />rs<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"First"</span><span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"George"</span><br />rs<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Last"</span><span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"Washington"</span><br />rs.<span style="color: #0000ff;">Update</span><br /><br />rs.MoveFirst<br /><span style="color: #00C800;">Do</span> Until rs.EOF<br />&nbsp; WScript.Echo rs.Fields<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"First"</span><span style="color: #000000;">&#41;</span> & <span style="color: #ff0000;">" "</span> & rs.Fields<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Last"</span><span style="color: #000000;">&#41;</span><br />&nbsp; rs.MoveNext<br />Loop</div>[/code:am8d5f04]
Class to read / write Excel
La mejor opcion sin costo [b:2uium23z]Option 3[/b:2uium23z] XlsXml.Prg [url:2uium23z]https&#58;//github&#46;com/harbour/core/blob/ma%20&#46;&#46;&#46;%20xlsxml&#46;prg[/url:2uium23z] This will help you to create XML format Excel file. Does not require Excel to be installed on your PC
Class with SMTP gmail
How do I authenticate using a Gmail account? Grateful.
Class with SMTP gmail
Use port 465
Class with SMTP gmail
Dear MR.Alexandre, Here is a Sample code to send Email using Gmail. [code=fw:300ks8z6]<div class="fw" id="{CB}" style="font-family: monospace;">oMailer:<span style="color: #000000;">oEmailCfg</span> := CREATEOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Configuration"</span> <span style="color: #000000;">&#41;</span><br />WITH OBJECT oMailer:<span style="color: #000000;">oEmailCfg</span>:<span style="color: #000000;">Fields</span><br />&nbsp; &nbsp;:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserver"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #ff0000;">"smtp.gmail.com"</span><br />&nbsp; &nbsp;:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserverport"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">465</span><br />&nbsp; &nbsp;:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusing"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">2</span> &nbsp; <span style="color: #B900B9;">// Remote SMTP = 2, local = 1</span><br />&nbsp; &nbsp;:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := .T.<br />&nbsp; &nbsp;:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpusessl"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := .T.<br />&nbsp; &nbsp;:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusername"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := oMailer:<span style="color: #000000;">cSendMailId</span> &nbsp;<span style="color: #B900B9;">// Gmail A/c ID</span><br />&nbsp; &nbsp;:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendpassword"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := oMailer:<span style="color: #000000;">cSendMailIdPass</span> &nbsp; <span style="color: #B900B9;">// Password</span><br />&nbsp; &nbsp;:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">30</span><br />&nbsp; &nbsp;:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />END WITH<br /><br />oEmailMsg := CREATEOBJECT <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">&#41;</span><br />WITH OBJECT oEmailMsg<br />&nbsp; &nbsp;:<span style="color: #000000;">Configuration</span> = oMailer:<span style="color: #000000;">oEmailCfg</span><br />&nbsp; &nbsp;:<span style="color: #0000ff;">From</span> = chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+oMailer:<span style="color: #000000;">cFromName</span>+<span style="color: #ff0000;">" "</span>+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span>+ <span style="color: #ff0000;">"<"</span>+oMailer:<span style="color: #000000;">cFromID</span>+<span style="color: #ff0000;">">"</span> <span style="color: #B900B9;">// This will be displayed as From address</span><br />&nbsp; &nbsp;:<span style="color: #0000ff;">To</span> = cToEmailId &nbsp; &nbsp;<span style="color: #B900B9;">// To Email ID</span><br />&nbsp; &nbsp;:<span style="color: #000000;">BCC</span> = cBcc &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// BCC Id</span><br />&nbsp; &nbsp;:<span style="color: #0000ff;">Subject</span> = oMailer:<span style="color: #000000;">cSubject</span><br />&nbsp; &nbsp;:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />END WITH</div>[/code:300ks8z6] Regards Anser
Class with SMTP gmail
Hi Mr.Carlos and Mr.Anser I am getting the following error!. [code=fw:18j9pf10]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Error description: <span style="color: #000000;">Error</span> CDO.<span style="color: #0000ff;">Message</span>/<span style="color: #000000;">3</span>  DISP_E_MEMBERNOTFOUND: <span style="color: #000000;">SEND</span><br /> </div>[/code:18j9pf10] Am I supposed to have any specific lib to get this working ? Regards - Ramesh Babu P FWH 8.09, xHB 1.1.0 (Simplex), BCC55
Class with SMTP gmail
Dear Mr.Ramesh, Please use TRY CATCH, it seems that the object is not created properly. Please note that u need active internet connection while testing the email send application. It is working fine here. Regards Anser
Class with SMTP gmail
How to pass parameters ? How to attach files ? Thanks .
Class with SMTP gmail
Dear Mr.Jack, [quote:2rf4fk4j]How to pass parameters ?[/quote:2rf4fk4j] What do you mean by parameters ? [quote:2rf4fk4j]How to attach files ?[/quote:2rf4fk4j] [code=fw:2rf4fk4j]<div class="fw" id="{CB}" style="font-family: monospace;">oEmailMsg := CREATEOBJECT <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">&#41;</span><br />WITH OBJECT oEmailMsg<br />&nbsp; &nbsp;:<span style="color: #000000;">Configuration</span> = oEmailCfg<br />&nbsp; &nbsp;:<span style="color: #0000ff;">From</span> = chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+cFromName+<span style="color: #ff0000;">" "</span>+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span>+ <span style="color: #ff0000;">"<"</span>+cFromID+<span style="color: #ff0000;">">"</span> <span style="color: #B900B9;">// This will be displayed as From address</span><br />&nbsp; &nbsp;:<span style="color: #0000ff;">To</span> = cToEmailId &nbsp; &nbsp;<span style="color: #B900B9;">// To Email ID</span><br />&nbsp; &nbsp;:<span style="color: #000000;">BCC</span> = cBcc &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// BCC Id</span><br />&nbsp; &nbsp;:<span style="color: #0000ff;">Subject</span> = cSubject<br />&nbsp; &nbsp;:<span style="color: #000000;">AddAttachment</span><span style="color: #000000;">&#40;</span>cAttachment<span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp;Add attachment "c:\LCd Projector.txt"</span><br />&nbsp; &nbsp;:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />END WITH<br />&nbsp;</div>[/code:2rf4fk4j] Regards Anser
Class with SMTP gmail
Hello Anser, I tried with TRY, CATCH but I am getting the error exactly at :Send() method. I am already connected to Internet, while I was testing this and I checked the creation of all Objects. They are created properly. I dont't know what is going wrong ? - Ramesh Babu P
Class with SMTP gmail
Dear Ramesh, Here is a complete sample which is working for me here. You need to provide only your gmail id and password in the code. If this is not working then, I believe that your firewall must be blocking the port 465. You may also try to increase the timeout value from 30 to some higher values For Eg. [code=fw:1gjkep6j]<div class="fw" id="{CB}" style="font-family: monospace;">:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">60</span></div>[/code:1gjkep6j] [code=fw:1gjkep6j]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br />*-------------------------------------------------*<br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*-------------------------------------------------*<br /><span style="color: #00C800;">Local</span> oEmailCfg,oEmailMsg,oError,cHtml<br /><br />cHtml:=<span style="color: #ff0000;">'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">'</span><br />cHtml+=<span style="color: #ff0000;">'<HTML><HEAD>'</span><br />cHtml+=<span style="color: #ff0000;">'<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>'</span><br />cHtml+=<span style="color: #ff0000;">'<META name=GENERATOR content="MSHTML 8.00.6001.18783">'</span><br />cHtml+=<span style="color: #ff0000;">'<STYLE></STYLE>'</span><br />cHtml+=<span style="color: #ff0000;">'</HEAD>'</span><br />cHtml+=<span style="color: #ff0000;">'<BODY bgColor=#ffffff>'</span><br />cHtml+=<span style="color: #ff0000;">'<DIV><FONT size=2 face=Arial>Hello How are you ?</FONT></DIV></BODY></HTML>'</span><br /><br /><br /><span style="color: #0000ff;">MSgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"I am going to Send Message"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">TRY</span><br />  oEmailCfg := CREATEOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Configuration"</span> <span style="color: #000000;">&#41;</span><br />  WITH OBJECT oEmailCfg:<span style="color: #000000;">Fields</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserver"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #ff0000;">"smtp.gmail.com"</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserverport"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">465</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusing"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">2</span>   <span style="color: #B900B9;">// Remote SMTP = 2, local = 1</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := .T.<br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpusessl"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := .T.<br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusername"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #ff0000;">"YourGmailId@gmail.com"</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendpassword"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #ff0000;">"YourGmailPassword"</span> <span style="color: #B900B9;">// Password</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">30</span><br />     :<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  END WITH<br />CATCH oError<br />  <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Could not send message"</span> + <span style="color: #ff0000;">";"</span>  + ;<br />         <span style="color: #ff0000;">"Error: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">GenCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + ;<br />         <span style="color: #ff0000;">"SubC: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + ;<br />         <span style="color: #ff0000;">"OSCode: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">OsCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + ;<br />         <span style="color: #ff0000;">"SubSystem: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubSystem</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + ;<br />         <span style="color: #ff0000;">"Message: "</span> + oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">&#41;</span><br />END<br />oError:=<span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">TRY</span><br />    oEmailMsg := CREATEOBJECT <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">&#41;</span><br />    WITH OBJECT oEmailMsg<br />        :<span style="color: #000000;">Configuration</span> = oEmailCfg<br />        :<span style="color: #0000ff;">From</span> = chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"Anser Test "</span>+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span>+ <span style="color: #ff0000;">"<anserkk@gmail.com>"</span> <span style="color: #B900B9;">// This will be displayed in the From (The email id does not appear)</span><br />        :<span style="color: #0000ff;">To</span> = <span style="color: #ff0000;">"anserkk@hotmail.com"</span>    <span style="color: #B900B9;">// <-----   Place your email address</span><br />        :<span style="color: #0000ff;">Subject</span> = <span style="color: #ff0000;">"Test Message"</span><br />        :<span style="color: #000000;">MDNRequested</span> = .T.<br />        :<span style="color: #000000;">HTMLBody</span> = cHtml<br />    END WITH<br />    oEmailMsg:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />CATCH oError<br />    <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Could not send message"</span> + <span style="color: #ff0000;">";"</span>  + CRLF+ ;<br />            <span style="color: #ff0000;">"Error: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">GenCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF+;<br />            <span style="color: #ff0000;">"SubC: "</span>  + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF+ ;<br />            <span style="color: #ff0000;">"OSCode: "</span>+ TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">OsCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF +;<br />            <span style="color: #ff0000;">"SubSystem: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubSystem</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> +CRLF+ ;<br />            <span style="color: #ff0000;">"Message: "</span> + oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">&#41;</span><br />END<br /><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Reached the end of the code"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> .T.<br /> </div>[/code:1gjkep6j] Regards Anser
Class with SMTP gmail
Hello Anser, Thank you very much for your example and detailed suggestions. Your recent example has worked. And I could send my test mail. - Ramesh Babu P
Class with SMTP gmail
Thank you. Problem solved. []s Alexandre
Class with SMTP gmail
Is it also possible to read the Inbox of Gmail and save attached files ? Thanks .
Class with SMTP gmail
Hi Mr.Jack, As per Microsoft, GetStream() returns the Stream object containing the complete message, including headers and all content, in serialized (wire-transport) format. I am not sure and I have not yet tried it. The information may be useful to you. For Ref. [url:1qyrxwh9]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/ms526453(EXCHG&#46;10)&#46;aspx[/url:1qyrxwh9] [code=fw:1qyrxwh9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Local</span> iMsg,iDSrc,iBp<br /><span style="color: #B900B9;">// Get the IMessage interface (Dispatch)</span><br />iMsg = CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"CDO.Message"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">// Get the IDataSource on the Message Object (IDispatch)</span><br />iDSrc = iMsg:<span style="color: #000000;">GetInterface</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"IDataSource"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//Get the IBodyPart interface on the Message Object (IDispatch)</span><br />iBp = iMsg:<span style="color: #000000;">GetInterface</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"IBodyPart"</span><span style="color: #000000;">&#41;</span></div>[/code:1qyrxwh9] Regards Anser
Class: 'NIL' has no exported
Estimados, por que al ejecutar el programa me tira este error: [quote:w7fntzhu] Error description: Error BASE/1004 Class: 'NIL' has no exported method: SETFOCUS Args: Stack Calls =========== Called from SETFOCUS(0) Called from (b)MAIN(118) Called from TDIALOG:INITIATE(0) Called from TDIALOG:HANDLEEVENT(0) Called from DIALOGBOX(0) Called from TDIALOG:ACTIVATE(0) Called from MAIN(118)[/quote:w7fntzhu] [code:w7fntzhu] oDlg&#58;= oDlgEnlace&#40; oBrw, oTextos, oBtns, oBmp, oFuentes &#41; //----------&#40; Acción del botón &#41;---------- ACTIVATE DIALOG oDlg CENTERED ON init &#40;; oBrw&#58; SetFocus&#40;&#41;,; oBrw&#58; ResetBarPos&#40;&#41;,; oBrw&#58; UpStable&#40;&#41;,; oBrw&#58; Reset&#40;&#41;,; oBrw&#58; Refresh&#40;&#41;,; oBrw&#58; gobottom&#40;&#41;,; BuildTimer&#40; IF &#40; aConfiguracion&#91; 01 &#93; < 17, 0x64, 0xB4 &#41;,; aConfiguracion, aProductos, aSurtidores, aSetVars, oDlg &#41;; &#41; DBCloseAll&#40;&#41; AEval&#40; oFuentes, &#123; | aFuentes | aFuentes&#58;END&#40; &#41; &#125; &#41; RETURN &#40; NIL &#41; //------------------------------------------------------------------------------ STATIC FUNCTION BuildTimer&#40; nComando, aConfiguracion, aProductos, aSurtidores, aSetVars, oDlg &#41; MEMVAR oTimer DEFINE Timer oTimer Interval Val&#40; aSetVars&#91; 03 &#93; &#41;; Action &#40; NuevasCargas&#40; nComando, aConfiguracion, aProductos, aSurtidores, aSetVars &#41; &#41; OF oDlg ACTIVATE timer oTimer RETURN &#40; NIL &#41; //------------------------------------------------------------------------------[/code:w7fntzhu] Gracias.
Class: 'NIL' has no exported
porque oBrw es Nil <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> Saludos <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Class: 'NIL' has no exported
Gracias, Pero me gustaria ver la solucion, ya que OBRW aparentemente lo estoy creando, es mas cuando ejecuto el programa el obrw se arma: [code:lymz009h]oDlg&#58;= oDlgEnlace&#40; oBrw, oTextos, oBtns, oBmp, oFuentes&#41;[/code:lymz009h]
Class: 'NIL' has no exported
Tendrias que publicar mas codigo.. Saludos
Class: 'NIL' has no exported
Amigos, Primeramente quiero agradecerle a mi amigo de Williams (wmormar) porque me ayudo a solucionar el inconveniente posteado. Voy a hacerlo sencillo y me gustaría recibir alguna explicacion [i:1qfyvw00]"Técnica"[/i:1qfyvw00] al respecto porque realmente perdí mucho tiempo buscando solución. Si vamos a utilizar una declaracion de este tipo: [code:1qfyvw00]function main&#40;&#41; local oBrw &#46;&#46;&#46;[/code:1qfyvw00] Al momento de enviar oBrw como dato en una funcion se la debe pasar como [i:1qfyvw00][b:1qfyvw00]referencia.[/b:1qfyvw00][/i:1qfyvw00] [code:1qfyvw00]oDlg&#58;= CrearBrowser&#40; @oBrw &#41;[/code:1qfyvw00] En cambio, cuando se utiliza un array de esa variable: [code:1qfyvw00]function main&#40;&#41; local oBrw&#58;= array&#40; 01 &#41; &#46;&#46;&#46;[/code:1qfyvw00] Al momento de enviar oBrw como dato en una funcion la cual crea el browser, tenemos que enviarlo asi: [code:1qfyvw00]oDlg&#58;= CrearBrowser&#40; oBrw &#41;[/code:1qfyvw00] Alguien podría explicarme porque? Gracias.
Class: 'NIL' has no exported
Es muy simple. Por que , un array, SIEMPRE es pasado por referencia <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> Ah!!! ¿ como se te quedo el cuerpo? ....jejeje
Class: 'NIL' has no exported method: GOUP
Tengo un problema con todas mis aplicaciones, ya que de manera esporadica me dan este error, no lo hacen todo el tiempo. Y el caso es que no hago uso de barras de Scroll, en los sitios donde me aparece. Estoy haciendo uso de FWH 2.6 con xHarbour 0.99.2 bajo XP [quote:2qfrj15b]Application =========== Path and name: C:\Proyectos\CellSQL\CellSQL.exe (32 bits) Size: 2,224,128 bytes Time from start: 0 hours 0 mins 9 secs Error occurred at: 28/09/2007, 11:45:22 Error description: Error BASE/1004 Class: 'NIL' has no exported method: GOUP Args: Stack Calls =========== Called from GOUP(0) Called from TMDICLIENT:HSCROLL(0) Called from TMDICLIENT:HANDLEEVENT(0) Called from _FWH(0) Called from WINRUN(0) Called from TMDIFRAME:ACTIVATE(0) Called from MAIN(130) System ====== CPU type: Pentium IV 800 Mhz Hardware memory: 504 megs Free System resources: 0 % GDI resources: 0 % User resources: 0 % Compiler version: xHarbour build 0.99.2 Intl. (SimpLex) Windows version: 5.1, Build 2600 Service Pack 2 Windows total applications running: 34 1 2 TF_FloatingLangBar_WndTitle 3 CiceroUIWndFrame 4 M 5 Default IME 6 Start Menu 7 Sistema administracion de celulares (Mi Empresa) 8 Crimson Editor - [C:\Proyectos\CellSQL\Prg\Inv_Mov.prg] 9 WOWExec 10 MySQL System Tray Monitor 11 MCI command handling window 12 HiddenFaxWindow 13 DDE Server Window 14 a0c 15 Connections Tray 16 HsmActionImpl sink window 17 TouchPad object helper window 18 avast! UI Control Window 19 aswDisp helper window 20 PersistWndName 21 HkWndName 22 Touchpad driver tray icon window 23 HelperMsgListenerWnd 24 Power Meter 25 MS_WebcheckMonitor 26 Registry Monitor 27 Touchpad driver backward compatibility window 28 Touchpad driver helper window 29 SigmatelSysTray 30 AutoImport Window 31 BCMWLTRY Windows Application 32 NICCONFIGSVC 33 aswServ helper window 34 Program Manager Variables in use ================ Procedure Type Value ========================== GOUP TMDICLIENT:HSCROLL Param 1: N 0 Param 2: N 0 Local 1: O Class: TMDICLIENT Local 2: N 0 Local 3: N 0 Local 4: N 0 TMDICLIENT:HANDLEEVENT Param 1: N 276 Param 2: N 0 Param 3: N 0 _FWH Param 1: N 0 Param 2: N 276 Param 3: N 0 Param 4: N 0 Param 5: N 2 Local 1: O Class: TMDICLIENT WINRUN Param 1: N 1115076 TMDIFRAME:ACTIVATE Param 1: C "MAXIMIZED" Param 2: U Param 3: U Param 4: U Param 5: U Param 6: U Param 7: U Param 8: U Param 9: U Param 10: U Param 11: U Param 12: U Param 13: U Param 14: U Param 15: U Param 16: U Param 17: B {|| ... } Param 18: U Param 19: U Local 1: O Class: TMDIFRAME Local 2: U Local 3: U MAIN Local 1: O Class: TICON Local 2: O Class: TBITMAP Local 3: N 1024 Local 4: N 768 Local 5: O Class: TINI Local 6: O Class: TBAR Local 7: C "Mi Empresa" Local 8: O Class: TMYDSN Local 9: C "MySQL" Local 10: C "root" Local 11: C "max" Local 12: L .T. Local 13: L .T. Local 14: U Local 15: C "WinCont - FcsOdbc" Local 16: C "Localhost" Local 17: N 3306 Local 18: C "" Local 19: C "" Local 20: N 3 Linked RDDs =========== DBF DBFDBT DBFNTX DBFCDX DataBases in use ================ Classes in use: =============== 1 HBCLASS 2 HBOBJECT 3 TMYAPP 4 TMYDSN 5 TMYODBC 6 TINI 7 TWINDOW 8 TCONTROL 9 TICON 10 TBRUSH 11 TDIALOG 12 TBTNBMP 13 TGET 14 GET 15 TCLIPGET 16 TSAY 17 TFONT 18 TMYSELECT 19 TMDIFRAME 20 TMENU 21 TMENUITEM 22 TACCTABLE 23 TMDICLIENT 24 TBITMAP 25 TBAR 26 TRECT 27 ERROR[/quote:2qfrj15b]
Class: 'NIL' has no exported method: GOUP
Añade esta línea en la clase TMdiClient: METHOD HScroll() VIRTUAL
Class: 'NIL' has no exported method: GOUP
Antonio gracias por tu tiempo. [quote:12i30usd]Añade esta línea en la clase TMdiClient: METHOD HScroll() VIRTUAL[/quote:12i30usd] Mira estos son mis primeros pasos con FiveWin, y por favor dime como hago para hacer lo que sugieres, que pasos debo seguir para lograr el modificar la clase TMdiClient.
Class: 'NIL' has no exported method: GOUP
Error description: Error BASE/1004 Class: 'NIL' has no exported method: GOUP Hola... Tines algun GROUP em tu VENTANA PRINCIPAL? ComO cierras la SALIDA de tu VENTANA PRINCIPAL? Muestra la SALIDA. ACTIVATE WINDOW oWnd.. .... .... ... RETURN NIL
Class: 'NIL' has no exported method: GOUP
Joao Gracias. No, no es acerca de GROUP Es acerca de un error referente a GoUp(), perteneciente a Scrollbar. EL Problema es que en donde aparce el error no hay ninguna definida; desde mi codigo claro esta. Gracias Mil Saludos desde Honduras
Class: 'NIL' has no exported method: GOUP
Modifica source\classes\mdiclient.prg y añade esta línea antes del ENDCLASS: METHOD HScroll() VIRTUAL Luego compila ese PRG y enlázalo como si fuese un PRG más de tu aplicación
Class: 'NIL' has no exported method: GOUP
Gracias Mil Antonio Funciono. Por cierto como lo describi antes, estoy usando la libreria FWH 2.06, al actualizarme a la 7.09 tendria que seguir en este cambio, o lo omito? Saludos desde Honduras <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Class: 'NIL' has no exported method: GOUP
Al actualizarte a la versión 7.09 ese cambio no te hará falta
ClassGriaule.zip
[quote="Lailton":16fqqop9]Hi Marca, I told you, The solution is not so simple and ActiveX is not a good way to take. Few years ago I did a procedure in C/C++ to work with it. I sent you a demo my procedures, and How you see it works.[/quote:16fqqop9] Hello Lailton. The example that u sent me only activates the player and that I can do. My problem is in the comparison of templates. they all have the same value. I believe in your solution that has been corrected what I'm trying to solve is that with the personal help forum here without having to pay for it understood? If I can not have to look for something like your solution.
ClassGriaule.zip
Good afternoon Someone could use this class? If so can you give me an example? <!-- m --><a class="postlink" href="https://bitbucket.org/fivetech/fivewin-contributions/downloads/ClassGriaule.zip">https://bitbucket.org/fivetech/fivewin- ... riaule.zip</a><!-- m -->
ClassGriaule.zip
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/search.php?st=0&sk=t&sd=d&sid=0&keywords=griaule">search.php?st=0&sk=t&sd=d&sid=0&keywords=griaule</a><!-- l -->
ClassGriaule.zip
Antonio thank you, WHAT more could realize is that no one managed to work I could not run more le my way player no FS-80 Reader
ClassGriaule.zip
[quote="Antonio Linares":3vixtdzz]http://forums.fivetechsupport.com/search.php?st=0&sk=t&sd=d&sid=0&keywords=griaule[/quote:3vixtdzz] Good morning everyone. Linares, I've seen all these topics and 95% of them use ActiveX to make the connection and not the class that I mention above and examples that attempt to use the class are in error. I could already compile and make the class work and I can not operate the player with it. With the ActiveX class triggers more time to make the comparison of the images does not make right. With this class there is some trick to make the reader start? Is there any way to configure the reader? My player is the FS-80
ClassGriaule.zip
This class did not work at all.
ClassGriaule.zip
[quote="lucasdebeltran":2hf61d0o]This class did not work at all.[/quote:2hf61d0o] Using the class if you want to start with the player. Already using activex as below starts over recorded digital comparing error in the bank to read the player. Could someone please help? #include "FiveWin.ch" STATIC oWnd STATIC ttptSize STATIC ttpt FUNCTION Main() Local oFingerX public x:=0 cStatus:= Space(1000) DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support" oFingerX = TActiveX():New( oWnd, "GrFingerX.GrFingerXCtrl") oWnd:oClient = oFingerX oFingerX:Do("Initialize") oFingerX:Do("CapInitialize") oFingerX:bOnEvent = { | event, aParams, pParams | EventInfo( event, aParams, pParams, oFingerX) } ACTIVATE WINDOW oWnd VALID SalirHuella(oFingerX) RETURN NIL FUNCTION SalirHuella(oFingerX) oFingerX:Do("CapStopCapture",sensor) oFingerX:Do("CapFinalize") oFingerX:Do("Finalize") RETURN ( .T. ) FUNCTION EventInfo( event, aParams, pParams, oFingerX ) Local cEvent cEvent := cValToChar( event ) IF cEvent == "SensorPlug" .and. aParams[1] != "File" public sensor:=aParams[1] --->>>>here starta oFingerX:Do("CapStartCapture",sensor) ENDIF IF cEvent == "SensorUnplug" oFingerX:Do("CapStopCapture",sensor) ENDIF IF cEvent == "ImageAcquired" xLib:= LoadLibrary("GrFinger.dll") GrInitialize() ttptSize = 10000 ttpt = SPACE(10000) ret:= GrExtract( aParams[ 4], aParams[ 2], aParams[ 3], aParams[ 5], @ttpt, @ttptSize, 0 ) msginfo(ttpt, "dados") if (x==0) public cAntes:=ttpt public x:=1 else -----> Here error is always digital regardless of whatever nIdScore:= 0 nId:= GrVerify( ttpt , cAntes, @nIdScore , 0 ) public cAntes:=ttpt oWnd:cTitle(Time()+" "+Str(ret)+" "+Str(nId)+" "+Str(nIdScore)) endif GrFinalize() FreeLibrary(xLib) ENDIF RETURN NIL DLL32 FUNCTION GrInitialize() AS LONG PASCAL FROM "_GrInitialize@0" LIB xLib DLL32 FUNCTION GrFinalize() AS LONG PASCAL FROM "_GrFinalize@0" LIB xLib DLL32 FUNCTION GrExtract( rawImage AS LONG, width AS LONG, height AS LONG, res AS LONG, ttpt AS LPSTR, @ttptSize AS LONG , context AS LONG ) AS LONG PASCAL FROM "_GrExtract@28" LIB xLib DLL32 FUNCTION GrIdentifyPrepare( ttpt AS LPSTR, context AS LONG ) AS LONG PASCAL FROM "_GrIdentifyPrepare@8" LIB xLib DLL32 FUNCTION GrIdentify( ttpt AS LPSTR, @Idscore AS LONG, context AS LONG ) AS LONG PASCAL FROM "_GrIdentify@12" LIB xLib DLL32 FUNCTION GrVerify( ttpt AS LPSTR, qtpt AS LPSTR, @Idscore AS LONG, context AS LONG ) AS LONG PASCAL FROM "_GrVerify@16" LIB xLib you know how to do this in class ?? oFingerX class: From ( "CapStartCapture" sensor)
ClassGriaule.zip
[quote="Antonio Linares":1kaasi9m]Marcelo, [quote:1kaasi9m]you know how to do this in class ?? oFingerX class: From ( "CapStartCapture" sensor)[/quote:1kaasi9m] I don't understand your question[/quote:1kaasi9m] I'm trying to use the Test.prg source class ClassGriaule.zip and my player does not start cSensor := "" oGriaulle := TGrFinger():New() //cSensor := oGriaulle:GetSensor("Ftrn0001") ?????? oGriaulle:Initialize() oEnrollCtx := oGriaulle:CreateContext() oSearchCtx := oGriaulle:GetContext(0) // default context oGriaulle:bSensorPlug := {|oSensor,cId| OnSensorPlug( oSensor , cId ) } oGriaulle:bSensorUnplug := {|oSensor,cId| OnSensorUnPlug( oSensor , cId ) } oEnrollCtx:StartEnroll() oGriaulle:CaptureInit() whereas using activex this is where the reader will flash asking digital FUNCTION EventInfo( event, aParams, pParams, oFingerX ) oFingerX:Do("CapStartCapture","Ftrn0001") How do to trigger the reader more at source test.prg from class ClassGriaule.zip ?
ClassGriaule.zip
Marcelo, [quote:2x8bst2u]you know how to do this in class ?? oFingerX class: From ( "CapStartCapture" sensor)[/quote:2x8bst2u] I don't understand your question
ClassGriaule.zip
As I told you, in the past i tried the class. I could compile it, start the object, but functions to save the capture and compare do not work at all.
ClassGriaule.zip
Hello everybody, descupem me for more precise insistence solve it. Anyone know the creator of the class ClassGriaule ?
ClassGriaule.zip
Disappointingly. For several other languages ??have demos and there are several options with which to xHarbour nothing