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://img194.imageshack.us/img194/382/screenshot20120316at112.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://www.youtube.com/watch?v=zKJkKNvZ8TM&context=C4badf6cADvjVQa1PpcFMO0DaQqiHEzeUJ8zskvEbo7V-Hv00yuY0=[/url:2ahrs9zc] |
Class TScintilla and IntelliSense support | Changing colors in Class TScintilla:
[url:3388f9lr]http://www.youtube.com/watch?v=NYPVx1oibH4&context=C4badf6cADvjVQa1PpcFMO0DaQqiHEzeUJ8zskvEbo7V-Hv00yuY0=[/url:3388f9lr] |
Class TScintilla and IntelliSense support | Using different types of files:
[url:3qm134pv]http://www.youtube.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://code.google.com/p/fivewin-contributions/downloads/detail?name=scintila_8.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://img100.imageshack.us/img100/8459/capturemgi.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://code.google.com/p/fivewin-contributions/downloads/detail?name=scintila_1.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://code.google.com/p/fivewin-contributions/downloads/detail?name=scintila_2.zip&can=2&q=[/url:1yze3k0h]
[img:1yze3k0h]http://img52.imageshack.us/img52/2991/captureorj.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 /> ::<span style="color: #000000;">SendEditor</span><span style="color: #000000;">(</span> SCI_SETKEYWORDS, <span style="color: #000000;">1</span>,;<br /> <span style="color: #ff0000;">"local public static private "</span> + ;<br /> <span style="color: #ff0000;">"if else endif "</span> + ;<br /> <span style="color: #ff0000;">"do while endwhile end "</span> + ;<br /> <span style="color: #ff0000;">"do case otherwise endcase "</span> <span style="color: #000000;">)</span> <br /><br /> ::<span style="color: #000000;">SetAStyle</span><span style="color: #000000;">(</span> SCE_FS_KEYWORD2, CLR_HCYAN <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">SendEditor</span><span style="color: #000000;">(</span> SCI_STYLESETBACK, SCE_FS_KEYWORD2, GetSysColor<span style="color: #000000;">(</span> COLOR_WINDOW <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </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://code.google.com/p/fivewin-contributions/downloads/detail?name=scintila_3.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://img692.imageshack.us/img692/2016/capturefjb.png[/img:2027kbmc] |
Class TScintilla for FWH first tests | New test, dialog GoTo Line already implemented:
[url:3hvlcmgk]http://code.google.com/p/fivewin-contributions/downloads/detail?name=scintila_4.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://img28.imageshack.us/img28/6039/capturendg.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://img405.imageshack.us/img405/1751/capturenlf.png[/img:2n0yph86]
You may download it from (EXE and full source code included):
[url:2n0yph86]http://code.google.com/p/fivewin-contributions/downloads/detail?name=scintila_6.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;">(</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;">)</span> CONSTRUCTOR<br /> <br /> <br /> <span style="color: #00C800;">METHOD</span> GO_DETAY_Ekle<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> GO_DETAY<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> GO_SIL<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> GO_BUL<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ....<br /> ....<br /> ....<br /> <br /> <span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">(</span><span style="color: #000000;">)</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;">[</span><span style="color: #0000ff;">OF</span> <oWnd><span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> CERCEVEID <cCerID> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> UDATA <uData> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #00C800;">DATA</span> <oData> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <cols: <span style="color: #000000;">COLS</span>, COLUMNS> <aMyCols,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <head:<span style="color: #000000;">HEAD</span>,HEADER,HEADERS> <aHeaders,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> BUTTONYERI <cButtonPlace> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> SART <cSART> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> ARANAN <cARANAN> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> ORDER <nOrd> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <buttons:<span style="color: #0000ff;">BUTTON</span>, BUTTONS> <aButtons,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <rela:<span style="color: #000000;">RELATION</span>, RELATIONS> <aRelations,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <opt:<span style="color: #000000;">OPTION</span>, OPTIONS> <aOptions,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> ESASISIM <cEsas_Isim> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> EXTRASART <Ex_SART> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> CARGO <uCargo> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> ONSILKONTROL <cSilKontrol> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> ONBODY <cOnBody> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <aramavar: <span style="color: #000000;">ARAMAVAR</span>> <aAramaVar,...><span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lineno: <span style="color: #000000;">LINENO</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> EXTRABUTTON CAPTION <Ex_BCaption> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> EXTRABUTTON BITMAP <Ex_BBitmap> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">TITLE</span> <cTitle> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> APPLICATION <oApplication> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> BROWSE <span style="color: #0000ff;">FONT</span> <oFont_Brw> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <span style="color: #00C800;">EDIT</span> <span style="color: #0000ff;">FONT</span> <oFont_Edit> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> PARENT <oParent> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <ldontExit: <span style="color: #000000;">DONTEXIT</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> STARTUP <aStartUp><span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> OZELYETKI <bOzelYetki><span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> ONLOCKED <bOnLocked><span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> ONLOCKED_VAR <cOnLocked><span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lDesc: <span style="color: #000000;">DESCENDING</span>> <span style="color: #000000;">]</span> ; <br /> <span style="color: #000000;">[</span> <lMulti: <span style="color: #000000;">MULTISELECT</span>> <span style="color: #000000;">]</span> ; <br /> <span style="color: #000000;">[</span> PREFIX_SIL <cPrefix_Sil> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <KONTROL> <aKontrols,...> <span style="color: #000000;">]</span> ;<br /> => ;<br /> <oOb_Brw> := TYK_List<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><<span style="color: #000000;">(</span>oOb_Brw<span style="color: #000000;">)</span>>, <cCerID>, <uData>, ;<br /> <span style="color: #000000;">[</span>\<span style="color: #000000;">{</span><aMyCols>\<span style="color: #000000;">}</span><span style="color: #000000;">]</span>,;<br /> <span style="color: #000000;">[</span>\<span style="color: #000000;">{</span><aHeaders>\<span style="color: #000000;">}</span><span style="color: #000000;">]</span>,;<br /> <span style="color: #000000;">[</span><cButtonPlace><span style="color: #000000;">]</span>,<span style="color: #000000;">[</span><cSART><span style="color: #000000;">]</span>,<span style="color: #000000;">[</span><cARANAN><span style="color: #000000;">]</span>,<span style="color: #000000;">[</span><nOrd><span style="color: #000000;">]</span>,;<br /> <span style="color: #000000;">[</span><aButtons><span style="color: #000000;">]</span>,<span style="color: #000000;">[</span>\<span style="color: #000000;">{</span><aRelations>\<span style="color: #000000;">}</span><span style="color: #000000;">]</span>,<span style="color: #000000;">[</span><aOptions><span style="color: #000000;">]</span>,<span style="color: #000000;">[</span><cEsas_Isim><span style="color: #000000;">]</span>,;<br /> <span style="color: #000000;">[</span><Ex_SART><span style="color: #000000;">]</span>,<span style="color: #000000;">[</span><uCargo><span style="color: #000000;">]</span>,<cSilKontrol>,<cOnBody>,<span style="color: #000000;">[</span><aAramaVar><span style="color: #000000;">]</span>, ;<br /> <oData>, <.lineno.>, <span style="color: #000000;">[</span><Ex_BCaption><span style="color: #000000;">]</span>, <oApplication>,;<br /> <span style="color: #000000;">[</span><oFont_Brw><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><oFont_Edit><span style="color: #000000;">]</span>, <.ldontExit.>, <aStartUp>, <bOzelYetki>, ;<br /> <bOnLocked>, <cOnLocked>, <.lDesc.>, <.lMulti.>, <span style="color: #000000;">[</span><oWnd><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><oParent><span style="color: #000000;">]</span>,;<br /> <span style="color: #000000;">[</span><cPrefix_Sil><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span>\<span style="color: #000000;">{</span><aKontrols>\<span style="color: #000000;">}</span><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><cTitle><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><Ex_BBitmap><span style="color: #000000;">]</span> <span style="color: #000000;">)</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;">[</span>SUBCLASS <cClass><span style="color: #000000;">]</span> => ;<br /> <o> := HB_ExecFromArray<span style="color: #000000;">(</span> IfNil<span style="color: #000000;">(</span> <cClass>, <span style="color: #ff0000;">"TYK_LIST"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <n> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #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;">(</span><span style="color: #000000;">)</span>, o1:<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, o2:<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, o3:<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><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://imageshack.com/i/pnbk3bzop:1s6c4oo6][img:1s6c4oo6]https://imagizer.imageshack.com/v2/xq90/923/bk3bzo.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 ()
Local oTest := Nil
oTest := Test () : New ()
Return .T.
Class Test
Data oWnd
Data oGet1
Data cGet1 Init Space (10)
Method New ()
Method ReadTest ()
Method ShowTest ()
EndClass
Method New () Class Test
Define Window ::oWnd Title 'Class Test'
@ 10, 10 Button 'Ok' Size 60, 20 Pixel Action ::ReadTest ()
Activate Window ::oWnd
Return Self
Method ReadTest () Class Test
@ 40, 10 Get ::oGet1 Var ::cGet1 Size 100, 20 Pixel On Change ::ShowTest () Of ::oWnd // this generate error message not found TGET:SHOWTEST
@ 70, 10 Button 'Ok' Size 60, 20 Pixel Action MsgInfo (Str (::oGet1 : nPos))
Return .T.
Method ShowTest () Class Test
MsgInfo (Str (::oGet1 : nPos))
Return .T.
[/code:19levqht] |
Class method | Hello,
Can you try
[code:1kx7npal]
...
::oGet1:bChange := {|| ::ShowTest() }
...[/code:1kx7npal]
Regards. |
Class method | Pawel,
Besides Carles solution, you may do:
[code:1jyy3dik]
Method ReadTest () Class Test
local oThis := Self
@ 40, 10 Get ::oGet1 Var ::cGet1 Size 100, 20 Pixel On Change oThis:ShowTest () Of ::oWnd
@ 70, 10 Button 'Ok' Size 60, 20 Pixel Action MsgInfo (Str (::oGet1 : nPos))
Return .T.
[/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;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> oSyntax<br /> oSyntax:= TSyntax<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">(</span><span style="color: #000000;">)</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;">(</span> oSyntax:<span style="color: #000000;">fname</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">msgInfo</span><span style="color: #000000;">(</span> oSyntax:<span style="color: #000000;">lname</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">msgInfo</span><span style="color: #000000;">(</span> oSyntax:<span style="color: #000000;">cAlias</span><span style="color: #000000;">)</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;">(</span><span style="color: #000000;">)</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;">(</span><span style="color: #000000;">)</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> Scope violation <span style="color: #000000;">(</span>hidden<span style="color: #000000;">)</span>: <span style="color: #000000;">TSYNTAX</span>:_FNAME<br />Error BASE/<span style="color: #000000;">42</span> Scope violation <span style="color: #000000;">(</span><span style="color: #00C800;">protected</span><span style="color: #000000;">)</span>: <span style="color: #000000;">TSYNTAX</span>:_LNAME<br />Error BASE/<span style="color: #000000;">42</span> Scope violation <span style="color: #000000;">(</span><span style="color: #00C800;">protected</span><span style="color: #000000;">)</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;">(</span> cFile, xColumnas, nHojaExcel, nFilasVacias, lConvertNulls <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">LOCAL</span> oExcel, oPage<br /><span style="color: #00C800;">LOCAL</span> aDatos := <span style="color: #000000;">{</span><span style="color: #000000;">}</span>, aLinea := <span style="color: #000000;">{</span><span style="color: #000000;">}</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;">(</span> cFile <span style="color: #000000;">)</span><br />MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No existe el documento Excel "</span> + cFile<span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">TRY</span><br />oExcel := GetActiveObject<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Excel.Application"</span> <span style="color: #000000;">)</span><br />CATCH<br /><span style="color: #00C800;">TRY</span><br />oExcel := CreateObject<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Excel.Application"</span> <span style="color: #000000;">)</span><br />CATCH<br /><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Excel no disponible. ["</span> + Ole2TxtError<span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">"]"</span> <span style="color: #000000;">)</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;">(</span> cFile <span style="color: #000000;">)</span><br />oPage := oExcel:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">(</span> nHojaExcel <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">If</span> ValType<span style="color: #000000;">(</span>xColumnas<span style="color: #000000;">)</span>=<span style="color: #ff0000;">"A"</span><br />nFilas:=xColumnas<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br />nColumnas:=xColumnas<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</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;">(</span> <span style="color: #ff0000;">"Leyendo datos de Hoja Excel"</span>,,<span style="color: #ff0000;">"Excel"</span> <span style="color: #000000;">)</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;">{</span><span style="color: #000000;">}</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;">(</span> aLinea, <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>lConvertNulls .And. oPage:<span style="color: #000000;">Cells</span><span style="color: #000000;">(</span> nLine, nCol <span style="color: #000000;">)</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;">(</span> nLine, nCol <span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">IF</span> lVacio .AND. !Vacio<span style="color: #000000;">(</span> aLinea<span style="color: #000000;">[</span> Len<span style="color: #000000;">(</span> aLinea <span style="color: #000000;">)</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</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;">(</span> aDatos, aLinea <span style="color: #000000;">)</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;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> aDatos<br /> </div>[/code:1vyg94ay]
|
Class to read / write Excel | [url:1mukiog7]http://forums.fivetechsupport.com/viewtopic.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;">(</span><span style="color: #ff0000;">"ADODB.Connection"</span><span style="color: #000000;">)</span><br />cn.Open <span style="color: #ff0000;">"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="</span> & filename & _<br /> <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;">(</span><span style="color: #ff0000;">"ADODB.Recordset"</span><span style="color: #000000;">)</span><br />rs.Open query, cn, adOpenStatic, adLockOptimistic<br /><br />rs.AddNew<br />rs<span style="color: #000000;">(</span><span style="color: #ff0000;">"First"</span><span style="color: #000000;">)</span> = <span style="color: #ff0000;">"George"</span><br />rs<span style="color: #000000;">(</span><span style="color: #ff0000;">"Last"</span><span style="color: #000000;">)</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 /> WScript.Echo rs.Fields<span style="color: #000000;">(</span><span style="color: #ff0000;">"First"</span><span style="color: #000000;">)</span> & <span style="color: #ff0000;">" "</span> & rs.Fields<span style="color: #000000;">(</span><span style="color: #ff0000;">"Last"</span><span style="color: #000000;">)</span><br /> 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://github.com/harbour/core/blob/ma%20...%20xlsxml.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;">(</span> <span style="color: #ff0000;">"CDO.Configuration"</span> <span style="color: #000000;">)</span><br />WITH OBJECT oMailer:<span style="color: #000000;">oEmailCfg</span>:<span style="color: #000000;">Fields</span><br /> :<span style="color: #000000;">Item</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserver"</span> <span style="color: #000000;">)</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;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserverport"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">465</span><br /> :<span style="color: #000000;">Item</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusing"</span> <span style="color: #000000;">)</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;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := .T.<br /> :<span style="color: #000000;">Item</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpusessl"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := .T.<br /> :<span style="color: #000000;">Item</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusername"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := oMailer:<span style="color: #000000;">cSendMailId</span> <span style="color: #B900B9;">// Gmail A/c ID</span><br /> :<span style="color: #000000;">Item</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendpassword"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := oMailer:<span style="color: #000000;">cSendMailIdPass</span> <span style="color: #B900B9;">// Password</span><br /> :<span style="color: #000000;">Item</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">30</span><br /> :<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />END WITH<br /><br />oEmailMsg := CREATEOBJECT <span style="color: #000000;">(</span> <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">)</span><br />WITH OBJECT oEmailMsg<br /> :<span style="color: #000000;">Configuration</span> = oMailer:<span style="color: #000000;">oEmailCfg</span><br /> :<span style="color: #0000ff;">From</span> = chr<span style="color: #000000;">(</span><span style="color: #000000;">34</span><span style="color: #000000;">)</span>+<span style="color: #ff0000;">" "</span>+oMailer:<span style="color: #000000;">cFromName</span>+<span style="color: #ff0000;">" "</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">34</span><span style="color: #000000;">)</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 /> :<span style="color: #0000ff;">To</span> = cToEmailId <span style="color: #B900B9;">// To Email ID</span><br /> :<span style="color: #000000;">BCC</span> = cBcc <span style="color: #B900B9;">// BCC Id</span><br /> :<span style="color: #0000ff;">Subject</span> = oMailer:<span style="color: #000000;">cSubject</span><br /> :<span style="color: #000000;">Send</span><span style="color: #000000;">(</span><span style="color: #000000;">)</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;">(</span> <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">)</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;">(</span><span style="color: #000000;">34</span><span style="color: #000000;">)</span>+<span style="color: #ff0000;">" "</span>+cFromName+<span style="color: #ff0000;">" "</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">34</span><span style="color: #000000;">)</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 /> :<span style="color: #0000ff;">To</span> = cToEmailId <span style="color: #B900B9;">// To Email ID</span><br /> :<span style="color: #000000;">BCC</span> = cBcc <span style="color: #B900B9;">// BCC Id</span><br /> :<span style="color: #0000ff;">Subject</span> = cSubject<br /> :<span style="color: #000000;">AddAttachment</span><span style="color: #000000;">(</span>cAttachment<span style="color: #000000;">)</span> <span style="color: #B900B9;">// Add attachment "c:\LCd Projector.txt"</span><br /> :<span style="color: #000000;">Send</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />END WITH<br /> </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;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"</span><span style="color: #000000;">)</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;">(</span><span style="color: #000000;">)</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;">(</span><span style="color: #ff0000;">"I am going to Send Message"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">TRY</span><br /> oEmailCfg := CREATEOBJECT<span style="color: #000000;">(</span> <span style="color: #ff0000;">"CDO.Configuration"</span> <span style="color: #000000;">)</span><br /> WITH OBJECT oEmailCfg:<span style="color: #000000;">Fields</span><br /> :<span style="color: #000000;">Item</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserver"</span> <span style="color: #000000;">)</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;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserverport"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">465</span><br /> :<span style="color: #000000;">Item</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusing"</span> <span style="color: #000000;">)</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;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := .T.<br /> :<span style="color: #000000;">Item</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpusessl"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := .T.<br /> :<span style="color: #000000;">Item</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusername"</span> <span style="color: #000000;">)</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;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendpassword"</span> <span style="color: #000000;">)</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;">(</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">30</span><br /> :<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END WITH<br />CATCH oError<br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</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;">(</span>oError:<span style="color: #000000;">GenCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">";"</span> + ;<br /> <span style="color: #ff0000;">"SubC: "</span> + TRANSFORM<span style="color: #000000;">(</span>oError:<span style="color: #000000;">SubCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">";"</span> + ;<br /> <span style="color: #ff0000;">"OSCode: "</span> + TRANSFORM<span style="color: #000000;">(</span>oError:<span style="color: #000000;">OsCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">";"</span> + ;<br /> <span style="color: #ff0000;">"SubSystem: "</span> + TRANSFORM<span style="color: #000000;">(</span>oError:<span style="color: #000000;">SubSystem</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">";"</span> + ;<br /> <span style="color: #ff0000;">"Message: "</span> + oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">)</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;">(</span> <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">)</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;">(</span><span style="color: #000000;">34</span><span style="color: #000000;">)</span>+<span style="color: #ff0000;">"Anser Test "</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">34</span><span style="color: #000000;">)</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;">(</span><span style="color: #000000;">)</span><br />CATCH oError<br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</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;">(</span>oError:<span style="color: #000000;">GenCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">";"</span> + CRLF+;<br /> <span style="color: #ff0000;">"SubC: "</span> + TRANSFORM<span style="color: #000000;">(</span>oError:<span style="color: #000000;">SubCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">";"</span> + CRLF+ ;<br /> <span style="color: #ff0000;">"OSCode: "</span>+ TRANSFORM<span style="color: #000000;">(</span>oError:<span style="color: #000000;">OsCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">";"</span> + CRLF +;<br /> <span style="color: #ff0000;">"SubSystem: "</span> + TRANSFORM<span style="color: #000000;">(</span>oError:<span style="color: #000000;">SubSystem</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">)</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;">)</span><br />END<br /><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Reached the end of the code"</span><span style="color: #000000;">)</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://msdn.microsoft.com/en-us/library/ms526453(EXCHG.10).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;">(</span><span style="color: #ff0000;">"CDO.Message"</span><span style="color: #000000;">)</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;">(</span><span style="color: #ff0000;">"IDataSource"</span><span style="color: #000000;">)</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;">(</span><span style="color: #ff0000;">"IBodyPart"</span><span style="color: #000000;">)</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:= oDlgEnlace( oBrw, oTextos, oBtns, oBmp, oFuentes )
//----------( Acción del botón )----------
ACTIVATE DIALOG oDlg CENTERED ON init (;
oBrw: SetFocus(),;
oBrw: ResetBarPos(),;
oBrw: UpStable(),;
oBrw: Reset(),;
oBrw: Refresh(),;
oBrw: gobottom(),;
BuildTimer( IF ( aConfiguracion[ 01 ] < 17, 0x64, 0xB4 ),;
aConfiguracion, aProductos, aSurtidores, aSetVars, oDlg );
)
DBCloseAll()
AEval( oFuentes, { | aFuentes | aFuentes:END( ) } )
RETURN ( NIL )
//------------------------------------------------------------------------------
STATIC FUNCTION BuildTimer( nComando, aConfiguracion, aProductos, aSurtidores, aSetVars, oDlg )
MEMVAR oTimer
DEFINE Timer oTimer Interval Val( aSetVars[ 03 ] );
Action ( NuevasCargas( nComando, aConfiguracion, aProductos, aSurtidores, aSetVars ) ) OF oDlg
ACTIVATE timer oTimer
RETURN ( NIL )
//------------------------------------------------------------------------------[/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:= oDlgEnlace( oBrw, oTextos, oBtns, oBmp, oFuentes)[/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()
local oBrw
...[/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:= CrearBrowser( @oBrw )[/code:1qfyvw00]
En cambio, cuando se utiliza un array de esa variable:
[code:1qfyvw00]function main()
local oBrw:= array( 01 )
...[/code:1qfyvw00]
Al momento de enviar oBrw como dato en una funcion la cual crea el browser, tenemos que enviarlo asi:
[code:1qfyvw00]oDlg:= CrearBrowser( oBrw )[/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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.