topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
Behaviour of GET on TMDIChild differs from TDialog
|
ok,
thanks for your explanation.
Another question regarding units:
What units uses a resource editor (ex. pelles) ?
When design a resource, must we keep in mind if it will be placed on a Dialog or Window ?
Thanks
Josep
|
Behaviour of GET on TMDIChild differs from TDialog
|
Josep,
Resources editors, as the one provided in PellesC or the Borland Resources Workshop, always use dialog units. Those editors only allow to design dialogboxes, not windows.
To place a control on a window we usually use:
@ nRow, nCol <CONTROL_NAME> ... OF <Container_Window> SIZE nWidth, nHeight [ PIXEL ]
nRow and nCol are the position coordinates. If you use the PIXEL clause then FiveWin will use pixels, instead of a simulation of text characters locations.
nWidth and nHeight are the dimensions of the controls, always in PIXELs.
|
Behaviour of GET on TMDIChild differs from TDialog
|
ok,
then wich is the recomended procedure to work in a MDI environment ?
All seems that I must use dialogs to build my interface, but in a MDI I have TMDIChild windows.
If I build a form in a resorce editor and then (via REDEFINE) placed the objects in a window, they will look half size, GETs don't have 3D look, etc
I tried to put a TDialog object as oClient of TMDIChild and the dialog inherits the behaviour of window.
The difference between dialog and window is a new concept for me and need some time to learn.
Thanks
Josep
|
Behaviour of GETs when editing text
|
It seems that if a GET has text in it and you want to edit it the text always gets added to the end or the beginning regardless of whether or not you have double clicked the mouse to a desired insertion point or blocked part or all of the test to overwrite / replace.
This can be seen with testdlg.prg if you initialise cAddress to some value, for example:
local cAddress := "My Address "
rather than set it to SPACE(20).
I note also that I have received the following warning which may or may not be related to the above problem:
(<unknown>:26188): Gtk-WARNING **: GtkEntry - did not receive focus-out-event. If you
connect a handler to this signal, it must return
FALSE so the entry gets the event as well
Didn't notice that from my code but did from testdlg.prg with initialised cAddress,
|
Behaviour of GETs when editing text
|
Doug,
Here it works fine though sometimes you have to click twice in between the GET. In this sample I have inserted "xbase" in between "Hello world!":
[url=http://imageshack.us:3mkr880u][img:3mkr880u]http://img471.imageshack.us/img471/699/screenshot1ya3.png[/img:3mkr880u][/url:3mkr880u]
>
(<unknown>:26188): Gtk-WARNING **: GtkEntry - did not receive focus-out-event. If you connect a handler to this signal, it must return FALSE so the entry gets the event as well
>
Yes, I have seen it, though it does not happens always. The function is returning FALSE as required. It may be a GTK issue (?)
|
Behaviour of GETs when editing text
|
Antonio
I can get characters to insert into a GET but ONLY if I use the arrow keys to navigate through the GET text. Clicking the mouse moves the mouse pointer to the desired position in the GET text but that's not where the text gets put. It looks as if the the get object isn't getting or isn't handling the mouse click correctly.
Would you please look into this? Are you getting the same result? I really need a fix as it makes data entry too time consuming.
As you know I am running on Ubuntu Workstation 7.04 with the latest FiveLinux libraries you sent me and I have updated Ubuntu with all the latest patches.
Thanks
Doug
|
Behaviour of GETs when editing text
|
Doug,
Have you tried clicking twice ? Here it works ok if clicked twice
|
Behaviour of GETs when editing text
|
I have tried double clicking but that marks the word as a block - but you don't get the normal behaviour that you would expect from having marked a block - ie any characters written are additional characters, they don't replace the blocked text. The current cursor position remains the current keyboard position and not the mouse cursor position.
Also I note that if I have the app on part of the screen and the terminal session it started from also on the screen the cursor position in the terminal screen is being updated by the cursor control keys and by keyboard input but not by moving the mouse cursor position. Maybe that's some clue as to part of what is going on.
Thanks
Doug
|
Behaviour of GETs when editing text
|
Doug,
It may be related to the GT library that it is used. We should use -lgtnul but we can't find that file. We have asked it at the harbour mailing list and we are waiting for an answer, thanks
|
Behaviour of GETs when editing text
|
Doug,
Fixed. We send you new libs
thanks for your feedback,
|
Behaviour of GETs when editing text
|
Thanks for this fix. Both the level and speed of your support are wonderful.
Thanks from a very happy xProgrammer
|
Behaviour of GoNextCtrl
|
Hello!
While upgrading from FWH 06.02 to 09.01 I've noticed that behaviour of GoNextCtrl (TWindows) had changed. In previous version I could use it to go to the next GET or BUTTON control, but now it jumps to the next SAY control so I loose focus. Is there another method to use that jumps to the next "focusable" control (ignoring text controls, for example)?
Thanks, Roman
|
Behaviour of GoNextCtrl
|
Roman,
Are you sure you have all the focusable controls numbered lower than the says? Perhaps all you need to do is renumber the sequence of the controls.
Regards,
James
|
Behaviour of GoNextCtrl
|
[quote="James Bott":uya6x2dx]Roman,
Are you sure you have all the focusable controls numbered lower than the says? Perhaps all you need to do is renumber the sequence of the controls.
[/quote:uya6x2dx]
No, SAY-s and GET-s are mixed. This was not a problem in FWH 6.2. But thanks for an idea ...
Roman
|
Behaviour of GoNextCtrl
|
Can you show a reduced and self-contained sample of the problem?
EMG
|
Behaviour of GoNextCtrl
|
[quote="modicr":3vu2pwuv][quote="James Bott":3vu2pwuv]Roman,
Are you sure you have all the focusable controls numbered lower than the says? Perhaps all you need to do is renumber the sequence of the controls.
[/quote:3vu2pwuv]
No, SAY-s and GET-s are mixed. This was not a problem in FWH 6.2. But thanks for an idea ...
Roman[/quote:3vu2pwuv]
In a MDICHILD or GROUPS? When?
Change and try this in WINDOW.PRG:
[code=/F]
METHOD GoNextCtrl( hCtrl ) CLASS TWindow
local hCtlNext := NextDlgTab( ::hWnd, hCtrl ), nAt
//if Upper( ::ClassName() ) != "TDIALOG"
if Upper( ::ClassName() ) != "TDIALOG" .and. ;
Upper( ::ClassName() ) != "TMDICHILD" .and. ;
Upper( ::ClassName() ) != "TGROUP" // C.Gelabert 13/03/2008
nAt = AScan( ::aControls, { | o | o:hWnd == hCtrl } )
...
[code]
Regards
Carlos G.
|
Behaviour of GoNextCtrl
|
Hello!
[quote:1tnj3kv0]In a MDICHILD or GROUPS? When?[/quote:1tnj3kv0]
Yes, I have a Window (not Dialog) in MdiChild.
[code=fw:1tnj3kv0]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">if</span> Upper<span style="color: #000000;">(</span> ::<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #ff0000;">"TDIALOG"</span> .and. ;<br /> Upper<span style="color: #000000;">(</span> ::<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #ff0000;">"TMDICHILD"</span> .and. ;<br /> Upper<span style="color: #000000;">(</span> ::<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #ff0000;">"TGROUP"</span> <span style="color: #B900B9;">// C.Gelabert 13/03/2008</span></div>[/code:1tnj3kv0]
Yippee, it works now! <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Thanks, Roman
|
Behaviour of button class in FWH 11.12
|
Hello,
Since I use FWH 11.12, I experienced another behaviour in the button class.
I often use "&" in a button to make it easier for a user to activate a button by using the ALT-key.
It always used to work fine. For instance, if I put "&Add" in a button, the user presses ALT-A on his keyboard to activate the button after which the action is performed.
But since 11.12, pressing ALT-A is only setting the focus on the button, but the action behind the button is not executed.
Why is that? Can we have the old behaviour back?
Thanks a lot in advance.
|
Behaviour of button class in FWH 11.12
|
Good day!
The reported problem that also happened with me!
thank you
|
Behaviour of button class in FWH 11.12
|
this is the only change in tbutton class in version 11.12
can you try revert the change and test.
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=124275#p124275">viewtopic.php?p=124275#p124275</a><!-- l -->
salu2
carlos vargas
|
Behaviour of button class in FWH 11.12
|
Michel,
It is a FWH 11.12 bug, we are searching for it, thanks
We apologize for it
|
Behaviour of button class in FWH 11.12
|
Michel,
This example is also failing with FWH 11.11 so it seems as the bug was introduced before 11.11:
[code=fw:1caxmfvl]<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> oDlg, cTest := <span style="color: #ff0000;">"Hello"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /> <br /> @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">GET</span> cTest<br /> <br /> @ <span style="color: #000000;">3</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"test"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1caxmfvl]
|
Behaviour of button class in FWH 11.12
|
In FWH 11.10 is working fine...
|
Behaviour of button class in FWH 11.12
|
This is the required fix in Class TButton:
[code=fw:1avy2kkx]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">METHOD</span> GetDlgCode<span style="color: #000000;">(</span> nLastKey <span style="color: #000000;">)</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">nLastKey</span> := nLastKey, <span style="color: #00C800;">nil</span> <span style="color: #B900B9;">// DLGC_WANTALLKEYS</span><br /> </div>[/code:1avy2kkx]
Thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Behaviour of button class in FWH 11.12
|
[quote="Antonio Linares":2tg5wsrm]This example is also failing with FWH 11.11[/quote:2tg5wsrm]
I'm using FWH 11.11 and your sample works fine here. Why?
EMG
|
Behaviour of button class in FWH 11.12
|
Antonio, este metodo en tget, todas las posibilidaes retornan WANTALLKEYS, no tiene sentido
que opinas?
o no le capto. <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
[code=fw:3qbpxdmi]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> GetDlgCode<span style="color: #000000;">(</span> nLastKey <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TGet<br /><br /> <span style="color: #00C800;">if</span> Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span> == <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">return</span> DLGC_WANTALLKEYS<br /> <span style="color: #00C800;">endif</span><br /><br /> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">nLastKey</span> = nLastKey<br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"TXBROWSE"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> DLGC_WANTALLKEYS<br /> <span style="color: #00C800;">else</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWnd</span> != <span style="color: #00C800;">nil</span> .and. ;<br /> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> $ <span style="color: #ff0000;">"TFOLDER,TFOLDEREX,TMDICHILD,TWINDOW,TDIALOG"</span><br /> <span style="color: #00C800;">return</span> DLGC_WANTALLKEYS<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> DLGC_WANTALLKEYS<br /> </div>[/code:3qbpxdmi]
|
Behaviour of button class in FWH 11.12
|
[quote="Enrico Maria Giordano":1j5snpz8][quote="Antonio Linares":1j5snpz8]This example is also failing with FWH 11.11[/quote:1j5snpz8]
I'm using FWH 11.11 and your sample works fine here. Why?
EMG[/quote:1j5snpz8]
Enrico,
Surely you were using an early 11.11 that got modified little later
|
Behaviour of button class in FWH 11.12
|
Ok, now it's clear, thank you.
EMG
|
Beispiele für TAutoOle2 u xBrowse ( Update 4 / 07.01.2008 )
|
Die Beispiele für die Excel-Formulare wurden
erweitert.
Im xBrowser ist es nun möglich, mit einem
Click auf den Column-Header den Index zu wechseln.
Die Schrift im Header der entsprechenden Spalte
färbt sich rot und der aktive Index wird dadurch
gekennzeichnet.
Das Bild des Browsers ( Bitmaps und Farben )
ändert sich nicht. Die Kennzeichnung der Spalte
mit Bitmaps kommt nicht in Frage, da bei einem
Indexwechsel der alte Zustand der Spalte wieder
hergestellt werden muß.
Download von <!-- m --><a class="postlink" href="http://www.pflegeplus.com/fivewin">http://www.pflegeplus.com/fivewin</a><!-- m -->
( Excel-Beispiele )
Grüße aus Essen <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
U. König
|
Belgian eID
|
Hello,
All Belgian citizens are obliged to have an eID (looks like a creditcard) to be able to identify themselves at any time.
I need to read the information which is available on that eID by using a cardreader.
Does anyone have a solution for reading an eID?
Thank you very much in advance for any help.
|
Belgian eID
|
You ask it regularilly every 2-3 year <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=25205&p=191328">viewtopic.php?f=3&t=25205&p=191328</a><!-- l -->
My suggest is to take a C/C++ example and put it inside an Harbour function.
|
Belgian eID
|
Antonino,
I know that topic, but the links that were provided, are not valid anymore.
And until now, I haven't seen any solution.
Where can I find a C/C++ example?
Thanks.
|
Belgian eID
|
I quickly searched with google the information for you.
The SDK looks <!-- m --><a class="postlink" href="https://github.com/Fedict/eid-mw/tree/master/doc/sdk">https://github.com/Fedict/eid-mw/tree/master/doc/sdk</a><!-- m -->
here some documentation <!-- m --><a class="postlink" href="http://www.uvcw.be/no_index/e-communes/dossier_eid/Belgian_eid_run-time_developers_kit%2025.pdf">http://www.uvcw.be/no_index/e-communes/ ... t%2025.pdf</a><!-- m -->
|
Belgian eID
|
Hi ,
Could somenone help us to translate in Harbour fivewin syntax ?
Thanks
|
Belgian eID
|
can you write to me at antonino.perricone _at_ yahoo.it
|
Belgian eID-card
|
Hello,
Here in Belgium we all have a electronic ID-card which is used in many applications.
Does anyone know how we can read this eID in a cardreader?
Thanks a lot in advance.
|
Belgian eID-card
|
Hello Michel,
have you found a solution.
Thanks in advance
Otto
|
Belgian eID-card
|
Unfortunately not, Otto.
|
Belgian eID-card
|
Does this help at all?
<!-- m --><a class="postlink" href="http://eid.belgium.be/en/using_your_eid/what_do_you_need/kaartlezer/">http://eid.belgium.be/en/using_your_eid ... aartlezer/</a><!-- m -->
Robb
|
Belgian eID-card
|
In my infinity curiosity, I saw the API for Belgian eID-card. <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
I arrived at [url:1wjw4qp3]http://eid.belgium.be/en/developing_eid_applications/eid_software_development_kit/[/url:1wjw4qp3]
then at [url:1wjw4qp3]https://code.google.com/p/eid-mw/wiki/SDK40[/url:1wjw4qp3]
so, It is enough download the software from [url:1wjw4qp3]http://eid.belgium.be/nl/je_eid_gebruiken/de_eid-middleware_installeren/[/url:1wjw4qp3] and the SDK from [url:1wjw4qp3]http://eid-mw.googlecode.com/files/sdk40_1306.zip[/url:1wjw4qp3].
starting from them, I created this test: [url:1wjw4qp3]http://aperricone.altervista.org/temp/beid.zip[/url:1wjw4qp3]
all file except: [b:1wjw4qp3]be_api.c[/b:1wjw4qp3], [b:1wjw4qp3]test.prg[/b:1wjw4qp3], [b:1wjw4qp3]build.bat[/b:1wjw4qp3] and [b:1wjw4qp3]test.exe[/b:1wjw4qp3] are copied from the SDK.
The interesting one is [b:1wjw4qp3]be_api.c[/b:1wjw4qp3], it is only started, finish its is a easy but boring work.
I don't have way to test it, but I think it is a good starting point.
Hoping that I helped,
Antnino Perricone
|
Belgian eID-card
|
Hello,
What is the right instruction in other to read the contents of EID Card : Name, Adress,Bitrth Date ?
Thanks
|
Belgian eID-card
|
Hello,
Is there something new about this ?
How to extract FirstName,LastName,BirthDate etc
Thanks for your help .
|
Belgian eID-card
|
Hi,
There is an SDK for reading the information on the eID.
[url:1qk7fnvd]http://eid.belgium.be/nl/eid-toepassingen_ontwikkelen/eid_software_development_kit[/url:1qk7fnvd]
[url:1qk7fnvd]https://github.com/Fedict/eid-mw/wiki/SDK40#Introduction[/url:1qk7fnvd]
Here is a VBA wrapper:
[url:1qk7fnvd]https://github.com/jdt/EID.Wrapper[/url:1qk7fnvd]
I did't try it yet.
|
Belgian eID-card
|
How to translate this in Fivewin/Harbour language ?
Thanks for your help .
|
Belgian eID-card
|
no one tried my code?
|
Belgian eID-card
|
[quote="AntoninoP":1mj6z5z4]no one tried my code?[/quote:1mj6z5z4]
Antonino,
When I run it with a cardreader, I get this error:
[code=fw:1mj6z5z4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">Init</span>: <span style="color: #000000;">0</span><br />Error BASE/<span style="color: #000000;">1111</span> Argument error: <span style="color: #000000;">LEN</span><br />Called <span style="color: #0000ff;">from</span> LEN<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">6</span><span style="color: #000000;">)</span></div>[/code:1mj6z5z4]
I will try to debug it if I have some time...
|
Belgian eID-card
|
It does not found the file beidpkcs11.dll or beid35pkcs11D.dll (depends if is compiled in C debug or not), maybe is better to change the line 11 of be_api.c from
[code=fw:jnanvj7f]<div class="fw" id="{CB}" style="font-family: monospace;">CK_RV retVal = CKR_OK;</div>[/code:jnanvj7f]
to
[code=fw:jnanvj7f]<div class="fw" id="{CB}" style="font-family: monospace;">CK_RV retVal = CKR_GENERAL_ERROR;</div>[/code:jnanvj7f]
so it does not return 0 (OK) in case of fail.
|
Belgian eID-card
|
Has anyone been able to read the ID card yet ?
Maybe even with a other software executed from FW ?
|
Belgian eID-card
|
Hello,
Did someone found samples of FW code for this ?
Thanks
|
Belgian eID-card
|
Not from my side.
|
Belgian eID-card
|
Hi,
I found this information, with examples in different program-languages.
[url:uxt3afzv]https://downloads.services.belgium.be/eid/UPD_Developers_Guide.pdf[/url:uxt3afzv]
But I don't know how to call it from FWH
|
Belgium VAT-Controle function
|
Hello Michel, Marc
Have any of you have a working Vat-controle for Belgium vat numbers ? I want to check if new customers are having a correct vat number and maybe the option of filling in the customer data from online data.
|
Belgium VAT-Controle function
|
You could always use our Italian control if the customer VAT number is created in the same way also in Belgium
I fiund this
<!-- m --><a class="postlink" href="https://vatcalculator.eu/belgium-vat-calculator/">https://vatcalculator.eu/belgium-vat-calculator/</a><!-- m -->
but you perhaps mean another vat number
I found VAT number format: BE 0999.999.999 (10 digits)
<!-- m --><a class="postlink" href="https://github.com/DragonBe/vies/issues/76">https://github.com/DragonBe/vies/issues/76</a><!-- m -->
there is a php source code
<!-- m --><a class="postlink" href="https://github.com/DragonBe/vies/blob/master/src/Vies/CheckVatResponse.php">https://github.com/DragonBe/vies/blob/m ... sponse.php</a><!-- m -->
|
Belgium VAT-Controle function
|
Hi Marc,
This is the function I have made to check a Belgian VAT-number.
The picture of the VAT-number = "BE0999.999.999"
The code is : [code=fw:36ijsyfa]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> Contr_BTW<span style="color: #000000;">(</span>nBTWNUM,nLAND,nDlg,nONDNUM,nBTWLIST<span style="color: #000000;">)</span> <span style="color: #B900B9;">// Controle Belgisch BTW-nummer</span><br /><br /> <span style="color: #00C800;">LOCAL</span> OldPar := <span style="color: #0000ff;">ALIAS</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> TN1 := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">LOCAL</span> TN2 := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">LOCAL</span> cTel := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">LOCAL</span> cRet := .T.<br /><br /> <span style="color: #00C800;">IF</span> ALLTRIM<span style="color: #000000;">(</span>nLAND<span style="color: #000000;">)</span> = <span style="color: #ff0000;">"B"</span> .AND. !EMPTY<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span> .AND. ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span> <> <span style="color: #ff0000;">". ."</span> .AND. <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">(</span>UPPER<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span> = <span style="color: #ff0000;">"BE"</span><br /><br /> &nBTWNUM := <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span>,<span style="color: #000000;">14</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">FOR</span> x = <span style="color: #000000;">4</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>&nBTWNUM,<span style="color: #000000;">4</span>,<span style="color: #000000;">11</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> <span style="color: #000000;">(</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span>,x,<span style="color: #000000;">1</span><span style="color: #000000;">)</span> < <span style="color: #ff0000;">"0"</span> .OR. <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span>,x,<span style="color: #000000;">1</span><span style="color: #000000;">)</span> > <span style="color: #ff0000;">"9"</span><span style="color: #000000;">)</span> .AND. <span style="color: #000000;">(</span><span style="color: #000000;">(</span>x <> <span style="color: #000000;">7</span> .AND. x <> <span style="color: #000000;">11</span><span style="color: #000000;">)</span> .OR. <span style="color: #000000;">(</span><span style="color: #000000;">(</span>x = <span style="color: #000000;">7</span> .OR. x = <span style="color: #000000;">11</span><span style="color: #000000;">)</span> .AND. <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span>,x,<span style="color: #000000;">1</span><span style="color: #000000;">)</span> <> <span style="color: #ff0000;">"."</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> cTel++<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">NEXT</span><br /> <span style="color: #00C800;">IF</span> cTel = <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">IF</span> LEN<span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span><span style="color: #000000;">)</span> = <span style="color: #000000;">12</span><br /> &nBTWNUM := <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">(</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">6</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">"."</span> + <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">3</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">"."</span> + <span style="color: #0000ff;">RIGHT</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span>,<span style="color: #000000;">10</span>,<span style="color: #000000;">3</span><span style="color: #000000;">)</span> + SPACE<span style="color: #000000;">(</span><span style="color: #000000;">20</span><span style="color: #000000;">)</span>,<span style="color: #000000;">20</span><span style="color: #000000;">)</span><br /> nDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> TN1 := VAL<span style="color: #000000;">(</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span><span style="color: #000000;">)</span> + <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span>,<span style="color: #000000;">8</span>,<span style="color: #000000;">3</span><span style="color: #000000;">)</span> + <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span>,<span style="color: #000000;">12</span>,<span style="color: #000000;">1</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> TN2 := <span style="color: #000000;">(</span><span style="color: #000000;">(</span> TN1 / <span style="color: #000000;">97</span><span style="color: #000000;">)</span> - INT<span style="color: #000000;">(</span>TN1 / <span style="color: #000000;">97</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> * <span style="color: #000000;">97</span><br /> <span style="color: #00C800;">IF</span> !<span style="color: #000000;">(</span>cTel = <span style="color: #000000;">0</span> .AND. INT<span style="color: #000000;">(</span>VAL<span style="color: #000000;">(</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span>,<span style="color: #000000;">13</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> = <span style="color: #000000;">97</span> - INT<span style="color: #000000;">(</span>TN2 + <span style="color: #000000;">0.5</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> cRet := .F.<br /> <span style="color: #00C800;">ENDIF</span><br /> ELSEIF <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">(</span>UPPER<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span> = <span style="color: #ff0000;">"BE"</span><br /> cRet := .F.<br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">IF</span> cRet<br /> <span style="color: #00C800;">IF</span> <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">(</span>UPPER<span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span><span style="color: #000000;">)</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span> = <span style="color: #ff0000;">"BE"</span><br /> <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">(</span>nONDNUM<span style="color: #000000;">)</span> .AND. <span style="color: #000000;">(</span>EMPTY<span style="color: #000000;">(</span>&nONDNUM<span style="color: #000000;">)</span> .OR. ALLTRIM<span style="color: #000000;">(</span>&nONDNUM<span style="color: #000000;">)</span> = <span style="color: #ff0000;">". ."</span><span style="color: #000000;">)</span><br /> &nONDNUM := <span style="color: #0000ff;">RIGHT</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span>,<span style="color: #000000;">12</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">(</span>nBTWLIST<span style="color: #000000;">)</span> .AND. !EMPTY<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span><br /> &nBTWLIST := .T.<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ENDIF</span><br /> nDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">IF</span> LEN<span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span><span style="color: #000000;">)</span> < <span style="color: #000000;">14</span><br /> &nBTWNUM := <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>&nBTWNUM<span style="color: #000000;">)</span> + SPACE<span style="color: #000000;">(</span><span style="color: #000000;">14</span><span style="color: #000000;">)</span>,<span style="color: #000000;">14</span><span style="color: #000000;">)</span><br /> cRet := .F.<br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">IF</span> !cRet<br /> MsgAlert<span style="color: #000000;">(</span><span style="color: #ff0000;">"Dit Belgisch BTW-nummer is niet correct !!!"</span>,<span style="color: #ff0000;">"Opgelet"</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span>cRet<span style="color: #000000;">)</span></div>[/code:36ijsyfa]Good luck.
|
Belgium VAT-Controle function
|
I have seen this code working I believe (don't know where I got it)
Now it's not ok anymore
[code=fw:1ma2j67f]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br />#if ! defined<span style="color: #000000;">(</span> DEFAULT_MAX_RECORDS <span style="color: #000000;">)</span><br /><span style="color: #00D7D7;">#define</span> DEFAULT_MAX_RECORDS <span style="color: #000000;">20000</span><br />#endif<br /><br /><span style="color: #00C800;">Static</span> cDoc , cHttp<br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #00C800;">TRY</span><br /> cDoc := CreateObject<span style="color: #000000;">(</span> <span style="color: #ff0000;">"MSXML2.DOMDocument"</span> <span style="color: #000000;">)</span><br /> CATCH<br /> Alert<span style="color: #000000;">(</span><span style="color: #ff0000;">"Error object MSXML2.DOMDocument : "</span> + Ole2TxtError<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">NIL</span><br /> END<br /><br /> <span style="color: #00C800;">TRY</span><br /> cHttp := CreateObject<span style="color: #000000;">(</span> <span style="color: #ff0000;">"MSXML2.XMLHTTP"</span> <span style="color: #000000;">)</span><br /> CATCH<br /> Alert<span style="color: #000000;">(</span><span style="color: #ff0000;">"Error object MSXML2.XMLHTTP : "</span> + Ole2TxtError<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> END<br /><br /> checkVies<span style="color: #000000;">(</span> <span style="color: #ff0000;">"BE"</span>, <span style="color: #ff0000;">"0452109872"</span> <span style="color: #000000;">)</span><br /><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #B900B9;">//=========================================================================================</span><br /><span style="color: #00C800;">Function</span> checkVies<span style="color: #000000;">(</span>cCountry, cVatNumber <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">Local</span> cResponse := <span style="color: #ff0000;">" "</span> ,hVar<br /><span style="color: #00C800;">Local</span> cRequestXML := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">local</span> aData:=<span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">DEFAULT</span> cCountry := <span style="color: #ff0000;">"BE"</span><br /><span style="color: #00C800;">DEFAULT</span> cVatNumber := <span style="color: #ff0000;">"0452109872"</span><br />editvars cVatnumber<br /><br /><br /> cRequestXML := <span style="color: #000000;">[</span><soap:<span style="color: #000000;">Envelope</span> xmlns:<span style="color: #000000;">soap</span>=<span style="color: #ff0000;">"http://schemas.xmlsoap.org/soap/envelope/"</span> <span style="color: #000000;">]</span> +;<br /> <span style="color: #000000;">[</span>xmlns:<span style="color: #000000;">tns1</span>=<span style="color: #ff0000;">"urn:ec.europa.eu:taxud:vies:services:checkVat:types"</span> <span style="color: #000000;">]</span> +;<br /> <span style="color: #000000;">[</span>xmlns:<span style="color: #000000;">impl</span>=<span style="color: #ff0000;">"urn:ec.europa.eu:taxud:vies:services:checkVat"</span>> <span style="color: #000000;">]</span> +;<br /> <span style="color: #000000;">[</span><soap:<span style="color: #000000;">Header</span>> <span style="color: #000000;">]</span>+;<br /> <span style="color: #000000;">[</span></soap:<span style="color: #000000;">Header</span>> <span style="color: #000000;">]</span>+;<br /> <span style="color: #000000;">[</span><soap:<span style="color: #000000;">Body</span>> <span style="color: #000000;">]</span>+;<br /> <span style="color: #000000;">[</span><tns1:<span style="color: #000000;">checkVat</span> xmlns:<span style="color: #000000;">tns1</span>=<span style="color: #ff0000;">"urn:ec.europa.eu:taxud:vies:services:checkVat:types"</span> <span style="color: #000000;">]</span>+;<br /> <span style="color: #000000;">[</span>xmlns=<span style="color: #ff0000;">"urn:ec.europa.eu:taxud:vies:services:checkVat:types"</span>> <span style="color: #000000;">]</span>+;<br /> <span style="color: #000000;">[</span><tns1:<span style="color: #000000;">countryCode</span>><span style="color: #000000;">]</span> + cCountry + <span style="color: #000000;">[</span></tns1:<span style="color: #000000;">countryCode</span>> <span style="color: #000000;">]</span> +;<br /> <span style="color: #000000;">[</span><tns1:<span style="color: #000000;">vatNumber</span>><span style="color: #000000;">]</span> + cVatNumber + <span style="color: #000000;">[</span></tns1:<span style="color: #000000;">vatNumber</span>> <span style="color: #000000;">]</span> +;<br /> <span style="color: #000000;">[</span></tns1:<span style="color: #000000;">checkVat</span>> <span style="color: #000000;">]</span>+;<br /> <span style="color: #000000;">[</span></soap:<span style="color: #000000;">Body</span>> <span style="color: #000000;">]</span>+;<br /> <span style="color: #000000;">[</span></soap:<span style="color: #000000;">Envelope</span>> <span style="color: #000000;">]</span><br /><br /><br /> <span style="color: #B900B9;">//</span><br /> <span style="color: #B900B9;">//cHttp:Open( "POST","http://ec.europa.eu/taxation_customs/vies/services/checkVatService", .t.)</span><br /> <span style="color: #B900B9;">// Wait...</span><br /> cHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"POST"</span>,<span style="color: #ff0000;">"http://ec.europa.eu/taxation_customs/vies/services/checkVatService"</span>, .F.<span style="color: #000000;">)</span><br /><br /> cHttp:<span style="color: #000000;">SetRequestHeader</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Content-Type"</span> , <span style="color: #ff0000;">"application/x-www-form-urlencoded"</span> <span style="color: #000000;">)</span><br /> cHttp:<span style="color: #000000;">setRequestHeader</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'User-Agent'</span>, <span style="color: #ff0000;">'node-soap'</span><span style="color: #000000;">)</span><br /> cHttp:<span style="color: #000000;">setRequestHeader</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'Accept'</span> , <span style="color: #ff0000;">'text/html,application/xhtml+xml,application/xml,text/xml;q=0.9,*/*;q=0.8'</span><span style="color: #000000;">)</span><br /> cHttp:<span style="color: #000000;">setRequestHeader</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'Accept-Encoding'</span>, <span style="color: #ff0000;">'none'</span><span style="color: #000000;">)</span><br /> cHttp:<span style="color: #000000;">setRequestHeader</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'Accept-Charset'</span>, <span style="color: #ff0000;">'utf-8'</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//cHttp:setRequestHeader('Connection', 'close')</span><br /> <span style="color: #B900B9;">//cHttp:setRequestHeader('Host', 'http://ec.europa.eu/taxation_customs/vies/services/checkVatService')</span><br /> cHttp:<span style="color: #000000;">setRequestHeader</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'SOAPAction'</span>, <span style="color: #ff0000;">'urn:ec.europa.eu:taxud:vies:services:checkVat/checkVat'</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">//MsgGet( 'Wait',,@cRequestXML)</span><br /> <span style="color: #B900B9;">//cDoc:LoadXML( cRequestXML )</span><br /> <span style="color: #B900B9;">//lXmlHttp.send(lXmlDoc);</span><br /> cHttp:<span style="color: #000000;">send</span><span style="color: #000000;">(</span>cRequestXML<span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//cHttp:send(cDOc:xml )</span><br /> <span style="color: #B900B9;">//If cHttp:status == 200</span><br /> <span style="color: #B900B9;">// ? cResponse</span><br /> cResponse := cHttp:<span style="color: #000000;">responseText</span><br /> ? cResponse<br /> aadd<span style="color: #000000;">(</span>aData,BETWEENTAGSARRAY<span style="color: #000000;">(</span><span style="color: #ff0000;">"name"</span>,<span style="color: #ff0000;">"/name"</span>,cResponse<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> aadd<span style="color: #000000;">(</span>aData,BETWEENTAGSARRAY<span style="color: #000000;">(</span><span style="color: #ff0000;">"address"</span>,<span style="color: #ff0000;">"/address"</span>,cResponse<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">//xbrowser( BETWEENTAGSARRAY("faultstring","/faultstring",cResponse) )</span><br /> xbrowser<span style="color: #000000;">(</span> aData <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//endif</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /> <span style="color: #00C800;">FUNCTION</span> BETWEENTAGSARRAY<span style="color: #000000;">(</span> cStartTag, cEndTag, cInputString, lIncludeTags <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> nStartPoint, nEndPoint<br /> <span style="color: #00C800;">LOCAL</span> nRecords := <span style="color: #000000;">00</span>, nFetchLength := <span style="color: #000000;">00</span>, aFoundText := Array<span style="color: #000000;">(</span> DEFAULT_MAX_RECORDS <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> cMDML<br /> <span style="color: #00C800;">LOCAL</span> cInputStringUpper := Upper<span style="color: #000000;">(</span> cInputString <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> cStartTagUpper := Upper<span style="color: #000000;">(</span> cStartTag <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> cEndTagUpper := Upper<span style="color: #000000;">(</span> cEndTag <span style="color: #000000;">)</span><br /><br /> hb_Default<span style="color: #000000;">(</span> @lIncludeTags, .F. <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> .T.<br /><br /> <span style="color: #B900B9;">// Find the starting point of the starting tag.</span><br /> nStartPoint := <span style="color: #00C800;">At</span><span style="color: #000000;">(</span> cStartTagUpper, <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cInputStringUpper, <span style="color: #000000;">01</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> nStartPoint > <span style="color: #000000;">00</span><br /><br /> <span style="color: #B900B9;">// Adjust starting point to end of starting tag</span><br /> nStartPoint += Len<span style="color: #000000;">(</span> cStartTagUpper <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">// If the first tag is found strip off string up to and including the starting tag itself</span><br /> cInputStringUpper := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cInputStringUpper, nStartPoint <span style="color: #000000;">)</span><br /> cInputString := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cInputString, nStartPoint <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">// Find the starting point of the second tag, beginning from end of first tag.</span><br /> nEndPoint := <span style="color: #00C800;">At</span><span style="color: #000000;">(</span> cEndTagUpper, cInputStringUpper <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> nEndPoint > <span style="color: #000000;">00</span><br /><br /> <span style="color: #B900B9;">// If the second tag is found calculate its position from start of string.</span><br /> nFetchLength := nEndPoint - <span style="color: #000000;">1</span><br /><br /> <span style="color: #00C800;">IF</span> lIncludeTags<br /> cMDML := cStartTag + LTrim<span style="color: #000000;">(</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cInputString, <span style="color: #000000;">01</span>, nFetchLength <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + cEndTag<br /> <span style="color: #00C800;">ELSE</span><br /> cMDML := LTrim<span style="color: #000000;">(</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cInputString, <span style="color: #000000;">01</span>, nFetchLength <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">IF</span> ++nRecords <= DEFAULT_MAX_RECORDS<br /> aFoundText<span style="color: #000000;">[</span> nRecords <span style="color: #000000;">]</span> := cMDML<br /> <span style="color: #00C800;">ELSE</span><br /> <span style="color: #B900B9;">// IF we get here it is gonna be oh so slow.</span><br /> AAdd<span style="color: #000000;">(</span> aFoundText, cMDML <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #B900B9;">// clip off the front of the string then loop to find the next</span><br /> cInputStringUpper := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cInputStringUpper, nFetchLength + <span style="color: #000000;">01</span> <span style="color: #000000;">)</span><br /> cInputString := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cInputString, nFetchLength + <span style="color: #000000;">01</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">ELSE</span><br /> EXIT<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ELSE</span><br /> EXIT<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ENDDO</span><br /> <span style="color: #00C800;">IF</span> nRecords < DEFAULT_MAX_RECORDS<br /> aFoundText := ASize<span style="color: #000000;">(</span> aFoundText, nRecords <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span> aFoundText <span style="color: #000000;">)</span><br /><br /> </div>[/code:1ma2j67f]
|
Belgium VAT-Controle function
|
Marc,
Do you know the principle of checking a Belgian VAT-number?
A Belgian VAT-number looks like BE0574.774.488.
Take "BE0" at the start away. You keep 574.774.488.
Get rid of the points. You keep 574774488.
Take the first 7 digits. You keep 5747744.
Divide this result by 97. The result is 59255.0927835.
You keep the decimals : 0.0927835.
Multiply this by 97 and round it with 0 decimals.
The result is 9.
Substract 9 from 97 and this results into 88.
IF 88 is equal to the last 2 figures of you VAT-number, the Belgian VAT-number is correct.
This is what my function does.
|
Belgium VAT-Controle function
|
[quote="driessen":2sb534gn]Marc,
Do you know the principle of checking a Belgian VAT-number?
A Belgian VAT-number looks like BE0574.774.488.
Take "BE0" at the start away. You keep 574.774.488.
Get rid of the points. You keep 574774488.
Take the first 7 digits. You keep 5747744.
Divide this result by 97. The result is 59255.0927835.
You keep the decimals : 0.0927835.
Multiply this by 97 and round it with 0 decimals.
The result is 9.
Substract 9 from 97 and this results into 88.
IF 88 is equal to the last 2 figures of you VAT-number, the Belgian VAT-number is correct.
This is what my function does.[/quote:2sb534gn]
I tried to implement the above logic in this function:
[code=fw:2sb534gn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> BelgiumVat<span style="color: #000000;">(</span> cVat <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> lValid := .f.<br /><br /> <span style="color: #00C800;">if</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">(</span> cVat, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"BE0"</span> .and. Len<span style="color: #000000;">(</span> cVat <span style="color: #000000;">)</span> == <span style="color: #000000;">14</span><br /> cVat := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cVat, <span style="color: #000000;">4</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cVat, <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"."</span> .and. <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cVat, <span style="color: #000000;">8</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"."</span><br /> cVat := StrTran<span style="color: #000000;">(</span> cVat, <span style="color: #ff0000;">"."</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> cVat == Str<span style="color: #000000;">(</span> Val<span style="color: #000000;">(</span> cVat <span style="color: #000000;">)</span>, <span style="color: #000000;">9</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">97</span> - Val<span style="color: #000000;">(</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">(</span> cVat, <span style="color: #000000;">7</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> % <span style="color: #000000;">97</span> == Val<span style="color: #000000;">(</span> <span style="color: #0000ff;">Right</span><span style="color: #000000;">(</span> cVat, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> lValid := .t.<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">return</span> lValid<br /> </div>[/code:2sb534gn]
If you have time can this be checked with different vat numbers?
Even this check is valid, there is no guarantee that the number does exist. Checking with the Government's website is the final check.
|
Belgium VAT-list
|
Hi,
I have a question to all the Belgium FWH-users. Does anyone already create a function to generate the yearly VAT-list, or have an example-file.
From this year on the list must be created as an XML-file. Before it was an easy-file with on each line one customer with his data.
On the site of the Belgium-VAT-site there is a s XSD-file. This is not an example-file but a XML-scheme-file. It would be easyer if there was an-example XML-file
Thanks,
Marc
|
Belgium VAT-list
|
Hello Marc,
I have the same problem. So I will follow this topic too.
----------------------------------------------------------------------
Beste Marc,
Ik heb hetzelfde probleem.
Ik moet in mijn applicatie fiscale fiches aanmaken (281.50 en 325.25) en hiervoor stelt zich hetzelfde probleem. Hetzelfde zal in de toekomst ook gelden voor BTW-aangiftes.
Maar mag ik nog een vraagje stellen ?
Ken jij de formule om van de Belgische banknummers IBAN-nummers te maken, en dit op een automatische wijze ? En dit met de daaraan gekoppelde BIC-code ?
Bedankt.
|
Belgium VAT-list
|
Michel,
Ik heb voor de IBAN-nummers nog geen functie geschreven voor de omvorming.
Blijkbaar heeft dat ook te maken met de bank baar je bij bent.
Ik zal eens aan mijn bank vragen of ze geen tabel of zo hebben met de codes per bank.
Van zodra ik iets meer weet zal ik het U laten weten.
Groeten,
Marc
|
Belgium VAT-list
|
Michel,
Het is inderdaad net zoals ik dacht dat de IBAN-nummers afhankelijk zijn van de bank.
Ze hebben me al deze link doorgestuurd om zelf de IBAN te berekenen vanuit een bankrekeningnummer.
[url:jkqroz83]http://nl.iban-bic.com/calculate.html?&L=3[/url:jkqroz83]
Marc
|
Bem vindos ao forum em português
|
Olá, pessoal!
Este é o recém inaugurado forum em português para os produtos FiveTech.
Vamos fazer deste nosso espaço para a comunidade FiveWin que fala português.
[ ]'s
Maurilio
|
Bem vindos ao forum em português
|
Olá, Estou aqui também :þ)
Não esqueçam do III Encontro de programadores que será realizado em São Paulo dia 19 de Novembro de 2.005, incrição e mais informações
<!-- m --><a class="postlink" href="http://www.installsis.com.br/encontro">http://www.installsis.com.br/encontro</a><!-- m -->
Abraços
Vagner Wirts
|
Bem vindos ao forum em português
|
Eu tambem estou por aqui...
qq coisa que eu puder ajudar não se acanhem... rsss
fala ai Vagnão... <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->
|
Bem vindos ao forum em português
|
Cheguei.....
|
Bem vindos ao forum em português
|
Tô na área também... <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Ah, e não esqueçam de colocar a foto de vocês... hehehe
Kleyber Derick
|
Bem vindos ao forum em português
|
teste <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
Bem vindos ao forum em português
|
to na area
|
Bem vindos ao forum em português
|
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
Benutzer kann Farben Brushes .... selber ändern
|
Hallo aus Essen,
habe gerade das Update in's Englische Forum
gestellt. Brushtools => Version 8.2 b
[img:3u3x5ac5]http://www.pflegeplus.com/pictures/brushtool.jpg[/img:3u3x5ac5]
Source und Rmake ist enthalten
Verbesserungs-Vorschläge werden gerne bearbeitet. !!!
Grüße <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Uwe
|
Benutzerdefinierte Formulare in Outlook verwenden
|
Hallo
hat jemand noch Euch schonmal benutzerdefinierte Formulare bei email versand benutzt ?
wie kann ich so ein formular über ole vorgeben ?
Viele Grüße
Norbert
|
Benvenuti nel nuovo forum in lingua italiana!
|
Questo forum è dedicato al supporto tecnico relativo a tutti i prodotti della Fivetech Software.
Si prega di iscriversi utilizzando l'apposita opzione e, possibilmente, anche di allegare una propria foto in modo tale da conoscerci anche di viso.
Buon lavoro a tutti.
EMG
|
Benvenuti nel nuovo forum in lingua italiana!
|
Ciao Enrico,
[quote:2qji8uvz]
Buon lavoro a tutti.
[/quote:2qji8uvz]
Anche a te. Ciao
|
Benvenuti nel nuovo forum in lingua italiana!
|
Grazie. A proposito: hai ricevuto la mia email nella quale ti chiedevo consiglio su dove mettere quelle istruzioni sul MinGW che mi avevi segnalato?
EMG
|
Benvenuti nel nuovo forum in lingua italiana!
|
Si, anzi scusami se non ti ho risposto prima.
Non ti ho risposto perchè stavo facendo qualche prova con la configurazione e la compilazione con MinGW con i parametri postati da Lorenzo, ma ho avuto qualche problema.
La compilazione la fa, ma non mi installa i programmi compilati.
Devo fare qualche prova per vedere qual'è la sequenza corretta e in cosa sbaglio.
Spero di riuscire entro la fine della settimana, il lavoro in questi giorni mi impegna più del previsto, così ti do la sequenza completa.
Pensavo che la potresti pubblicare sotto:
[url:174ow6zb]http://www.xharbour.org/index.asp?page=download/windows/required_win[/url:174ow6zb]
nella sezione di MinGW
ed inoltre lo vorrei aggiungere nel file howtomak.txt nei doc nel CVS
Spero di riuscire a completare i test (mi piacerebbe abbandonare BCC ed avere la compatibilità di ambiente fra Windows e Linux) questo fine settimana.
Ti faccio sapere
Ciao
PS: Hai modo, tempo e voglia di farti un giro con GD che ho messo in contrib? mi piacerebbe avere un parere, ma pare che per il momento non se lo sia filato nessuno <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
|
Benvenuti nel nuovo forum in lingua italiana!
|
[quote="fsgiudice":1obyp3di]Si, anzi scusami se non ti ho risposto prima.[/quote:1obyp3di]
E di che?
[quote="fsgiudice":1obyp3di]Non ti ho risposto perchè stavo facendo qualche prova con la configurazione e la compilazione con MinGW con i parametri postati da Lorenzo, ma ho avuto qualche problema.
La compilazione la fa, ma non mi installa i programmi compilati.
Devo fare qualche prova per vedere qual'è la sequenza corretta e in cosa sbaglio.
Spero di riuscire entro la fine della settimana, il lavoro in questi giorni mi impegna più del previsto, così ti do la sequenza completa.[/quote:1obyp3di]
Hai fatto benissimo.
[quote="fsgiudice":1obyp3di]Pensavo che la potresti pubblicare sotto:
[url:1obyp3di]http://www.xharbour.org/index.asp?page=download/windows/required_win[/url:1obyp3di]
nella sezione di MinGW[/quote:1obyp3di]
Giusto! Grazie. Allora aspetto la versione definitiva.
[quote="fsgiudice":1obyp3di]PS: Hai modo, tempo e voglia di farti un giro con GD che ho messo in contrib? mi piacerebbe avere un parere, ma pare che per il momento non se lo sia filato nessuno <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->[/quote:1obyp3di]
Lo farò. Se fosse una valida sostituta della FreeImage non sarebbe male.
EMG
|
Benvenuti nel nuovo forum in lingua italiana!
|
[quote="EnricoMaria":3my9ubpt]Questo forum è dedicato al supporto tecnico relativo a tutti i prodotti della Fivetech Software.
Si prega di iscriversi utilizzando l'apposita opzione e, possibilmente, anche di allegare una propria foto in modo tale da conoscerci anche di viso.
Buon lavoro a tutti.
EMG[/quote:3my9ubpt]
Ciao a tutti,
finalmente possiamo ricontattarci! Auguri a tutti di buon lavoro.
|
Benvenuti nel nuovo forum in lingua italiana!
|
Saluti a tutti anche da parte mia, sinceramente il forum in lingua italiana mi mancava tanto <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
Benvenuti nel nuovo forum in lingua italiana!
|
E così finalmente rieccoci qua <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Sono contento che esista questo nuovo spazio anche se condivido la nostalgia di alcuni per il ng che consentiva una archiviazione e una gestione dei messaggi anche in locale. E' un patrimonio di informazioni che va conservato con cura.
Sono sempre stato un lurker e dubito di avere molta voce in capitolo in un forum, visto che (come Enrico sa già bene) mi diletto di programmazione a fasi mooolto alterne ed è un bel po' che sono fermo.
Però eccomi qua e per giunta con la mia foto <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> ... è la prima volta che la metto su un forum <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
Antonio
|
Benvenuti nel nuovo forum in lingua italiana!
|
Eccomi quà!!!........ Bentrovati a tutti.
|
Benvenuti nel nuovo forum in lingua italiana!
|
Eccomi.
Da oggi anch'io sono iscritto, anche se + o - sono nelle condizioni di Jumbo: poco tempo da dedicare allo sviluppo software perché preso anche dalla vendita/assistenza hardware e in genere da tutto quel che ruota attorno all'IT (questo è quello che passa il convento, e di questi tempi è dura rinunciarci anche se + volte si è tentati di farlo).
Il pur pochissimo tempo che ho avuto modo di trascorrere su FiveWin mi è bastato comunque per capire (finalmente!) che FWH è il mio giusto sbocco definitivo dopo molti tentativi andati male per passare ad altro abbandonando il mio buon vecchio ed amatissimo CA-Clipper.
E per capire questo l'aiuto iniziale di EMG di qualche tempo fa (e che senz'altro chiederò ancora, sempre a lui piacendo) è stato per me preziosissimo.
E quindi... eccomi qua ben volentieri!
saluti a tutti.
MT
|
Benvenuti nel nuovo forum in lingua italiana!
|
Ciao a tutti,
il mio tempo per lo sviluppo è come la corrente alternata!
spero di riprendere con un po' più di disponibilità dopo le vacanze,
inoltre anche questo caldo non aiuta...
Comunque grazie a EMG e a tutti per il supporto.
|
Best Editor to use? Any xBase aware ones? File Associations
|
Wondering what the best editor to use to create / edit .prg files. gedit looks OK but isn't xBase aware (not that I can see). Any plugin for it? Any other editor recommendations?
Also how do you associate .prg files with your text editor so that you don't have to go Open with other application| Text Editor
Thanks to anyone who can help
|
Best Editor to use? Any xBase aware ones? File Associations
|
Doug,
First recommendation is to install gnome-commander which it is very usefull files manager based on Norton Commander (Total commander on Windows).
From a console window do:
sudo apt-get install gnome-commander
Then invoke it:
gnome-commander
simply double click on a PRG file and gedit will be automatically invoked
|
Best Editor to use? Any xBase aware ones? File Associations
|
[url=http://imageshack.us:348xo9fg][img:348xo9fg]http://img520.imageshack.us/img520/1832/screenshotmh8.png[/img:348xo9fg][/url:348xo9fg]
|
Best Editor to use? Any xBase aware ones? File Associations
|
gnome-commander looks good and it solved my problem - but somewhat indirectly. I double clicked on the .prg file and got a similar set of options. However I noticed that the .prg file had permissions of rwx. I removed the x permission and double clicking on the file brings up gedit in both gnome commander and the file browser now.
I tried double clicking on my program to run it but in gnome-commander and got the following error message:
No default application found for the mime-type application/x-executable.
Open the "File types and programs" page in the Control Center to add one.
Sound simple enough but I don't know where the Control Centre is as yet.
Also the terminal session that I launched gnome-commander from gets the following message:
(gnome-commander: 25300) Gtk WARNING **: Ignoring the separator setting
The 2 are presumably related. Anything to do with not having an extension to the filename of the executable? I also cannot launch from the file Browser but launches fine from a terminal (although slight exit problem as reported earlier)
xProgrammer
|
Best Editor to use? Any xBase aware ones? File Associations
|
Yes, we see what you mean. We can't launch the application from gnome-commander too neither from "Nautilus" (the standard file browser). Lets see if we can find a solutiion.
Its seems its not name related as we use the default extension ".a", the result is the same
>
Also the terminal session that I launched gnome-commander from gets the following message:
(gnome-commander: 25300) Gtk WARNING **: Ignoring the separator setting
>
Thats seems as a gnome-commander specific issue. I don't think its related
|
Best FWH functions for API Hash Curl
|
I was able to connect and change my shopdata with a API instruction.
The data string looks like this :
cData := '{"images":["5101000.jpg"],"sku":"skuData","ean":"98745123456","name":"Noyca","description":"Memo<b>Data</b>"}'
the API docs gives this a example data :
{
"model": "string",
"sku": "string",
"ean": "string",
"name": "string",
"description": "string",
"introDescription": "string",
"extraDescription": "string",
"metaTitle": "string",
"metaKeyword": "string",
"metaDescription": "string",
"quantity": 0,
"categoryId": 0,
"price": 0,
"purchasePrice": 0,
"status": true,
"taxRate": 0,
"manufacturerId": 0,
"width": 0,
"height": 0,
"weight": 0,
"images": [
"ImageOne"
],
"imagesAlt": [
"ImageOneAlt"
],
"resources": [
{
"resourceKey": "key",
"resourceValue": "value",
"resourceType": "type"
}
]
}
My question : Look at the last data : resources. It has several subdata's like Key, Value, Type....
I suspect that FWH has functions already build for generating this kind of strings, thinking that the data origin in my case sits in a dbf.
I know that i have to make a matching function for the dbf data to the online data.
Do these functions exist ? of do I have to make a function myself to generate this kind of string (cData as example)
|
Best FWH functions for API Hash Curl
|
Creo que es lo que necesitas
[code=fw:1jmx58un]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cData := hb_jsonEncode<span style="color: #000000;">(</span> hData <span style="color: #000000;">)</span><br />.....<br /><span style="color: #00C800;">Local</span> := hData := <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span><br />hb_jsondecode<span style="color: #000000;">(</span>cData,@hData <span style="color: #000000;">)</span> <br /> </div>[/code:1jmx58un]
|
Best FWH functions for API Hash Curl
|
[quote="leandro":36p7uc26]Creo que es lo que necesitas
[code=fw:36p7uc26]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cData := hb_jsonEncode<span style="color: #000000;">(</span> hData <span style="color: #000000;">)</span><br />.....<br /><span style="color: #00C800;">Local</span> := hData := <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span><br />hb_jsondecode<span style="color: #000000;">(</span>cData,@hData <span style="color: #000000;">)</span> <br /> </div>[/code:36p7uc26][/quote:36p7uc26]
Hey,
I can read the data and see it in xbrowse, but I want to put ALL fields into a dbf, because dbf I can handle/workwith.
Hashes I can work when they are simple like :
h2 := FW_RecToHash(), ;
oBrwT:LButtonUp(), ;
h1["positie"] = "100" ,;
FW_HashToRec( h1 ), ;
DBGOTO( nPos1 ), ;
FW_HashToRec( h2 ), ;
In the large datafile that comes from my site the hashes are more complex. I think like multidimensional or so and that is difficult for now
|
Best blogs to read / Mejores blogs a leer
|
Lets collect a good list of blogs to review / Reunamos una buena lista de blogs para leer:
[b:2gccorgp]General news / Noticias en general:[/b:2gccorgp]
<!-- m --><a class="postlink" href="http://www.digg.com">http://www.digg.com</a><!-- m --> (english)
<!-- m --><a class="postlink" href="http://www.meneame.net">http://www.meneame.net</a><!-- m --> (spanish)
[b:2gccorgp]Technology[/b:2gccorgp]
<!-- m --><a class="postlink" href="http://www.mydigitallife.info">http://www.mydigitallife.info</a><!-- m --> (english)
<!-- m --><a class="postlink" href="http://www.techmeme.com">http://www.techmeme.com</a><!-- m --> (english)
<!-- m --><a class="postlink" href="http://www.techcrunch.com">http://www.techcrunch.com</a><!-- m --> (english)
<!-- m --><a class="postlink" href="http://www.eliax.com">http://www.eliax.com</a><!-- m --> (spanish)
<!-- m --><a class="postlink" href="http://www.uberbin.net">http://www.uberbin.net</a><!-- m --> (spanish)
[b:2gccorgp]Programming questions (any language!)[/b:2gccorgp]
<!-- m --><a class="postlink" href="http://www.stackoverflow.com">http://www.stackoverflow.com</a><!-- m -->
|
Best blogs to read / Mejores blogs a leer
|
[b:2nve1e2y]Technology - Linux[/b:2nve1e2y]
[url:2nve1e2y]http://www.espaciolinux.com[/url:2nve1e2y] (spanish)
[url:2nve1e2y]http://www.vivalinux.com.ar/[/url:2nve1e2y] (spanish)
Saludos.
Carlos Sincuir
(editado por Antonio)
|
Best blogs to read / Mejores blogs a leer
|
[b:3v1kqx41]Tecnología [/b:3v1kqx41]
<!-- m --><a class="postlink" href="http://tlife.guru/">http://tlife.guru/</a><!-- m --> (español)
<!-- m --><a class="postlink" href="http://www.neoteo.com">http://www.neoteo.com</a><!-- m --> (español)
[b:3v1kqx41]Electrónica de consumo [/b:3v1kqx41]
<!-- m --><a class="postlink" href="http://www.xataka.com">http://www.xataka.com</a><!-- m --> (español)
[b:3v1kqx41]web y software[/b:3v1kqx41]
<!-- m --><a class="postlink" href="http://www.genbeta.com">http://www.genbeta.com</a><!-- m --> (español)
|
Best choice: Say:redefine() or Say:new()
|
Antonio and friends!How is the best choice when I have to create my objects into a dialog window?Say:redefine() or Say:new()? The redefine method via resource or the new method via oDlg:bPainted?
|
Best choice: Say:redefine() or Say:new()
|
Júlio,Using REDEFINE SAY ... you reuse the resource defined control including its coordinates and you can design your entire dialog from the resources editor.
|
Best current xBrowse doc/sample
|
Considering all of the enhancements made to xBrowse, what is the best documentation available for the current class ? What are the best sample files to review ?
I've been using TSBrowse ( older version ) but am considering using xBrowse.
Tim
|
Best current xBrowse doc/sample
|
Hello Tim,
did You have a look at the xBrowseTools ?
With the Tools, You can test all settings with Preview.
As well there is a source-generator included.
It is a very good help, if You want to change to xBrowse.
Also You can find different test-prg's in the subdirectory /samples of FWH.
Because I updated to FWH 9.04, there will be a Update in a short time.
For the moment, I'm still busy with my new ButtonTools.
Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
Best current xBrowse doc/sample
|
Unfortunately all the documentation on xbrowse is not available at one place. I can suggest the following three ways in that order.
1) Study samples in samples folder ( all programs containing 'xbrowse' ). In particular testxbrw3.prg contains more samples.
2) Study commands in xbrowse.ch along with source code of xbrowse.prg. Commands are simple and are compatible with WBrowse and TCBrowse. In most cases simple @ r, c LISTBOX compatible commands of xbrowse can achieve a lot more than we normally expect.
3) Xbrowse documentation in the fivewin help files ( \fwh\manual\*.chm ) along with the announcements in the whatsnew.txt
|
Best current xBrowse doc/sample
|
[quote="ukoenig":238d35pk]
did You have a look at the xBrowseTools ?
With the Tools, You can test all settings with Preview.
As well there is a source-generator included.
It is a very good help, if You want to change to xBrowse.
[/quote:238d35pk]
Hi Uwe
Where can i get xBrowse Tools? I'd be interested in looking at that
Thanks
Pete
|
Best current xBrowse doc/sample
|
Hello Peter,
You can Download from here.
<!-- m --><a class="postlink" href="http://www.pflegeplus.com/fw_downloads/brwtools5.zip">http://www.pflegeplus.com/fw_downloads/brwtools5.zip</a><!-- m -->
Read something about the Update :
<!-- l --><a class="postlink-local" href="http://fivetechsupport.com/forums/viewtopic.php?f=3&t=13831&p=71403#p71403">viewtopic.php?f=3&t=13831&p=71403#p71403</a><!-- l -->
Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.