topic
stringlengths
1
63
text
stringlengths
1
577k
how to compile the file maindllp.c
[code=fw:2190o6u5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />line <span style="color: #000000;">187</span> : <br /><span style="color: #000000;">line</span> <span style="color: #000000;">188</span> : <span style="color: #000000;">char</span> * hb_parc<span style="color: #000000;">&#40;</span> int iParam, ... <span style="color: #000000;">&#41;</span><br />line <span style="color: #000000;">189</span> : <span style="color: #000000;">&#123;</span><br />line <span style="color: #000000;">190</span> :    <span style="color: #00C800;">static</span> FARPROC pParC = <span style="color: #00C800;">NULL</span>;<br />line <span style="color: #000000;">191</span> : <br /><span style="color: #000000;">line</span> <span style="color: #000000;">192</span> :    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !pParC <span style="color: #000000;">&#41;</span><br />line <span style="color: #000000;">193</span> :    <span style="color: #000000;">&#123;</span><br />line <span style="color: #000000;">194</span> :       pParC = hb_GetProcAddress<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"_hb_parc"</span> <span style="color: #000000;">&#41;</span>;<br />line <span style="color: #000000;">195</span> :    <span style="color: #000000;">&#125;</span><br />line <span style="color: #000000;">196</span> : <br /><span style="color: #000000;">line</span> <span style="color: #000000;">197</span> :    <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pExtIsArray && pParC <span style="color: #000000;">&#41;</span><br />line <span style="color: #000000;">198</span> :    <span style="color: #000000;">&#123;</span><br />line <span style="color: #000000;">199</span> :       <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> EXT_IS_ARRAY <span style="color: #000000;">&#41;</span> pExtIsArray <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#40;</span> iParam <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />line <span style="color: #000000;">200</span> :       <span style="color: #000000;">&#123;</span><br />line <span style="color: #000000;">201</span> :          va_list va;<br />line <span style="color: #000000;">202</span> :          ULONG ulArrayIndex;<br />line <span style="color: #000000;">203</span> : <br /><span style="color: #000000;">line</span> <span style="color: #000000;">204</span> :          va_start<span style="color: #000000;">&#40;</span> va, iParam <span style="color: #000000;">&#41;</span>;<br />line <span style="color: #000000;">205</span> :          ulArrayIndex = va_arg<span style="color: #000000;">&#40;</span> va, ULONG <span style="color: #000000;">&#41;</span>;<br />line <span style="color: #000000;">206</span> :          va_end<span style="color: #000000;">&#40;</span> va <span style="color: #000000;">&#41;</span>;<br />line <span style="color: #000000;">207</span> : <br /><span style="color: #000000;">line</span> <span style="color: #000000;">208</span> :          <span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> EXT_PARC2 <span style="color: #000000;">&#41;</span> pParC <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#40;</span> iParam, ulArrayIndex <span style="color: #000000;">&#41;</span>;<br />line <span style="color: #000000;">209</span> :       <span style="color: #000000;">&#125;</span><br />line <span style="color: #000000;">210</span> :       <span style="color: #00C800;">else</span><br />line <span style="color: #000000;">211</span> :       <span style="color: #000000;">&#123;</span><br />line <span style="color: #000000;">212</span> :          <span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> EXT_PARC1 <span style="color: #000000;">&#41;</span> pParC <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#40;</span> iParam <span style="color: #000000;">&#41;</span>;<br />line <span style="color: #000000;">213</span> :       <span style="color: #000000;">&#125;</span><br />line <span style="color: #000000;">214</span> :    <span style="color: #000000;">&#125;</span><br />line <span style="color: #000000;">215</span> :    <span style="color: #00C800;">else</span><br />line <span style="color: #000000;">216</span> :    <span style="color: #000000;">&#123;</span><br />line <span style="color: #000000;">217</span> :       <span style="color: #00C800;">return</span> <span style="color: #ff0000;">""</span>;<br />line <span style="color: #000000;">218</span> :    <span style="color: #000000;">&#125;</span><br />line <span style="color: #000000;">219</span> : <span style="color: #000000;">&#125;</span><br /><br /><br /><br /> </div>[/code:2190o6u5]
how to compile the file maindllp.c
Daniel, Please try to change this line this way: line 188 : static char * hb_parc( int iParam, ... )
how to compile the file maindllp.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland c:\xharbour\source\vm\maindllp.c: Error E2356 c:\xharbour\source\vm\maindllp.c 190: Type mismatch in redeclaration of 'hb_parc' Error E2344 c:\xharbour\include\hbapi.h 399: Earlier declaration of 'hb_parc' Error E2356 c:\xharbour\source\vm\maindllp.c 629: Type mismatch in redeclaration of 'hb_pards' Error E2344 c:\xharbour\include\hbapi.h 403: Earlier declaration of 'hb_pards' Error E2356 c:\xharbour\source\vm\maindllp.c 1519: Type mismatch in redeclaratio n of 'hb_snprintf' Error E2344 c:\xharbour\include\hbapi.h 681: Earlier declaration of 'hb_snprintf
how to compile the file maindllp.c
Daniel, maindllp.c properly compiled here on first try: [code=fw:blahyn37]<div class="fw" id="{CB}" style="font-family: monospace;"><br />C:\temp>c:\bcc55\bin\bcc32 -c -Ic:\xharbour\include maindllp.c<br />Borland C++ <span style="color: #000000;">5.5</span><span style="color: #000000;">.1</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1993</span>, <span style="color: #000000;">2000</span> Borland<br />maindllp.c:<br /><br /><span style="color: #000000;">C</span>:\temp><br /> </div>[/code:blahyn37] Here you have the resulting maindllp.obj: <!-- m --><a class="postlink" href="http://www.mediafire.com/?zmneuvzmi4i">http://www.mediafire.com/?zmneuvzmi4i</a><!-- m -->
how to compile the file maindllp.c
Hi Antonio, are you using last xharbour CVS? The problem still exists. i:\apps\bcc55\bin\bcc32 -c -Ii:\apps\xharbour\include -Ii:\apps\bcc55\include maindllp.c Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland maindllp.c: Error E2356 maindllp.c 189: Type mismatch in redeclaration of 'hb_parc' Error E2344 i:\apps\xharbour\include\hbapi.h 399: Earlier declaration of 'hb_parc' Error E2356 maindllp.c 628: Type mismatch in redeclaration of 'hb_pards' Error E2344 i:\apps\xharbour\include\hbapi.h 403: Earlier declaration of 'hb_pards' Error E2356 maindllp.c 1518: Type mismatch in redeclaration of 'hb_snprintf' Error E2344 i:\apps\xharbour\include\hbapi.h 681: Earlier declaration of 'hb_snprintf' *** 6 errors in Compile *** Regards, Roberto Parisi
how to compile the file maindllp.c
meu xharbour esta no link poderia verificar ou poderia me enviar uma copia dos fontes do seu xharbour ? my xharbour this could check the link or could send me a copy of the sources of their xharbour included the contrib directory? <!-- m --><a class="postlink" href="http://www.lopes.ms/fw/xharbour.rar">http://www.lopes.ms/fw/xharbour.rar</a><!-- m -->
how to compile the file maindllp.c
You can download maindllp.c from here: [url:2qyn3tb4]http&#58;//xharbour&#46;cvs&#46;sourceforge&#46;net/viewvc/*checkout*/xharbour/xharbour/source/vm/maindllp&#46;c?revision=1&#46;34[/url:2qyn3tb4]
how to compile the file maindllp.c
I changed the following lines (according to hbapi.h declaration): 188: char * hb_parc( int iParam, ... ) to const char * hb_parc( int iParam, ... ) 627: char * hb_pards( int iParam, ... ) /* retrieve a date as a string yyyymmdd */ to const char * hb_pards( int iParam, ... ) /* retrieve a date as a string yyyymmdd */ 1518: ULONG hb_snprintf( char * buffer, ULONG nSize, const char * format, ... ) to int hb_snprintf( char * buffer, size_t nSize, const char * format, ... ) Regards, Roberto Parisi
how to compile the file maindllp.c
Roberto, I guess the above just applies for Harbour, not xHarbour
how to compile the file maindllp.c
the problem is not the source code "maindllp.c" but in hbapi.h follows the hbapi.h xharbour antonio could check with your hbapi.h? <!-- m --><a class="postlink" href="http://www.lopes.ms/fw/hbapi.txt">http://www.lopes.ms/fw/hbapi.txt</a><!-- m --> <!-- m --><a class="postlink" href="http://www.lopes.ms/fw/hbapi.h">http://www.lopes.ms/fw/hbapi.h</a><!-- m --> would increase the limit on the number of characters from the board? now the limit is 60000 could increase to 100,000?
how to compile the file maindllp.c
Daniel, This is the right hbapi.h for xharbour: [url:1j7fjqvw]http&#58;//xharbour&#46;cvs&#46;sourceforge&#46;net/viewvc/*checkout*/xharbour/xharbour/include/hbapi&#46;h?revision=1&#46;272[/url:1j7fjqvw]
how to compile the file maindllp.c
change maindllp.c nos fontes dos xharbour cvs segue abaixo as alterações ja propostas pelo usuario Roberto Parisi antônio poderia reportar ao pessoal do projeto esse codigo fonte não é mais compilado no xharbour por isso esses erros continuam a compilação funcionou agora vou tentar gerar a dll e o exe line 190 before char * hb_parc( int iParam, ... ) after const char * hb_parc( int iParam, ... ) line 629 before char * hb_pards( int iParam, ... ) /* retrieve a date as a string yyyymmdd */ after const char * hb_pards( int iParam, ... ) /* retrieve a date as a string yyyymmdd */ line 1518 before ULONG hb_snprintf( char * buffer, ULONG nSize, const char * format, ... ) after int hb_snprintf( char * buffer, size_t nSize, const char * format, ... )
how to convert a string into a number
I need to convert a string "23600001122334455172700" in number and do not know how, With the "val ()" do not get a whole number. Please Help!
how to convert a string into a number
Try uCharToVal(xxx) your string Hth
how to convert a string into a number
No, this returns a character type result, not a numeric one: [code=fw:1rwtt4y2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; ? VALTYPE<span style="color: #000000;">&#40;</span> UCHARTOVAL<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"23600001122334455172700"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:1rwtt4y2] EMG
how to convert a string into a number
Your number seems to be too BIG for a 64 bits computer. [url:2ut0yl14]http&#58;//stackoverflow&#46;com/questions/6003492/how-big-can-a-64bit-signed-integer-be[/url:2ut0yl14] George
how to convert a string into a number
If what you want is to add to this number, you could use the SUBSTR() function to substract the last numbers of the string, add what you want and replace the string with the result...
how to convert a string into a number
THANK YOU for your help, my problem lies in the fact that the string "23600001122334455172700" / 97 then the whole number without decimals * 97 the first number-second number = nn 98-nn = control number used in IBAN
how to convert a string into a number
This is some code I found in javascript to check IBAN: [url:3p2uqhdb]http&#58;//www&#46;tbg5-finance&#46;org/checkiban&#46;js[/url:3p2uqhdb] [code=fw:3p2uqhdb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// More languages are welcome. Please send your list of country names, error messages, page text and explain text</span><br /><span style="color: #B900B9;">// to TBG5 administrator. More advice at the end of this script. Thnx</span><br /><br /><span style="color: #B900B9;">// Special thx to:</span><br /><span style="color: #B900B9;">// italian: Renato Polo                         norwegian: Siri-Anne dos Santos</span><br /><span style="color: #B900B9;">// french: Walter Hoffmann & Pierrick Daumain   polish: Norbert Wozniak</span><br /><span style="color: #B900B9;">// romanian: Kalman Pusztai                     serbian: Aleksandar Blagojevic</span><br /><span style="color: #B900B9;">// bulgarian: Luben Karavelov                   slovenian: Alfred Anzlovar</span><br /><span style="color: #B900B9;">// dutsh: Mark Sensen                           russian: Vasiliy Marhotsky</span><br /><span style="color: #B900B9;">// hungarian: Tibor Albert                      lithuanian: Edmundas Kausikas</span><br /><span style="color: #B900B9;">// turkish: Oguz Cekmeceligil                   catalan: Cristòfol-Josep Bordes i Figuerola</span><br /><span style="color: #B900B9;">// swedish: Lars Madej                          chinese: May Chen</span><br /><span style="color: #B900B9;">// greek: Stamatis Liatsos & Ian Gourley        spanish: Jesús Ferreiro</span><br /><span style="color: #B900B9;">// albanian: Artan Rrustemi                     portuguese: Antonio Aguiar</span><br /><span style="color: #B900B9;">// czech: Pavel Pech & Eva Marešová             finnish: Juha Keski-Nisula</span><br /><span style="color: #B900B9;">// slovak: Lubomir Duchon                       danish: Christian Staal</span><br /><span style="color: #B900B9;">// croatian: Zoran Babi?                        latvian: Toms Abeltins</span><br /><span style="color: #B900B9;">// estonian: Sven-Olav Paavel                   japanese: Kenji Itoh</span><br /><span style="color: #B900B9;">// georgian: Mikheil Kapanadze                  mongolian: Solongo Luvsan</span><br /><br /><span style="color: #B900B9;">// Other: Markus Olderdissen, Gabriele Del Prete, scripting; google.com, translation;</span><br /><br /><span style="color: #B900B9;">// Scripting: Hendrik Muus</span><br /><br /><span style="color: #B900B9;">// add in_array method to arrays</span><br />Array.prototype.in_array = <span style="color: #00C800;">function</span><span style="color: #000000;">&#40;</span>value<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    <span style="color: #0000ff;">var</span> found = <span style="color: #00C800;">false</span>;<br />    <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">var</span> i=<span style="color: #000000;">0</span>; i<this.length; i++<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>this<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> == value<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />            found = i;<br />            <span style="color: #00C800;">break</span>; <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">return</span> found; <span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// add ISO13616Prepare method to strings</span><br />String.prototype.ISO13616Prepare = <span style="color: #00C800;">function</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    <span style="color: #0000ff;">var</span> isostr = this.toUpperCase<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />    isostr = isostr.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> + isostr.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">var</span> i = <span style="color: #000000;">0</span>; i <= <span style="color: #000000;">25</span>; i++<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span>isostr.search<span style="color: #000000;">&#40;</span>String.fromCharCode<span style="color: #000000;">&#40;</span>i<span style="color: #000000;">+65</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> != <span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />            isostr = isostr.replace<span style="color: #000000;">&#40;</span>String.fromCharCode<span style="color: #000000;">&#40;</span>i<span style="color: #000000;">+65</span><span style="color: #000000;">&#41;</span>, String<span style="color: #000000;">&#40;</span>i<span style="color: #000000;">+10</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">return</span> isostr; <span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// add ISO7064Mod97_10 method to strings</span><br />String.prototype.ISO7064Mod97_10 = <span style="color: #00C800;">function</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    <span style="color: #0000ff;">var</span> parts = Math.ceil<span style="color: #000000;">&#40;</span>this.length/<span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #0000ff;">var</span> remainer = <span style="color: #ff0000;">""</span>;<br />    <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">var</span> i = <span style="color: #000000;">1</span>; i <= parts; i++<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        remainer = String<span style="color: #000000;">&#40;</span>parseFloat<span style="color: #000000;">&#40;</span>remainer+this.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>i<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span>*<span style="color: #000000;">7</span>, <span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>%<span style="color: #000000;">97</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">return</span> remainer; <span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// replacement of === for javascript version < 1.2</span><br /><span style="color: #00C800;">function</span> is_ident<span style="color: #000000;">&#40;</span>a,b<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    <span style="color: #0000ff;">var</span> identical = <span style="color: #00C800;">false</span>;<br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">typeof</span><span style="color: #000000;">&#40;</span>a<span style="color: #000000;">&#41;</span>==<span style="color: #0000ff;">typeof</span><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>a==b<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />            identical = <span style="color: #00C800;">true</span>; <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">return</span> identical; <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">// language codes</span><br /><span style="color: #B900B9;">//            1    2    3    4    5    6    7    8    9   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24   25   26   27   28   29   30   31   32</span><br /><span style="color: #0000ff;">var</span> lngc = <span style="color: #00C800;">new</span> Array <span style="color: #000000;">&#40;</span>  <span style="color: #ff0000;">"de"</span>,<span style="color: #ff0000;">"en"</span>,<span style="color: #ff0000;">"it"</span>,<span style="color: #ff0000;">"no"</span>,<span style="color: #ff0000;">"fr"</span>,<span style="color: #ff0000;">"pl"</span>,<span style="color: #ff0000;">"ro"</span>,<span style="color: #ff0000;">"sr"</span>,<span style="color: #ff0000;">"bg"</span>,<span style="color: #ff0000;">"sl"</span>,<span style="color: #ff0000;">"nl"</span>,<span style="color: #ff0000;">"ru"</span>,<span style="color: #ff0000;">"hu"</span>,<span style="color: #ff0000;">"lt"</span>,<span style="color: #ff0000;">"tr"</span>,<span style="color: #ff0000;">"ca"</span>,<span style="color: #ff0000;">"sv"</span>,<span style="color: #ff0000;">"zh"</span>,<span style="color: #ff0000;">"el"</span>,<span style="color: #ff0000;">"es"</span>,<span style="color: #ff0000;">"sq"</span>,<span style="color: #ff0000;">"pt"</span>,<span style="color: #ff0000;">"cs"</span>,<span style="color: #ff0000;">"fi"</span>,<span style="color: #ff0000;">"sk"</span>,<span style="color: #ff0000;">"da"</span>,<span style="color: #ff0000;">"hr"</span>,<span style="color: #ff0000;">"lv"</span>,<span style="color: #ff0000;">"et"</span>,<span style="color: #ff0000;">"ja"</span>,<span style="color: #ff0000;">"ka"</span>,<span style="color: #ff0000;">"mn"</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// we have currently these languages:   1 deutsch, german, 2 english, english, 3 italiano, italian, 4 norske, norwegian, 5 français, french, 6 polska, polish, 7 român?, romanian, </span><br /><span style="color: #B900B9;">//                  8 srpska, serbian, 9 ?????????, bulgarian, 10 slovenš?ina, slovenian, 11 nederlands, dutch, 12 ??????, russian, 13 magyar, hungarian, </span><br /><span style="color: #B900B9;">//                  14 lietuvos, lithuanian, 15 türkçe, turkish, 16 català, catalan, 17 svenska, swedish, 18 ??, chinese, 19 ???????, greek, 20 español, spanish, </span><br /><span style="color: #B900B9;">//                  21 shqiptar, albanian, 22 português, portuguese, 23 ?esky, czech, 24 suomalainen, finnish, 25 slovenskému, slovak, 26 dansk, danish, </span><br /><span style="color: #B900B9;">//                  27 hrvatski, croatian, 28 latvij?, latvian, 29 eesti, estonian, 30 ??, japanese, 31 ???????, georgian, 32 m????? ??????, mongolian</span><br /><span style="color: #B900B9;">// language selector</span><br /><span style="color: #0000ff;">var</span> lngsel =    <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>9<span style="color: #000000;">\"</span>>?????????, bulgarian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>16<span style="color: #000000;">\"</span>>català, catalan</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>23<span style="color: #000000;">\"</span>>?esky, czech</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>18<span style="color: #000000;">\"</span>>??, chinese</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>27<span style="color: #000000;">\"</span>>hrvatski, croatian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>26<span style="color: #000000;">\"</span>>dansk, danish</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>1<span style="color: #000000;">\"</span>>deutsch, german</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>29<span style="color: #000000;">\"</span>>eesti, estonian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>2<span style="color: #000000;">\"</span>>english, english</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>20<span style="color: #000000;">\"</span>>español, spanish</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>5<span style="color: #000000;">\"</span>>français, french</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>31<span style="color: #000000;">\"</span>>???????, georgian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>19<span style="color: #000000;">\"</span>>???????, greek</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>3<span style="color: #000000;">\"</span>>italiano, italian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>30<span style="color: #000000;">\"</span>>??, japanese</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>14<span style="color: #000000;">\"</span>>lietuvos, lithuanian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>28<span style="color: #000000;">\"</span>>latvij?, latvian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span>>magyar, hungarian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>32<span style="color: #000000;">\"</span>>m????? ??????, mongolian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>11<span style="color: #000000;">\"</span>>nederlands, dutch</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>4<span style="color: #000000;">\"</span>>norske, norwegian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>6<span style="color: #000000;">\"</span>>polska, polish</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>22<span style="color: #000000;">\"</span>>português, portuguese</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>7<span style="color: #000000;">\"</span>>român?, romanian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>12<span style="color: #000000;">\"</span>>??????, russian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>21<span style="color: #000000;">\"</span>>shqiptar, albanian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>25<span style="color: #000000;">\"</span>>slovenskému, slovak</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>10<span style="color: #000000;">\"</span>>slovenš?ina, slovenian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>8<span style="color: #000000;">\"</span>>srpska, serbian</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>24<span style="color: #000000;">\"</span>>suomalainen, finnish</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>17<span style="color: #000000;">\"</span>>svenska, swedish</option>"</span>+<br />        <span style="color: #ff0000;">"<option value=<span style="color: #000000;">\"</span>15<span style="color: #000000;">\"</span>>türkçe, turkish</option>"</span>;<br /><span style="color: #B900B9;">// country codes, fixed length for those countries, inner structure, IBAN example, IBAN requirement, SEPA, appliance of EU REGULATION 924/2009;260/2012 and EUR</span><br /><span style="color: #0000ff;">var</span> ilbced = <span style="color: #00C800;">new</span> Array <span style="color: #000000;">&#40;</span><br />            <span style="color: #ff0000;">"AD"</span>, <span style="color: #000000;">24</span>, <span style="color: #ff0000;">"F04F04A12"</span>,      <span style="color: #ff0000;">"AD1200012030200359100100"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"AE"</span>, <span style="color: #000000;">23</span>, <span style="color: #ff0000;">"F03F16"</span>,     <span style="color: #ff0000;">"AE070331234567890123456"</span>,      <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"AL"</span>, <span style="color: #000000;">28</span>, <span style="color: #ff0000;">"F08A16"</span>,     <span style="color: #ff0000;">"AL47212110090000000235698741"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"AT"</span>, <span style="color: #000000;">20</span>, <span style="color: #ff0000;">"F05F11"</span>,     <span style="color: #ff0000;">"AT611904300234573201"</span>,         <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"AZ"</span>, <span style="color: #000000;">28</span>, <span style="color: #ff0000;">"U04A20"</span>,     <span style="color: #ff0000;">"AZ21NABZ00000000137010001944"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"BA"</span>, <span style="color: #000000;">20</span>, <span style="color: #ff0000;">"F03F03F08F02"</span>,   <span style="color: #ff0000;">"BA391290079401028494"</span>,         <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"BE"</span>, <span style="color: #000000;">16</span>, <span style="color: #ff0000;">"F03F07F02"</span>,      <span style="color: #ff0000;">"BE68539007547034"</span>,         <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"BG"</span>, <span style="color: #000000;">22</span>, <span style="color: #ff0000;">"U04F04F02A08"</span>,   <span style="color: #ff0000;">"BG80BNBG96611020345678"</span>,       <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"BH"</span>, <span style="color: #000000;">22</span>, <span style="color: #ff0000;">"U04A14"</span>,     <span style="color: #ff0000;">"BH67BMAG00001299123456"</span>,       <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"CH"</span>, <span style="color: #000000;">21</span>, <span style="color: #ff0000;">"F05A12"</span>,     <span style="color: #ff0000;">"CH9300762011623852957"</span>,        <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"CR"</span>, <span style="color: #000000;">21</span>, <span style="color: #ff0000;">"F03F14"</span>,     <span style="color: #ff0000;">"CR0515202001026284066"</span>,        <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"CY"</span>, <span style="color: #000000;">28</span>, <span style="color: #ff0000;">"F03F05A16"</span>,      <span style="color: #ff0000;">"CY17002001280000001200527600"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"CZ"</span>, <span style="color: #000000;">24</span>, <span style="color: #ff0000;">"F04F06F10"</span>,      <span style="color: #ff0000;">"CZ6508000000192000145399"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"DE"</span>, <span style="color: #000000;">22</span>, <span style="color: #ff0000;">"F08F10"</span>,     <span style="color: #ff0000;">"DE89370400440532013000"</span>,       <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"DK"</span>, <span style="color: #000000;">18</span>, <span style="color: #ff0000;">"F04F09F01"</span>,      <span style="color: #ff0000;">"DK5000400440116243"</span>,           <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"DO"</span>, <span style="color: #000000;">28</span>, <span style="color: #ff0000;">"U04F20"</span>,     <span style="color: #ff0000;">"DO28BAGR00000001212453611324"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"EE"</span>, <span style="color: #000000;">20</span>, <span style="color: #ff0000;">"F02F02F11F01"</span>,   <span style="color: #ff0000;">"EE382200221020145685"</span>,         <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"ES"</span>, <span style="color: #000000;">24</span>, <span style="color: #ff0000;">"F04F04F01F01F10"</span>,    <span style="color: #ff0000;">"ES9121000418450200051332"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"FI"</span>, <span style="color: #000000;">18</span>, <span style="color: #ff0000;">"F06F07F01"</span>,      <span style="color: #ff0000;">"FI2112345600000785"</span>,           <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"FO"</span>, <span style="color: #000000;">18</span>, <span style="color: #ff0000;">"F04F09F01"</span>,      <span style="color: #ff0000;">"FO6264600001631634"</span>,           <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"FR"</span>, <span style="color: #000000;">27</span>, <span style="color: #ff0000;">"F05F05A11F02"</span>,   <span style="color: #ff0000;">"FR1420041010050500013M02606"</span>,      <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"GB"</span>, <span style="color: #000000;">22</span>, <span style="color: #ff0000;">"U04F06F08"</span>,      <span style="color: #ff0000;">"GB29NWBK60161331926819"</span>,       <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"GE"</span>, <span style="color: #000000;">22</span>, <span style="color: #ff0000;">"U02F16"</span>,     <span style="color: #ff0000;">"GE29NB0000000101904917"</span>,       <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"GI"</span>, <span style="color: #000000;">23</span>, <span style="color: #ff0000;">"U04A15"</span>,     <span style="color: #ff0000;">"GI75NWBK000000007099453"</span>,      <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"GL"</span>, <span style="color: #000000;">18</span>, <span style="color: #ff0000;">"F04F09F01"</span>,      <span style="color: #ff0000;">"GL8964710001000206"</span>,           <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"GR"</span>, <span style="color: #000000;">27</span>, <span style="color: #ff0000;">"F03F04A16"</span>,      <span style="color: #ff0000;">"GR1601101250000000012300695"</span>,      <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"GT"</span>, <span style="color: #000000;">28</span>, <span style="color: #ff0000;">"A04A20"</span>,     <span style="color: #ff0000;">"GT82TRAJ01020000001210029690"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"HR"</span>, <span style="color: #000000;">21</span>, <span style="color: #ff0000;">"F07F10"</span>,     <span style="color: #ff0000;">"HR1210010051863000160"</span>,        <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"HU"</span>, <span style="color: #000000;">28</span>, <span style="color: #ff0000;">"F03F04F01F15F01"</span>,    <span style="color: #ff0000;">"HU42117730161111101800000000"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"IE"</span>, <span style="color: #000000;">22</span>, <span style="color: #ff0000;">"U04F06F08"</span>,      <span style="color: #ff0000;">"IE29AIBK93115212345678"</span>,       <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"IL"</span>, <span style="color: #000000;">23</span>, <span style="color: #ff0000;">"F03F03F13"</span>,      <span style="color: #ff0000;">"IL620108000000099999999"</span>,      <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"IS"</span>, <span style="color: #000000;">26</span>, <span style="color: #ff0000;">"F04F02F06F10"</span>,   <span style="color: #ff0000;">"IS140159260076545510730339"</span>,       <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"IT"</span>, <span style="color: #000000;">27</span>, <span style="color: #ff0000;">"U01F05F05A12"</span>,   <span style="color: #ff0000;">"IT60X0542811101000000123456"</span>,      <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"KW"</span>, <span style="color: #000000;">30</span>, <span style="color: #ff0000;">"U04A22"</span>,     <span style="color: #ff0000;">"KW81CBKU0000000000001234560101"</span>,   <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"KZ"</span>, <span style="color: #000000;">20</span>, <span style="color: #ff0000;">"F03A13"</span>,     <span style="color: #ff0000;">"KZ86125KZT5004100100"</span>,         <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"LB"</span>, <span style="color: #000000;">28</span>, <span style="color: #ff0000;">"F04A20"</span>,     <span style="color: #ff0000;">"LB62099900000001001901229114"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"LI"</span>, <span style="color: #000000;">21</span>, <span style="color: #ff0000;">"F05A12"</span>,     <span style="color: #ff0000;">"LI21088100002324013AA"</span>,        <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"LT"</span>, <span style="color: #000000;">20</span>, <span style="color: #ff0000;">"F05F11"</span>,     <span style="color: #ff0000;">"LT121000011101001000"</span>,         <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"LU"</span>, <span style="color: #000000;">20</span>, <span style="color: #ff0000;">"F03A13"</span>,     <span style="color: #ff0000;">"LU280019400644750000"</span>,         <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"LV"</span>, <span style="color: #000000;">21</span>, <span style="color: #ff0000;">"U04A13"</span>,     <span style="color: #ff0000;">"LV80BANK0000435195001"</span>,        <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"MC"</span>, <span style="color: #000000;">27</span>, <span style="color: #ff0000;">"F05F05A11F02"</span>,   <span style="color: #ff0000;">"MC5811222000010123456789030"</span>,      <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"MD"</span>, <span style="color: #000000;">24</span>, <span style="color: #ff0000;">"U02F18"</span>,     <span style="color: #ff0000;">"MD24AG000225100013104168"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"ME"</span>, <span style="color: #000000;">22</span>, <span style="color: #ff0000;">"F03F13F02"</span>,      <span style="color: #ff0000;">"ME25505000012345678951"</span>,       <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"MK"</span>, <span style="color: #000000;">19</span>, <span style="color: #ff0000;">"F03A10F02"</span>,      <span style="color: #ff0000;">"MK07250120000058984"</span>,          <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"MR"</span>, <span style="color: #000000;">27</span>, <span style="color: #ff0000;">"F05F05F11F02"</span>,   <span style="color: #ff0000;">"MR1300020001010000123456753"</span>,      <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"MT"</span>, <span style="color: #000000;">31</span>, <span style="color: #ff0000;">"U04F05A18"</span>,      <span style="color: #ff0000;">"MT84MALT011000012345MTLCAST001S"</span>,  <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"MU"</span>, <span style="color: #000000;">30</span>, <span style="color: #ff0000;">"U04F02F02F12F03U03"</span>, <span style="color: #ff0000;">"MU17BOMM0101101030300200000MUR"</span>,   <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"NL"</span>, <span style="color: #000000;">18</span>, <span style="color: #ff0000;">"U04F10"</span>,     <span style="color: #ff0000;">"NL91ABNA0417164300"</span>,           <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"NO"</span>, <span style="color: #000000;">15</span>, <span style="color: #ff0000;">"F04F06F01"</span>,      <span style="color: #ff0000;">"NO9386011117947"</span>,          <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"PK"</span>, <span style="color: #000000;">24</span>, <span style="color: #ff0000;">"U04A16"</span>,     <span style="color: #ff0000;">"PK36SCBL0000001123456702"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"PL"</span>, <span style="color: #000000;">28</span>, <span style="color: #ff0000;">"F08F16"</span>,     <span style="color: #ff0000;">"PL61109010140000071219812874"</span>,     <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"PS"</span>, <span style="color: #000000;">29</span>, <span style="color: #ff0000;">"U04A21"</span>,     <span style="color: #ff0000;">"PS92PALS000000000400123456702"</span>,    <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"PT"</span>, <span style="color: #000000;">25</span>, <span style="color: #ff0000;">"F04F04F11F02"</span>,   <span style="color: #ff0000;">"PT50000201231234567890154"</span>,        <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"RO"</span>, <span style="color: #000000;">24</span>, <span style="color: #ff0000;">"U04A16"</span>,     <span style="color: #ff0000;">"RO49AAAA1B31007593840000"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"RS"</span>, <span style="color: #000000;">22</span>, <span style="color: #ff0000;">"F03F13F02"</span>,      <span style="color: #ff0000;">"RS35260005601001611379"</span>,       <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"SA"</span>, <span style="color: #000000;">24</span>, <span style="color: #ff0000;">"F02A18"</span>,     <span style="color: #ff0000;">"SA0380000000608010167519"</span>,     <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"SE"</span>, <span style="color: #000000;">24</span>, <span style="color: #ff0000;">"F03F16F01"</span>,      <span style="color: #ff0000;">"SE4550000000058398257466"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"SI"</span>, <span style="color: #000000;">19</span>, <span style="color: #ff0000;">"F05F08F02"</span>,      <span style="color: #ff0000;">"SI56263300012039086"</span>,          <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"SK"</span>, <span style="color: #000000;">24</span>, <span style="color: #ff0000;">"F04F06F10"</span>,      <span style="color: #ff0000;">"SK3112000000198742637541"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"y"</span>,<br />            <span style="color: #ff0000;">"SM"</span>, <span style="color: #000000;">27</span>, <span style="color: #ff0000;">"U01F05F05A12"</span>,   <span style="color: #ff0000;">"SM86U0322509800000000270100"</span>,      <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"TN"</span>, <span style="color: #000000;">24</span>, <span style="color: #ff0000;">"F02F03F13F02"</span>,   <span style="color: #ff0000;">"TN5910006035183598478831"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"TR"</span>, <span style="color: #000000;">26</span>, <span style="color: #ff0000;">"F05A01A16"</span>,      <span style="color: #ff0000;">"TR330006100519786457841326"</span>,       <span style="color: #ff0000;">"y"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>,<br />            <span style="color: #ff0000;">"VG"</span>, <span style="color: #000000;">24</span>, <span style="color: #ff0000;">"U04F16"</span>,     <span style="color: #ff0000;">"VG96VPVG0000012345678901"</span>,     <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span>, <span style="color: #ff0000;">"n"</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// we have currently # countries</span><br /><span style="color: #0000ff;">var</span> ctcnt = ilbced.length/<span style="color: #000000;">8</span>;<br /><span style="color: #B900B9;">// use language 2 (english) by default</span><br /><span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #0000ff;">typeof</span><span style="color: #000000;">&#40;</span>lngg<span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'undefined'</span><span style="color: #000000;">&#41;</span> || <span style="color: #000000;">&#40;</span>lngg > lngc.length<span style="color: #000000;">&#41;</span> || <span style="color: #000000;">&#40;</span>lngg < <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    lngg = <span style="color: #000000;">2</span>;<br />    <span style="color: #B900B9;">// workaround</span><br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>location.search != <span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>location.search != <span style="color: #ff0000;">"?"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        sstr = <span style="color: #0000ff;">window</span>.location.search.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,<span style="color: #0000ff;">window</span>.location.search.length<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span>;<br />        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!isNaN<span style="color: #000000;">&#40;</span>sstr <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>sstr*<span style="color: #000000;">1</span> > <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>sstr*<span style="color: #000000;">1</span> <= lngc.length<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />            lngg = Number<span style="color: #000000;">&#40;</span>sstr<span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// rearange country codes and related info</span><br /><span style="color: #0000ff;">var</span> ilbc = <span style="color: #00C800;">new</span> Array <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span>j = <span style="color: #000000;">0</span>; j < <span style="color: #000000;">8</span>; j++<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span>i = <span style="color: #000000;">0</span>; i < ctcnt; i++<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        ilbc<span style="color: #000000;">&#91;</span>ilbc.length<span style="color: #000000;">&#93;</span>=ilbced<span style="color: #000000;">&#91;</span>j+i*<span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>;  <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// the magic core routine</span><br /><span style="color: #00C800;">function</span> checkibancore<span style="color: #000000;">&#40;</span>iban<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    <span style="color: #0000ff;">var</span> standard = <span style="color: #000000;">-1</span>;<br />    illegal = /\W|_/; <span style="color: #B900B9;">// contains chars other than (a-zA-Z0-9) </span><br />    <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>illegal.test<span style="color: #000000;">&#40;</span>iban<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <span style="color: #B900B9;">// yes, alert and exit</span><br />        illegal = /<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>\W|_<span style="color: #000000;">&#41;</span>+<span style="color: #000000;">&#41;</span>/g;<br />        <span style="color: #0000ff;">var</span> ichars;<br />        <span style="color: #0000ff;">var</span> aliban = <span style="color: #ff0000;">""</span>;<br />        <span style="color: #0000ff;">var</span> lindex = <span style="color: #000000;">-1</span>;<br />        <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span>ichars = illegal.exec<span style="color: #000000;">&#40;</span>iban<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />            aliban += iban.substring<span style="color: #000000;">&#40;</span>lindex<span style="color: #000000;">+1</span>,ichars.<span style="color: #0000ff;">index</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<strong>"</span>+ichars<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">"</strong>"</span>;<br />            lindex = ichars.<span style="color: #0000ff;">index</span>;  <br />        <span style="color: #000000;">&#125;</span><br />        aliban += iban.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>lindex<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span>;<br />        aliban = aliban.replace<span style="color: #000000;">&#40;</span>/\|/g, <span style="color: #ff0000;">"%7C"</span><span style="color: #000000;">&#41;</span>;<br />        alert<span style="color: #000000;">&#40;</span>aliban+<span style="color: #ff0000;">"<span style="color: #000000;">\n</span><span style="color: #000000;">\n</span>"</span>+altxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;<br />        <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"0"</span>; <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span> <span style="color: #B900B9;">// no, continue</span><br />        illegal = /^\D\D\d\d.+/; <span style="color: #B900B9;">// first chars are letter letter digit digit</span><br />        <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>illegal.test<span style="color: #000000;">&#40;</span>iban<span style="color: #000000;">&#41;</span> == <span style="color: #00C800;">false</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <span style="color: #B900B9;">// no, alert and exit</span><br />            alert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"|"</span>+iban.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"|"</span>+iban.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\n</span><span style="color: #000000;">\n</span>"</span>+altxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>; <br />            <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"0"</span>; <span style="color: #000000;">&#125;</span><br />        <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span> <span style="color: #B900B9;">// yes, continue</span><br />            illegal = /^\D\D00.+|^\D\D01.+|^\D\D99.+/; <span style="color: #B900B9;">// check digit are 00 or 01 or 99</span><br />            <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>illegal.test<span style="color: #000000;">&#40;</span>iban<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <span style="color: #B900B9;">// yes, alert and exit</span><br />                alert<span style="color: #000000;">&#40;</span>iban.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"|"</span>+iban.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"|"</span>+iban.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\n</span><span style="color: #000000;">\n</span>"</span>+altxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;<br />                <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"0"</span>; <span style="color: #000000;">&#125;</span><br />            <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span> <span style="color: #B900B9;">// no, continue</span><br />                lofi = ilbc.slice<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,ctcnt<span style="color: #000000;">&#41;</span>.in_array<span style="color: #000000;">&#40;</span>iban.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>.toUpperCase<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// test if country respected</span><br />                <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>is_ident<span style="color: #000000;">&#40;</span><span style="color: #00C800;">false</span>,lofi<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> ctck=<span style="color: #000000;">-1</span>; lofi=<span style="color: #000000;">6</span>; <span style="color: #000000;">&#125;</span>  <span style="color: #B900B9;">// country not respected</span><br />                <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span> ctck=lofi; lofi=ilbc<span style="color: #000000;">&#91;</span>lofi+ctcnt*<span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>; <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// country respected</span><br />                <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>lofi == <span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <span style="color: #B900B9;">// not respected, alert</span><br />                    alert<span style="color: #000000;">&#40;</span>altxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>+iban.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>.toUpperCase<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+altxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>; <br />                    lofi = iban.length; <span style="color: #000000;">&#125;</span>  <span style="color: #B900B9;">// but continue</span><br />                <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>iban.length-lofi<span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <span style="color: #B900B9;">// fits length to country</span><br />                    alert<span style="color: #000000;">&#40;</span>altxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>+ctynm<span style="color: #000000;">&#91;</span>ctck<span style="color: #000000;">&#93;</span>+altxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>+ilbc<span style="color: #000000;">&#91;</span>ctck+ctcnt*<span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>+altxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// no, alert and exit</span><br />                    <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"0"</span>; <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// yes, continue</span><br />                <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ctck >= <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> illegal = buildtest<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"B04"</span> +ilbc<span style="color: #000000;">&#91;</span>ctck+ctcnt*<span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>,standard<span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// fetch sub structure of respected country</span><br />                <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span> illegal = /.+/; <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// or take care of not respected country</span><br />                <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>illegal.test<span style="color: #000000;">&#40;</span>iban<span style="color: #000000;">&#41;</span> == <span style="color: #00C800;">false</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <span style="color: #B900B9;">// fits sub structure to country</span><br />                    alert<span style="color: #000000;">&#40;</span>getstructurealert<span style="color: #000000;">&#40;</span>ilbc<span style="color: #000000;">&#91;</span>ctck+ctcnt*<span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>,iban<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\n</span><span style="color: #000000;">\n</span>"</span>+altxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// no, alert and exit</span><br />                    <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"0"</span>; <span style="color: #000000;">&#125;</span><br />                <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span> <span style="color: #B900B9;">// yes, continue</span><br />                    <span style="color: #00C800;">return</span> iban.ISO13616Prepare<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.ISO7064Mod97_10<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// calculate and return the remainer</span><br /><span style="color: #B900B9;">// perform the check</span><br /><span style="color: #00C800;">function</span> checkiban<span style="color: #000000;">&#40;</span>iban<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>checkibancore<span style="color: #000000;">&#40;</span>iban<span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"1"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> alert<span style="color: #000000;">&#40;</span>altxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// and prompt result</span><br />    <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span> alert<span style="color: #000000;">&#40;</span>altxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">function</span> buildtest<span style="color: #000000;">&#40;</span>structure,kind<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    <span style="color: #0000ff;">var</span> result = <span style="color: #ff0000;">""</span>;<br />    <span style="color: #0000ff;">var</span> testpattern = structure.<span style="color: #0000ff;">match</span><span style="color: #000000;">&#40;</span>/<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>ABCFLUW<span style="color: #000000;">&#93;</span>\d<span style="color: #000000;">&#123;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span>/g<span style="color: #000000;">&#41;</span>;<br />    <span style="color: #0000ff;">var</span> patterncount = testpattern.length;<br />    <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">var</span> i = <span style="color: #000000;">0</span>; i < patterncount; ++i<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>kind >= <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>&&<span style="color: #000000;">&#40;</span>i != kind<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>||<span style="color: #000000;">&#40;</span>kind == <span style="color: #000000;">-2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />            result += testpart<span style="color: #000000;">&#40;</span>testpattern<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>,<span style="color: #ff0000;">"any"</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br />        <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />            result += testpart<span style="color: #000000;">&#40;</span>testpattern<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>,<span style="color: #ff0000;">"standard"</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">return</span> <span style="color: #00C800;">new</span> RegExp<span style="color: #000000;">&#40;</span>result<span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">function</span> testpart<span style="color: #000000;">&#40;</span>pattern,kind<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    <span style="color: #0000ff;">var</span> testpattern = <span style="color: #ff0000;">"("</span>;<br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>kind == <span style="color: #ff0000;">"any"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        testpattern += <span style="color: #ff0000;">"."</span>; <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />        testpattern += <span style="color: #ff0000;">"["</span>;<br />        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>kind == <span style="color: #ff0000;">"reverse"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />            testpattern += <span style="color: #ff0000;">"^"</span>; <span style="color: #000000;">&#125;</span><br />        <span style="color: #00C800;">switch</span> <span style="color: #000000;">&#40;</span>pattern.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />            <span style="color: #00C800;">case</span> <span style="color: #ff0000;">"A"</span>: <span style="color: #000000;">testpattern</span> += <span style="color: #ff0000;">"0-9A-Za-z"</span>; <span style="color: #00C800;">break</span>;<br />            <span style="color: #00C800;">case</span> <span style="color: #ff0000;">"B"</span>: <span style="color: #000000;">testpattern</span> += <span style="color: #ff0000;">"0-9A-Z"</span>; <span style="color: #00C800;">break</span>;<br />            <span style="color: #00C800;">case</span> <span style="color: #ff0000;">"C"</span>: <span style="color: #000000;">testpattern</span> += <span style="color: #ff0000;">"A-Za-z"</span>; <span style="color: #00C800;">break</span>;<br />            <span style="color: #00C800;">case</span> <span style="color: #ff0000;">"F"</span>: <span style="color: #000000;">testpattern</span> += <span style="color: #ff0000;">"0-9"</span>; <span style="color: #00C800;">break</span>;<br />            <span style="color: #00C800;">case</span> <span style="color: #ff0000;">"L"</span>: <span style="color: #000000;">testpattern</span> += <span style="color: #ff0000;">"a-z"</span>; <span style="color: #00C800;">break</span>;<br />            <span style="color: #00C800;">case</span> <span style="color: #ff0000;">"U"</span>: <span style="color: #000000;">testpattern</span> += <span style="color: #ff0000;">"A-Z"</span>; <span style="color: #00C800;">break</span>;<br />            <span style="color: #00C800;">case</span> <span style="color: #ff0000;">"W"</span>: <span style="color: #000000;">testpattern</span> += <span style="color: #ff0000;">"0-9a-z"</span>; <span style="color: #00C800;">break</span>; <span style="color: #000000;">&#125;</span><br />        testpattern += <span style="color: #ff0000;">"]"</span>; <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>pattern.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>*<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>kind != <span style="color: #ff0000;">"reverse"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        testpattern += <span style="color: #ff0000;">"{"</span>+String<span style="color: #000000;">&#40;</span>pattern.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>*<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"}"</span>; <span style="color: #000000;">&#125;</span><br />    testpattern += <span style="color: #ff0000;">")"</span>;<br />    <span style="color: #00C800;">return</span> testpattern; <span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">function</span> getstructurealert<span style="color: #000000;">&#40;</span>structure,iban<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    any = <span style="color: #000000;">-2</span>;<br />    structure = <span style="color: #ff0000;">"B04"</span> + structure;<br />    <span style="color: #0000ff;">var</span> result = <span style="color: #ff0000;">""</span>;<br />    <span style="color: #0000ff;">var</span> failpattern = <span style="color: #ff0000;">""</span>;<br />    <span style="color: #0000ff;">var</span> testpattern = structure.<span style="color: #0000ff;">match</span><span style="color: #000000;">&#40;</span>/<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>ABCFLUW<span style="color: #000000;">&#93;</span>\d<span style="color: #000000;">&#123;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span>/g<span style="color: #000000;">&#41;</span>;<br />    <span style="color: #0000ff;">var</span> patterncount = testpattern.length;<br />    <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">var</span> i = <span style="color: #000000;">0</span>; i < patterncount; ++i<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        failpattern = buildtest<span style="color: #000000;">&#40;</span>structure,i<span style="color: #000000;">&#41;</span>;<br />        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!failpattern.test<span style="color: #000000;">&#40;</span>iban<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />            failpattern = buildtest<span style="color: #000000;">&#40;</span>structure,any<span style="color: #000000;">&#41;</span>;<br />            <span style="color: #0000ff;">var</span> ibanparts = iban.<span style="color: #0000ff;">match</span><span style="color: #000000;">&#40;</span>failpattern<span style="color: #000000;">&#41;</span>;<br />            <span style="color: #0000ff;">var</span> ibanpart = ibanparts<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">+1</span><span style="color: #000000;">&#93;</span>;<br />            <span style="color: #0000ff;">var</span> partpattern = structure.<span style="color: #0000ff;">match</span><span style="color: #000000;">&#40;</span>/<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>ABCFLUW<span style="color: #000000;">&#93;</span>\d<span style="color: #000000;">&#123;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span>/g<span style="color: #000000;">&#41;</span>;<br />            <span style="color: #0000ff;">var</span> failures = ibanpart.<span style="color: #0000ff;">match</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">new</span> RegExp<span style="color: #000000;">&#40;</span>testpart<span style="color: #000000;">&#40;</span>partpattern<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>,<span style="color: #ff0000;">"reverse"</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">"g"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />            <span style="color: #0000ff;">var</span> failure = <span style="color: #000000;">0</span>;<br />            <span style="color: #0000ff;">var</span> pos = <span style="color: #000000;">0</span>;<br />            <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>pos < ibanpart.length<span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>failure < failures.length<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />                <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ibanpart.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>pos,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> == failures<span style="color: #000000;">&#91;</span>failure<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />                    result += <span style="color: #ff0000;">"|"</span>+ibanpart.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>pos,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"|"</span>;<br />                    ++failure; <span style="color: #000000;">&#125;</span><br />                <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />                    result += ibanpart.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>pos,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br />                ++pos; <span style="color: #000000;">&#125;</span><br />            result += ibanpart.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>pos<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>; <span style="color: #000000;">&#125;</span><br />        <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />            <span style="color: #0000ff;">var</span> ibanparts = iban.<span style="color: #0000ff;">match</span><span style="color: #000000;">&#40;</span>failpattern<span style="color: #000000;">&#41;</span>;<br />            result += ibanparts<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">+1</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">" "</span>; <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br />    result = result.replace<span style="color: #000000;">&#40;</span>/||/g, <span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #00C800;">return</span> result;<span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// some convenience for web page</span><br /><span style="color: #00C800;">function</span> langsel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> document.write<span style="color: #000000;">&#40;</span>lngsel<span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">//language selector</span><br /><span style="color: #00C800;">function</span> lginfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>is_ident<span style="color: #000000;">&#40;</span><span style="color: #00C800;">false</span>,lngc.in_array<span style="color: #000000;">&#40;</span>hlc.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<BR><small>"</span>+hlc+<span style="color: #ff0000;">" currently not translated, like to translate?</small>"</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">function</span> rwt<span style="color: #000000;">&#40;</span>tnum<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <br />    document.write<span style="color: #000000;">&#40;</span>wptxt<span style="color: #000000;">&#91;</span>tnum<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">//web page text by number</span><br /><span style="color: #00C800;">function</span> rwt2<span style="color: #000000;">&#40;</span>pos<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>wptxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span> == pos<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">" <a href='http://eur-lex.europa.eu/Result.do?RechType=RECH_celex&code=32009R0924&checktexts=checkbox' target='_blank' title='Regulation 924 on eur-lex.europa.eu'>EU Regulation 924/2009</a>; <a href='http://eur-lex.europa.eu/Result.do?RechType=RECH_celex&code=32012R0260&checktexts=checkbox' target='_blank' title='Regulation 260 on eur-lex.europa.eu'>EU Regulation 260/2012 </a>"</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">//special web page text</span><br /><span style="color: #B900B9;">// whole line of special web page text</span><br /><span style="color: #00C800;">function</span> rwt3<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <br />    document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<small><BR>("</span><span style="color: #000000;">&#41;</span>;<br />    rwt2<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>;<br />    document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<span class=<span style="color: #000000;">\"</span>tbg5eray<span style="color: #000000;">\"</span>>"</span><span style="color: #000000;">&#41;</span>;<br />    rwt<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>;<br />    document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"</span> / <span class=<span style="color: #000000;">\"</span>tbg5eran<span style="color: #000000;">\"</span>>"</span><span style="color: #000000;">&#41;</span>;<br />    rwt<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>;<br />    document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"</span>"</span><span style="color: #000000;">&#41;</span>;<br />    rwt2<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>;<br />    document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">")<BR><BR></small>"</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// some convenience to list the countries</span><br /><span style="color: #B900B9;">// 3 IBAN example, 4 IBAN requirement, 5 SEPA, 6 appliance of EU REGULATION 924/2009;260/2012 and 7 EUR</span><br /><span style="color: #00C800;">function</span> rcr<span style="color: #000000;">&#40;</span>tnum<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">return</span> ilbc<span style="color: #000000;">&#91;</span>tnum+ctcnt*<span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>; <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">//country regulatory info by number (EU regulation)</span><br /><span style="color: #00C800;">function</span> rcl<span style="color: #000000;">&#40;</span>tnum<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">return</span> wptxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>+ilbc<span style="color: #000000;">&#91;</span>tnum+ctcnt*<span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>; <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">//hover text for code (length)</span><br /><span style="color: #00C800;">function</span> rce<span style="color: #000000;">&#40;</span>tnum<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">return</span> wptxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>+ilbc<span style="color: #000000;">&#91;</span>tnum+ctcnt*<span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>; <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">//hover text for name (example)</span><br /><span style="color: #00C800;">function</span> rir<span style="color: #000000;">&#40;</span>tnum,ipath<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>  <span style="color: #B900B9;">//note mark (IBAN requirement etc)</span><br />    rirrt = <span style="color: #ff0000;">""</span><br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ilbc<span style="color: #000000;">&#91;</span>tnum+ctcnt*<span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> == <span style="color: #ff0000;">"y"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>    <span style="color: #B900B9;">// IBAN requirement</span><br />        rirrt = <span style="color: #ff0000;">"<img border=<span style="color: #000000;">\"</span>0<span style="color: #000000;">\"</span> width=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> height=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> src=<span style="color: #000000;">\"</span>"</span>+ipath+<span style="color: #ff0000;">"iban.png<span style="color: #000000;">\"</span> alt=<span style="color: #000000;">\"</span>"</span>+wptxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\"</span> title=<span style="color: #000000;">\"</span>"</span>+wptxt<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\"</span>>"</span>; <span style="color: #000000;">&#125;</span> <br />    <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />        rirrt = <span style="color: #ff0000;">"<img border=<span style="color: #000000;">\"</span>0<span style="color: #000000;">\"</span> width=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> height=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> src=<span style="color: #000000;">\"</span>"</span>+ipath+<span style="color: #ff0000;">"empt.png<span style="color: #000000;">\"</span>>"</span>; <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ilbc<span style="color: #000000;">&#91;</span>tnum+ctcnt*<span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span> == <span style="color: #ff0000;">"y"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>    <span style="color: #B900B9;">// SEPA</span><br />        rirrt += <span style="color: #ff0000;">"<img border=<span style="color: #000000;">\"</span>0<span style="color: #000000;">\"</span> width=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> height=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> src=<span style="color: #000000;">\"</span>"</span>+ipath+<span style="color: #ff0000;">"sepa.png<span style="color: #000000;">\"</span> alt=<span style="color: #000000;">\"</span>SEPA<span style="color: #000000;">\"</span> title=<span style="color: #000000;">\"</span>SEPA<span style="color: #000000;">\"</span>></br>"</span>; <span style="color: #000000;">&#125;</span> <br />    <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />        rirrt += <span style="color: #ff0000;">"<img border=<span style="color: #000000;">\"</span>0<span style="color: #000000;">\"</span> width=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> height=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> src=<span style="color: #000000;">\"</span>"</span>+ipath+<span style="color: #ff0000;">"empt.png<span style="color: #000000;">\"</span>></br>"</span>; <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ilbc<span style="color: #000000;">&#91;</span>tnum+ctcnt*<span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span> == <span style="color: #ff0000;">"y"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>    <span style="color: #B900B9;">// appliance of EU REGULATION 924/2009;260/2012</span><br />        rirrt += <span style="color: #ff0000;">"<img border=<span style="color: #000000;">\"</span>0<span style="color: #000000;">\"</span> width=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> height=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> src=<span style="color: #000000;">\"</span>"</span>+ipath+<span style="color: #ff0000;">"eulx.png<span style="color: #000000;">\"</span> alt=<span style="color: #000000;">\"</span>EU Regulation<span style="color: #000000;">\"</span> title=<span style="color: #000000;">\"</span>EU Regulation<span style="color: #000000;">\"</span>>"</span>; <span style="color: #000000;">&#125;</span> <br />    <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />        rirrt += <span style="color: #ff0000;">"<img border=<span style="color: #000000;">\"</span>0<span style="color: #000000;">\"</span> width=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> height=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> src=<span style="color: #000000;">\"</span>"</span>+ipath+<span style="color: #ff0000;">"empt.png<span style="color: #000000;">\"</span>>"</span>; <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ilbc<span style="color: #000000;">&#91;</span>tnum+ctcnt*<span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span> == <span style="color: #ff0000;">"y"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>    <span style="color: #B900B9;">// EUR</span><br />        rirrt += <span style="color: #ff0000;">"<img border=<span style="color: #000000;">\"</span>0<span style="color: #000000;">\"</span> width=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> height=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> src=<span style="color: #000000;">\"</span>"</span>+ipath+<span style="color: #ff0000;">"euro.png<span style="color: #000000;">\"</span> alt=<span style="color: #000000;">\"</span>EURO<span style="color: #000000;">\"</span> title=<span style="color: #000000;">\"</span>EURO<span style="color: #000000;">\"</span>>"</span>; <span style="color: #000000;">&#125;</span> <br />    <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />        rirrt += <span style="color: #ff0000;">"<img border=<span style="color: #000000;">\"</span>0<span style="color: #000000;">\"</span> width=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> height=<span style="color: #000000;">\"</span>13<span style="color: #000000;">\"</span> src=<span style="color: #000000;">\"</span>"</span>+ipath+<span style="color: #ff0000;">"empt.png<span style="color: #000000;">\"</span>>"</span>; <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">return</span> rirrt;<span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// list countries in x columns with language y ##### old, use new please #####</span><br /><span style="color: #00C800;">function</span> listcountries<span style="color: #000000;">&#40;</span>columni,llngg<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    listcountriesnew<span style="color: #000000;">&#40;</span>columni,llngg,<span style="color: #ff0000;">"n"</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// list countries in x columns with language y show flag y/n from path ##### new #####</span><br /><span style="color: #B900B9;">// make sure the flag images are available at path and provide a style declaration like "img.tbg5cdf { height:20px; }" !!</span><br /><span style="color: #00C800;">function</span> listcountriesnew<span style="color: #000000;">&#40;</span>columni,llngg,flag,ipath<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    lngg = llngg; <span style="color: #B900B9;">//use language parameter</span><br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>lngg < <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> || <span style="color: #000000;">&#40;</span>lngg > lngc.length<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        lngg = <span style="color: #000000;">2</span>; <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>flag == <span style="color: #ff0000;">"n"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<table class=<span style="color: #000000;">\"</span>tbg5ct<span style="color: #000000;">\"</span>><span style="color: #000000;">\r</span><span style="color: #000000;">\n</span><TR class=<span style="color: #000000;">\"</span>tbg5crt<span style="color: #000000;">\"</span>><TD class=<span style="color: #000000;">\"</span>tbg5cdt<span style="color: #000000;">\"</span> colspan=<span style="color: #000000;">\"</span>"</span>+columni*<span style="color: #000000;">3</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\"</span>>&nbsp;</TD></TR><span style="color: #000000;">\r</span><span style="color: #000000;">\n</span>"</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span>  document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<table class=<span style="color: #000000;">\"</span>tbg5ct<span style="color: #000000;">\"</span>><span style="color: #000000;">\r</span><span style="color: #000000;">\n</span><TR class=<span style="color: #000000;">\"</span>tbg5crt<span style="color: #000000;">\"</span>><TD class=<span style="color: #000000;">\"</span>tbg5cdt<span style="color: #000000;">\"</span> colspan=<span style="color: #000000;">\"</span>"</span>+columni*<span style="color: #000000;">4</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\"</span>>&nbsp;</TD></TR><span style="color: #000000;">\r</span><span style="color: #000000;">\n</span>"</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br />    <span style="color: #0000ff;">var</span> numberofrows = Math.ceil<span style="color: #000000;">&#40;</span>ctcnt/columni<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">//calculate rows</span><br />    <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span>i = <span style="color: #000000;">0</span>; i < numberofrows; i++<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <span style="color: #B900B9;">//for each row</span><br />        document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<tr class=<span style="color: #000000;">\"</span>tbg5crl<span style="color: #000000;">\"</span>>"</span><span style="color: #000000;">&#41;</span>;<br />        <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">var</span> j = <span style="color: #000000;">0</span>; j < columni; j++<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <span style="color: #B900B9;">//for each column</span><br />            <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>i*columni+j<span style="color: #000000;">&#41;</span><ctcnt<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <span style="color: #B900B9;">//fill cells</span><br />                document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<td class=<span style="color: #000000;">\"</span>tbg5cdc<span style="color: #000000;">\"</span> title=<span style="color: #000000;">\"</span>"</span>+rcl<span style="color: #000000;">&#40;</span>i*columni+j<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\"</span>><span class=<span style="color: #000000;">\"</span>tbg5era"</span>+rcr<span style="color: #000000;">&#40;</span>i*columni+j<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\"</span>>"</span>+ilbc<span style="color: #000000;">&#91;</span>i*columni+j<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">"</span></td>"</span><span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">//country code</span><br />                document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<td class=<span style="color: #000000;">\"</span>tbg5cdc<span style="color: #000000;">\"</span> style=<span style="color: #000000;">\"</span>border:1px solid grey;white-space:nowrap;<span style="color: #000000;">\"</span>>"</span>+rir<span style="color: #000000;">&#40;</span>i*columni+j,ipath<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"</td>"</span><span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">//country code</span><br />                <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>flag == <span style="color: #ff0000;">"y"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <span style="color: #B900B9;">//show flag</span><br />                    document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<td class=<span style="color: #000000;">\"</span>tbg5cdf<span style="color: #000000;">\"</span>><img class=<span style="color: #000000;">\"</span>tbg5cdf<span style="color: #000000;">\"</span> src=<span style="color: #000000;">\"</span>"</span>+ipath+ilbc<span style="color: #000000;">&#91;</span>i*columni+j<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">".png<span style="color: #000000;">\"</span> alt=<span style="color: #000000;">\"</span>"</span>+ctynm<span style="color: #000000;">&#91;</span>i*columni+j<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\"</span> title=<span style="color: #000000;">\"</span>"</span>+ctynm<span style="color: #000000;">&#91;</span>i*columni+j<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\"</span>></td>"</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br />                document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<td class=<span style="color: #000000;">\"</span>tbg5cdn<span style="color: #000000;">\"</span> title=<span style="color: #000000;">\"</span>"</span>+rce<span style="color: #000000;">&#40;</span>i*columni+j<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\"</span>><span class=<span style="color: #000000;">\"</span>tbg5era"</span>+rcr<span style="color: #000000;">&#40;</span>i*columni+j<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\"</span>>"</span>+ctynm<span style="color: #000000;">&#91;</span>i*columni+j<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">"</span></td>"</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">//country name</span><br />        document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"</tr><span style="color: #000000;">\r</span><span style="color: #000000;">\n</span>"</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br />    document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"</table><span style="color: #000000;">\r</span><span style="color: #000000;">\n</span>"</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>document.dlang<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>document.dlang.mlang<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />            <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">var</span> i = <span style="color: #000000;">1</span>; i <= document.dlang.mlang.length; i++<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />                <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>document.dlang.mlang<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span>.value==lngg<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />                    document.dlang.mlang<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span>.selected=<span style="color: #00C800;">true</span>; <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// some convenience for additional explanations</span><br /><span style="color: #00C800;">function</span> doexplain<span style="color: #000000;">&#40;</span>llngg<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    document.write<span style="color: #000000;">&#40;</span>xpltxt<span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// load languagefile</span><br /><span style="color: #00C800;">function</span> llanguagefile<span style="color: #000000;">&#40;</span>language<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'<script charset="utf-8" src="'</span>+language+<span style="color: #ff0000;">'" type="text/JavaScript"><<span style="color: #000000;">\/</span>script>'</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">function</span> llanguage<span style="color: #000000;">&#40;</span>language<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    jsfile = <span style="color: #ff0000;">'http://www.tbg5-finance.org/'</span>+lngc<span style="color: #000000;">&#91;</span>language<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'.js'</span>;<br />    llanguagefile<span style="color: #000000;">&#40;</span>jsfile<span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// load helperfiles</span><br /><span style="color: #00C800;">function</span> helperjsfile<span style="color: #000000;">&#40;</span>file<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    document.write<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'<script src="'</span>+file+<span style="color: #ff0000;">'" type="text/JavaScript"><<span style="color: #000000;">\/</span>script>'</span><span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">function</span> helpers<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    jsfile = <span style="color: #ff0000;">'http://www.tbg5-finance.org/dragdrop.js'</span>;<br />    helperjsfile<span style="color: #000000;">&#40;</span>jsfile<span style="color: #000000;">&#41;</span>;<br />    jsfile = <span style="color: #ff0000;">'http://www.tbg5-finance.org/customalert.js'</span>;<br />    helperjsfile<span style="color: #000000;">&#40;</span>jsfile<span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span><br />llanguage<span style="color: #000000;">&#40;</span>lngg<span style="color: #000000;">&#41;</span>;<br />helpers<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br /><br /><br /><span style="color: #B900B9;">// translators please take a source language including // language ++++... from laguage file e.g. en.js</span><br /><span style="color: #B900B9;">// translate and store in UTF-8 encoding to support your national characters</span><br /><span style="color: #B900B9;">// only care about text surrounded by quotes, i.e. leave all other characters and format as is </span><br /><span style="color: #B900B9;">// send it</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// please observe following special notation in translation of "web page" text</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//                                    V</span><br /><span style="color: #B900B9;">// wptxt = wptxt.concat ( new Array ( 0 ,"text 1","text 2","text 3","text 4","text 5","text 6","text 7","text 8","text 9"));</span><br /><span style="color: #B900B9;">// results in</span><br /><span style="color: #B900B9;">// "("+" EU Regulation 924/2009 "+"text 3"+"/"+"text 4"+")"</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// while</span><br /><span style="color: #B900B9;">//                                    V</span><br /><span style="color: #B900B9;">// wptxt = wptxt.concat ( new Array ( 1 ,"text 1","text 2","text 3","text 4","text 5","text 6","text 7","text 8","text 9"));</span><br /><span style="color: #B900B9;">// results in</span><br /><span style="color: #B900B9;">// "("+"text 3"+"/"+"text 4"+" EU Regulation 924/2009 "+")"</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// i.e. it is a language adaptor. Please choose properly. Thx</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// therefore</span><br /><span style="color: #B900B9;">// with 0 make it "text3","text 4 "</span><br /><span style="color: #B900B9;">// with 1 make it " text3","text 4"</span><br /><br /><span style="color: #B900B9;">// script end</span></div>[/code:3p2uqhdb] It may help you to figure out how to doit... also check on [url:3p2uqhdb]http&#58;//www&#46;codeproject&#46;com/Articles/55667/IBAN-Verification-in-C-Excel-Automation-Add-in-Wor[/url:3p2uqhdb]
how to convert a string into a number
došao sam do rješenja problema string se mora podijeliti na dva dijela koji se mogu obra?ivati "2360000112233" i "4455172700" svaki se posebno podijeli sa 97 onda se drugome broju ispred stavi ostatak dijeljenja prvog broja val("2360000112233")%97=25 val("25"+"4455172700")%97=9 kontrolni broj je 98-9=89 pa je iban xx89 23600001122334455
how to convert a string into a number
I came up with solutions to problems string must be split into two parts that can be processed "2360000112233" and "4455172700" each separately divided by 97, then the second number in front put the remainder on dividing the first number val ("2360000112233")% 97 = 25 val ("25" + "4455172700")% 97 = 9 control number is 98-9 = 89 so IBAN xx89 23600001122334455
how to create a webservice?
I need to create a webservice to receive orders and send customers and products
how to create a webservice?
Perhaps this will help. Not my work, I just remember this being shared on this forum previously. [u:2519eiil] <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=35210&p=209552">viewtopic.php?f=3&t=35210&p=209552</a><!-- l --> [/u:2519eiil] Robb
how to detect Clipboard Format under harbour ?
hi, default Clipboard use CF_TEXT [img:2d6ee803]https&#58;//i&#46;postimg&#46;cc/D0kmGJ0q/Clipboard-Default&#46;jpg[/img:2d6ee803] but can also use CF_BITMAP or OLE [img:2d6ee803]https&#58;//i&#46;postimg&#46;cc/NfN9J0zw/Clipboard-OLE&#46;jpg[/img:2d6ee803] under Xbase++ i have QueryGetFormat() to ask which Format is used, how using harbour <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> [code=fw:2d6ee803]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> DoMyDrag<span style="color: #000000;">&#40;</span>oDlg, oDrag, bArchivname<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oOutlook<br />   <span style="color: #00C800;">LOCAL</span> aFile := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">LOCAL</span> i, iCnt<br />   <span style="color: #00C800;">LOCAL</span> cBase, cFile<br /><br />   oDlg:<span style="color: #000000;">setpointer</span><span style="color: #000000;">&#40;</span>, XBPSTATIC_SYSICON_WAIT, XBPWINDOW_POINTERTYPE_SYSPOINTER<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// email speichern in TEMP</span><br />   <span style="color: #00C800;">if</span> oDrag:<span style="color: #000000;">queryGetFormat</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"FileGroupDescriptor"</span><span style="color: #000000;">&#41;</span><br />      oOutlook := createobject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"outlook.application"</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">if</span> IsObject<span style="color: #000000;">&#40;</span>oOutlook<span style="color: #000000;">&#41;</span><br />         iCnt  := oOutlook:<span style="color: #000000;">ActiveExplorer</span>:<span style="color: #000000;">selection</span>:<span style="color: #0000ff;">count</span><br />         aFile := array<span style="color: #000000;">&#40;</span>iCnt<span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">for</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> iCnt<br />            <span style="color: #B900B9;">// cBase ist der Betraff der Nachricht</span><br />            cBase    := ValidFileName<span style="color: #000000;">&#40;</span>oOutlook:<span style="color: #000000;">ActiveExplorer</span>:<span style="color: #000000;">selection</span>:<span style="color: #000000;">item</span><span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">subject</span><span style="color: #000000;">&#41;</span><br /><br />            <span style="color: #B900B9;">// dieser Codeblock erzeugt den Name der zu speichernen Datei, incl Pfad, etc</span><br />*           aFile<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> := eval<span style="color: #000000;">&#40;</span> bArchivname, cBase <span style="color: #000000;">&#41;</span><br />            aFile<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> := <span style="color: #ff0000;">"C:<span style="color: #000000;">\T</span>EMP<span style="color: #000000;">\T</span>EXTXXX"</span><br /><br />            oOutlook:<span style="color: #000000;">ActiveExplorer</span>:<span style="color: #000000;">selection</span>:<span style="color: #000000;">item</span><span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">saveas</span><span style="color: #000000;">&#40;</span>aFile<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>, olMSGUnicode<span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">next</span><br />         oOutlook:<span style="color: #000000;">destroy</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">else</span><br />         Msgbox<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Fehler beim Zugriff auf Outlook !"</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />      oOutlook:= <span style="color: #00C800;">NIL</span><br /><br />   elseif oDrag:<span style="color: #000000;">queryGetFormat</span><span style="color: #000000;">&#40;</span>XBPCLPBRD_FILELIST<span style="color: #000000;">&#41;</span><br />      aFile := oDrag:<span style="color: #000000;">getdata</span><span style="color: #000000;">&#40;</span> XBPCLPBRD_FILELIST<span style="color: #000000;">&#41;</span><br />      iCnt  := len<span style="color: #000000;">&#40;</span> aFile<span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">for</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> iCnt<br /><br />            <span style="color: #B900B9;">// dieser Codeblock erzeugt den Name der zu speichernen Datei, incl Pfad, etc</span><br />            cFile := eval<span style="color: #000000;">&#40;</span> bArchivname, aFile<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />            <span style="color: #00C800;">if</span> fcopy<span style="color: #000000;">&#40;</span>aFile<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>, cFile, .T. <span style="color: #000000;">&#41;</span><br />               aFile<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> := cFile<br />            <span style="color: #00C800;">else</span><br />               aFile<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> := <span style="color: #ff0000;">""</span><br />            <span style="color: #00C800;">endif</span><br /><br />      <span style="color: #00C800;">next</span><br />   <span style="color: #00C800;">else</span><br />      <span style="color: #B900B9;">// kein verarbeitung hier definiert</span><br />   <span style="color: #00C800;">endif</span><br />   oDlg:<span style="color: #000000;">setpointer</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> aFile<br /> </div>[/code:2d6ee803]
how to detect Clipboard Format under harbour ?
Dear Jimmy, This Windows API function seems to do what you are looking for: [url:11hl04ey]https&#58;//learn&#46;microsoft&#46;com/en-us/windows/win32/api/winuser/nf-winuser-enumclipboardformats[/url:11hl04ey]
how to detect Clipboard Format under harbour ?
hi Antonio, thx, i will try that Way
how to detect app if running in memory ?
Hi, In main prg ,I do a call upgrade to download from web and overwrite main.exe , but the mian exe not close in memory,so upgrade will failure. main.prg ... define window ownd ... ... button action (ownd:end(),winexec("upgrade.exe")) activate window ownd other close return but when running upgrade.exe, the the mian exe still in memory ,so upgrade will failure. If can tetect main.exe is running , waiting till it close, the download begins. Fwh 8.01, Harbour 1.0.0 , BCC551Thanks !Shuming Wang
how to detect app if running in memory ?
Is this what u r looking for[code:3n5v0fl6]// Check whether the application is already running in the same PC if IsExeRunning&#40; cFileName&#40; HB_ARGV&#40; 0 &#41; &#41; &#41; MsgWait&#40; "This application is already running", "Application Name" &#41; Quit endif [/code:3n5v0fl6]RegardsAnser
how to detect app if running in memory ?
ShumingWangDo you have some code that will automatically search an FTP site for upgrades. If you do can you post a copy. Thanks
how to detect app if running in memory ?
Hag, For the www /web mode download more faster, so I change from FTP to WEB mode. I place a .ini file contian version id: local nsize,afiles:={},oInternet,i,newversionid,odb1,lok:=.f.local cwebpath:="http://www.xtech.com.cn/down/xerp6.1"+if(oserver:cCharset=="big5","f","")local cpath:=curdrive()+":\"+curdir()+"\tmp" hLib = LOADLIBRARY( "urlmon.dll") while .t. if URLDownloadToFile( 0, cwebpath+"/version.ini", cpath+"\version.ini", 0, 0 ) == 0 oIni:=Tini():New(cpath+"\version.ini") newversionid:=oIni:GET("version","version_id"," ") if ALLTRIM(newversionid)<=ALLTRIM(version_id) msgstop2("Already new version"+version_id,"Stop") else if msgyesno2("Download new version"+newversionid,"Please confirm") lok:=.t. endif endif else MsgStop( "Can't download!", "Warnning" ) end exit enddo FREELIBRARY( hLib ) if !lok; return ; end download codesreturn DLL32 FUNCTION URLDownloadToFile(pCaller AS LONG,szURL AS STRING, szFileName AS STRING, dwReserved AS LONG, lpfnCB AS LONG); AS LONG PASCAL; FROM "URLDownloadToFileA"; LIB hlib Regards!Shuming Wang
how to detect app if running in memory ?
Thanks for the quick response.
how to detect app if running in memory ?
Anserkk, The IsExeRunning( "main.exe") return .f., ether windows task table shows no. But it seems the file still not release even wait many minutes, URLDownloadToFile( 0, cwebpath+"/"+afiles[i], cpath+"\"+afiles[i], 0, 0 ) == 0 // failure Best regards!Shuming Wang
how to detect app if running in memory ?
Dear ShumingWang,A Hint :I think you should try to get the window Handle of the Running.Exe, If u search this forum, you will find how to do it.RegardsAnser
how to detect multiselect of xBrowse
HI all, here an other question about the multiselect feature of xBrowse. I want to give the possibility to create groups of selected items of a browse. A user might multi-select some rows and click at a button to create a group from those selected items. If there is only one row selected it makes no sense to create a group for it. I could test the len of oBrw:aSelected and tell the user after the group button is pressed that he has to select more than one row for building a group. But my intention is to disable the grouping button if there is no multiselect and enable if yes. The button is build with: [b:2h2kuh8a]WHEN len( oBrw:aSelected ) > 1[/b:2h2kuh8a]. I just don't know where to call the [b:2h2kuh8a]oDlg:AEvalWhen()[/b:2h2kuh8a]. The onChange event of the browse doesn't always change the button correctly. Is there an other event to get the desired button change? Thanks for every helping answers, Detlef
how to detect multiselect of xBrowse
Hello Detlef it is your test... check it compiled with xharbour [code:zy7nk128] #INCLUDE "FiveWin&#46;ch" #INCLUDE "XBrowse&#46;ch" function Main() local oDlg, aLin &#58;= {}, i, oBrw local oBtn for i &#58;= 1 TO 6 AAdd( aLin, { chr( 64 + i ), "Item " + str( i ) } ) next DEFINE DIALOG oDlg FROM 0, 0 TO 14, 48 @ 1,18 button oBtn prompt "Group" of oDlg ; action( msginfo( "&#58;&#58;aSelected > 1" ) ) oBtn&#58;Disable() oBrw &#58;= TxBrowse()&#58;New( oDlg ) oBrw&#58;SetArray( aLin ) oBrw&#58;CreateFromCode() with object oBrw &#58;nRowDividerStyle &#58;= LINESTYLE_BLACK &#58;nColDividerStyle &#58;= LINESTYLE_BLACK &#58;nMarqueeStyle &#58;= MARQSTYLE_HIGHLROWMS &#58;aCols&#91;1&#93;&#58;cHeader &#58;= 'Cod' &#58;aCols&#91;2&#93;&#58;cHeader &#58;= 'Description' &#58;bClrStd &#58;= { || { CLR_BLACK, CLR_WHITE } } &#58;bClrSel &#58;= { || { CLR_BLUE, CLR_YELLOW } } &#58;bClrSelFocus &#58;= { || { CLR_HRED, CLR_CYAN } } &#58;bClrRowFocus &#58;= { || { CLR_WHITE, CLR_RED } } &#58;lHScroll &#58;= &#46;f&#46; &#58;nStretchCol &#58;= 2 &#58;bLClicked &#58;= {|| if( len( oBrw&#58;aSelected ) > 1, ; oBtn&#58;Enable(),; oBtn&#58;Disable()) } end ACTIVATE DIALOG oDlg RETURN NIL[/code:zy7nk128]
how to detect multiselect of xBrowse
Daniel, thanks a lot for your code. It works exactly as i wanted. Thanks and regards, Detlef
how to disable minimize and maximize buttons on main window
Hello all, Can you send me a sample showing how to disable minimize and maximize buttons on main window MDI Thank you
how to disable minimize and maximize buttons on main window
[code:b7z152bw] #include "FiveWin&#46;ch" function Main&#40;&#41; local oWnd DEFINE WINDOW oWnd STYLE nOr&#40; WS_CAPTION, WS_VISIBLE, WS_SYSMENU &#41; MDI ACTIVATE WINDOW oWnd return nil [/code:b7z152bw]
how to disable minimize and maximize buttons on main window
Thank you Antonio
how to disable minimize and maximize buttons on main window
Hi, What would be the command to remove only the Maximize/Restore button from a MDI child window. ie I need the minimize and close buttons to be there on the windows. Regards Anser
how to disable minimize and maximize buttons on main window
Hi Anser Here it is [code=fw:1eiwrrze]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> MF_BYPOSITION <span style="color: #000000;">1024</span> <span style="color: #B900B9;">// 0x0400</span><br /><span style="color: #00D7D7;">#define</span> MF_DISABLED &nbsp; <span style="color: #000000;">2</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>, <span style="color: #000000;">70</span> &nbsp;<span style="color: #0000ff;">STYLE</span> nOR<span style="color: #000000;">&#40;</span>WS_POPUP, WS_VISIBLE, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME,WS_MINIMIZEBOX<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">MDI</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> RemoveMItems<span style="color: #000000;">&#40;</span>oWnd, .T.<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />***********<br /><br /><span style="color: #00C800;">FUNCTION</span> RemoveMItems<span style="color: #000000;">&#40;</span>oWin, lDisable<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> hMenu &nbsp;:= <span style="color: #000000;">0</span><br /><span style="color: #00C800;">LOCAL</span> nCount := <span style="color: #000000;">0</span><br /><br /><span style="color: #00C800;">IF</span> lDisable<br />&nbsp; &nbsp;hMenu &nbsp;= GetSystemMenu<span style="color: #000000;">&#40;</span>oWin:<span style="color: #000000;">hWnd</span>, .F.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nCount = GetMItemCount<span style="color: #000000;">&#40;</span>hMenu<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oWin:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"TDIALOG"</span><br />&nbsp; &nbsp; &nbsp; RemoveMenu<span style="color: #000000;">&#40;</span>hMenu, <span style="color: #000000;">1</span>, nOR<span style="color: #000000;">&#40;</span> MF_BYPOSITION, MF_DISABLED<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; RemoveMenu<span style="color: #000000;">&#40;</span>hMenu, nCount - <span style="color: #000000;">3</span>, nOR<span style="color: #000000;">&#40;</span> MF_BYPOSITION, MF_DISABLED<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; RemoveMenu<span style="color: #000000;">&#40;</span>hMenu, nCount - <span style="color: #000000;">7</span>, nOR<span style="color: #000000;">&#40;</span> MF_BYPOSITION, MF_DISABLED<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;DrawMenuBar<span style="color: #000000;">&#40;</span> oWin:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp;GetSystemMenu<span style="color: #000000;">&#40;</span> oWin:<span style="color: #000000;">hWnd</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;DrawMenuBar<span style="color: #000000;">&#40;</span> oWin:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /><br />&nbsp;</div>[/code:1eiwrrze] Regards, - Ramesh Babu P
how to disable minimize and maximize buttons on main window
Dear Ramesh, Thank you for the code. Your sample code is working fine on the MDI window, unfortunately when I try it on the MDI CHILD window of my real app, only the Close button is getting disabled [url=http&#58;//img442&#46;imageshack&#46;us/i/ramesh&#46;jpg/:eye5bkni][img:eye5bkni]http&#58;//img442&#46;imageshack&#46;us/img442/4348/ramesh&#46;jpg[/img:eye5bkni][/url:eye5bkni] 1. If I create the MDI child window without applying any style (Default one) only the Close button is disabled and the other controls ie Minimize & Maximaize are active [code=fw:eye5bkni]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDICHILD</span> <span style="color: #0000ff;">OF</span> WndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0.5</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">27.5</span>,<span style="color: #000000;">47</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Quick Search"</span> ;<br />                      <span style="color: #0000ff;">ICON</span>  oAppIcon <span style="color: #0000ff;">COLOR</span> oApp:<span style="color: #000000;">nTextClr</span>, oApp:<span style="color: #000000;">nBkgClr</span></div>[/code:eye5bkni] 2. If I create the MDI child window with the style specified on your code ie STYLE nOR(WS_POPUP, WS_VISIBLE, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME,WS_MINIMIZEBOX), then I am getting the following error. [code=fw:eye5bkni]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDICHILD</span> <span style="color: #0000ff;">OF</span> WndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0.5</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">27.5</span>,<span style="color: #000000;">47</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Quick Search"</span> ;<br />                      <span style="color: #0000ff;">ICON</span>  oAppIcon <span style="color: #0000ff;">COLOR</span> oApp:<span style="color: #000000;">nTextClr</span>, oApp:<span style="color: #000000;">nBkgClr</span> ;<br />                      <span style="color: #0000ff;">STYLE</span> nOR<span style="color: #000000;">&#40;</span>WS_POPUP, WS_VISIBLE, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME,WS_MINIMIZEBOX<span style="color: #000000;">&#41;</span><br /> </div>[/code:eye5bkni] [code=fw:eye5bkni]<div class="fw" id="{CB}" style="font-family: monospace;">   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\rtl\tobject.prg => TMDICHILD:<span style="color: #000000;">ERROR</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">172</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\rtl\tobject.prg => TMDICHILD:<span style="color: #000000;">MSGNOTFOUND</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">205</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\rtl\tobject.prg => TMDICHILD:<span style="color: #000000;">DEFCONTROL</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">SAY</span>.PRG => TSAY:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">145</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\CStock.PRG => QUICKSEARCH<span style="color: #000000;">&#40;</span><span style="color: #000000;">509</span><span style="color: #000000;">&#41;</span></div>[/code:eye5bkni] The error seems to be from the Class SAY. Am I missing something ? My requirement is to either remove OR disable the Maximize/Restore control on the MDI CHILD window. My first preference is to remove the Maximize/Restore control Thanks in advance. Regards Anser
how to disable minimize and maximize buttons on main window
Anser, >My requirement is to either remove OR disable the Maximize/Restore control on the MDI CHILD window. My first preference is to remove the Maximize/Restore control This sounds like a non-modal dialog. Have you consider that? Regards, James
how to disable minimize and maximize buttons on main window
Hi Mr.James, The following code solved my problem. Applying the following style, disabled the Maximize/Restore button on a [b:2sz3cy4e][color=#0000FF:2sz3cy4e]MDICHILD[/color:2sz3cy4e][/b:2sz3cy4e] Window. If this also failed then I would have opted a Non Modal Dialog. [code=fw:2sz3cy4e]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDICHILD</span> <span style="color: #0000ff;">of</span> WndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> &nbsp;nOr<span style="color: #000000;">&#40;</span> WS_CAPTION, WS_VISIBLE, WS_SYSMENU, WS_MINIMIZEBOX <span style="color: #000000;">&#41;</span> <br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd</div>[/code:2sz3cy4e] Regards Anser
how to disable minimize and maximize buttons on main window
Where is the need to adopt such complex approach? Cant we simply disable these buttons while creating the window ( normal, MDI, MDICHILD ) by using the syntax already provided by FWH? CREATE WINDOW ....... NOMINIMIZE NOMAXIMIZE This does the job. Or am I missing something?
how to disable minimize and maximize buttons on main window
Dear Mr.Rao, [b:l7vnh93l]Your Quote[/b:l7vnh93l] [quote:l7vnh93l]It is true that we can disable maximize or minimize buttons by simply using clauses NOMAXIMIZE, NOMINIMIZE, etc. while creating the window. But still the user can resize the window by dragging the right bottom corner of the window. aMinMaxInfo gives us the full control on resizing. ( We can also control with ON RESIZE clause, but that is not elegant ) [/quote:l7vnh93l] I found that, using the single line code using the STYLE is serving the expected behavior. [code=fw:l7vnh93l]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">STYLE</span> &nbsp;nOr<span style="color: #000000;">&#40;</span> WS_CAPTION, WS_VISIBLE, WS_SYSMENU, WS_MINIMIZEBOX <span style="color: #000000;">&#41;</span></div>[/code:l7vnh93l] According to me the disadvantage of using aMinMaxInfo is that it requires me to calculate the height and width in pixels. In future every time I need to alter the window size, I will have to recalculate the height and width again. Whereas using the STYLE, I need not bother about it. I don't use resource editors. Regards Anser
how to disable tree item
#include "FiveWin.ch"#include "WColors.ch"function Main() local oDlg, oTree DEFINE DIALOG oDlg TITLE "TreeView from source" @ 0.5, 1 TREEVIEW oTree OF oDlg SIZE 80, 60 COLOR 0, GetSysColor( COLOR_WINDOW ) ACTIVATE DIALOG oDlg CENTERED ; ON INIT AddItems( oTree ) return nil function AddItems( oTree ) local oItem1, oItem2, oItem3 oItem1 = oTree:Add( "First" ) oItem1:Add( "One" ) oItem1:Add( "Two" ) oItem1:Add( "Three" ) oItem2 = oTree:Add( "Second" ) oItem2:Add( "Hello" ) oItem2:Add( "World" ) oItem3 = oTree:Add( "Third" ) oItem3:Add( "Last" ) oItem3:Add( "item" ) return nil How do I disable oItem1:Add( "Two" )Thanks
how to disable tree item
Try this:[code:a2cpb0u1]function AddItems&#40; oTree &#41; local oItem1, oItem2, oItem3, oSubItem oItem1 = oTree&#58;Add&#40; "First" &#41; oItem1&#58;Add&#40; "One" &#41; oSubitem &#58;= oItem1&#58;Add&#40; "Two" &#41; oSubitem&#58;disable&#40;&#41; oItem1&#58;Add&#40; "Three" &#41; oItem2 = oTree&#58;Add&#40; "Second" &#41; oItem2&#58;Add&#40; "Hello" &#41; oItem2&#58;Add&#40; "World" &#41; oItem3 = oTree&#58;Add&#40; "Third" &#41; oItem3&#58;Add&#40; "Last" &#41; oItem3&#58;Add&#40; "item" &#41; return nil[/code:a2cpb0u1]
how to disable tree item
Thanks for your helpWith the change, I get this error message:Message not found: TTVITEM:DISABLEThanks
how to disable tree item
It's possible to make the treeview disabled.I think maybe not's possible to do the same thing with a item of treeview.
how to disable tree item
Acwoo,Please, try this:[code:1mlktwmt]enableWindow&#40; oItem&#58;hItem, lEnable &#41;[/code:1mlktwmt]
how to disable tree item
ThanksenableWindow( oItem:hItem, lEnable )How do I change this to runThanks
how to disable tree item
Acwoo,Something like this:[code:2t7o1f6g]function AddItems&#40; oTree &#41; local oItem1, oItem2, oItem3, oSubItem oItem1 = oTree&#58;Add&#40; "First" &#41; oItem1&#58;Add&#40; "One" &#41; oSubitem &#58;= oItem1&#58;Add&#40; "Two" &#41; enableWindow&#40; oSubItem&#58;hItem, &#46;F&#46; &#41; oItem1&#58;Add&#40; "Three" &#41; oItem2 = oTree&#58;Add&#40; "Second" &#41; oItem2&#58;Add&#40; "Hello" &#41; oItem2&#58;Add&#40; "World" &#41; oItem3 = oTree&#58;Add&#40; "Third" &#41; oItem3&#58;Add&#40; "Last" &#41; oItem3&#58;Add&#40; "item" &#41; return nil[/code:2t7o1f6g]
how to disable tree item
ThanksTree "Two" not disabled.Thanks
how to disable tree item
Ok!I think that not's possible to do!
how to disable tree item
Acwoo,Antonio or Uwe or James, maybe they can help you!
how to disable tree item
Acwoo,You can delete a TreeView item (including its childen items) and later on add it again:<!-- m --><a class="postlink" href="http://msdn.microsoft.com/en-us/library/bb773560(VS.85">http://msdn.microsoft.com/en-us/library/bb773560(VS.85</a><!-- m -->).aspx
how to disable tree item
Thankshow do I use this TVM_Deleteitem to run Thanks
how to disable tree item
Acwoo,As Antonio told you... please, try this:[code:1bb9tlqx]SendMessage&#40; oTree&#58;hWnd, TVM_DELETEITEM, 0, oItem&#58;hItem &#41;[/code:1bb9tlqx] You can too make a function to control this operation like this: [code:1bb9tlqx]function deleteItem&#40; oTree, oItem &#41; SendMessage&#40; oTree&#58;hWnd, TVM_DELETEITEM, 0, oItem&#58;hItem &#41; return[/code:1bb9tlqx] And use in your source code like this: [code:1bb9tlqx]function AddItems&#40; oTree &#41; local oItem1, oItem2, oItem3, oSubItem oItem1 = oTree&#58;Add&#40; "First" &#41; oItem1&#58;Add&#40; "One" &#41; oSubitem &#58;= oItem1&#58;Add&#40; "Two" &#41; deleteItem&#40; oTree, oSubItem &#41; oItem1&#58;Add&#40; "Three" &#41; oItem2 = oTree&#58;Add&#40; "Second" &#41; oItem2&#58;Add&#40; "Hello" &#41; oItem2&#58;Add&#40; "World" &#41; oItem3 = oTree&#58;Add&#40; "Third" &#41; oItem3&#58;Add&#40; "Last" &#41; oItem3&#58;Add&#40; "item" &#41; return nil[/code:1bb9tlqx]
how to disable tree item
Thanks
how to disable vertical scrollbar listbox
Hello Antonio, is it possible to disable the vertical scrollbar from a listbox. Thanks in advance Otto
how to disable vertical scrollbar listbox
Otto, If you are creating it from resources, don't use WS_VSCROLL style
how to disable vertical scrollbar listbox
Hello Antonio, no. I am creating it from code. Thanks in advance Otto
how to disable vertical scrollbar listbox
Otto, Then you have to modify the Class source code and remove WS_VSCROLL. You can modify the Class PRG and link the OBJ as another OBJ of your application.
how to display sorce code inside html
Dear Antonio, I'm starting a FAQ for mod harbor beginners. It would be great if I could also store source code examples in the memo field in the database. But I still haven't figured out how to encrypt the source code so that it can be displayed in the website. I'll use photos meanwhile. Best regards, Otto [url:c418qoxj]https&#58;//www&#46;modharbour&#46;club/mh_faq_mh/faq&#46;prg[/url:c418qoxj] [img:c418qoxj]https&#58;//mybergland&#46;com/fwforum/faq&#46;jpg[/img:c418qoxj]
how to display sorce code inside html
Dear Otto, I would suggest to use syntax highlighted source code so I would use the same control that we use in mod_harbour/samples/modpro [code=fw:37s4qbh8]<div class="fw" id="{CB}" style="font-family: monospace;">          <div <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"editor"</span>><span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span>GetCode<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span></div><br />          <script src=<span style="color: #ff0000;">"https://fivetechsoft.github.io/xcloud/src-noconflict/ace.js"</span> type=<span style="color: #ff0000;">"text/javascript"</span> charset=<span style="color: #ff0000;">"utf-8"</span>></script><br />          <script><br />             <span style="color: #0000ff;">var</span> editor = ace.<span style="color: #00C800;">edit</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"editor"</span><span style="color: #000000;">&#41;</span>;<br />             <span style="color: #0000ff;">var</span> code;<br />             editor.setTheme<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ace/theme/tomorrow_night_blue"</span><span style="color: #000000;">&#41;</span>;<br />             editor.setFontSize<span style="color: #000000;">&#40;</span><span style="color: #000000;">18</span><span style="color: #000000;">&#41;</span>;     <br />             editor.setHighlightActiveLine<span style="color: #000000;">&#40;</span><span style="color: #00C800;">true</span><span style="color: #000000;">&#41;</span>;<br />             editor.session.setMode<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ace/mode/c_cpp"</span><span style="color: #000000;">&#41;</span>;<br />          </script></div>[/code:37s4qbh8] function GetCode() should return the source code that you want to show. No special coding, just ascii text. You may use several "editor"s in the same web page, so define several divs with "editor1", "editor2", ..., "editorN" [code=fw:37s4qbh8]<div class="fw" id="{CB}" style="font-family: monospace;">         <div <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"editor1"</span>><span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span>GetCode1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span></div><br />                   <div <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"editor2"</span>><span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span>GetCode2<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span></div><br />          <script src=<span style="color: #ff0000;">"https://fivetechsoft.github.io/xcloud/src-noconflict/ace.js"</span> type=<span style="color: #ff0000;">"text/javascript"</span> charset=<span style="color: #ff0000;">"utf-8"</span>></script><br />          <script><br />             <span style="color: #0000ff;">var</span> editor1 = ace.<span style="color: #00C800;">edit</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"editor1"</span><span style="color: #000000;">&#41;</span>;<br />   <span style="color: #0000ff;">var</span> editor2 = ace.<span style="color: #00C800;">edit</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"editor2"</span><span style="color: #000000;">&#41;</span>;<br />             <br />             editor1.setTheme<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ace/theme/tomorrow_night_blue"</span><span style="color: #000000;">&#41;</span>;<br />             editor1.setFontSize<span style="color: #000000;">&#40;</span><span style="color: #000000;">18</span><span style="color: #000000;">&#41;</span>;    <br />             editor1.setHighlightActiveLine<span style="color: #000000;">&#40;</span><span style="color: #00C800;">true</span><span style="color: #000000;">&#41;</span>;<br />             editor1.session.setMode<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ace/mode/c_cpp"</span><span style="color: #000000;">&#41;</span>;<br />             <br />             editor2.setTheme<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ace/theme/tomorrow_night_blue"</span><span style="color: #000000;">&#41;</span>;<br />             editor2.setFontSize<span style="color: #000000;">&#40;</span><span style="color: #000000;">18</span><span style="color: #000000;">&#41;</span>;    <br />             editor2.setHighlightActiveLine<span style="color: #000000;">&#40;</span><span style="color: #00C800;">true</span><span style="color: #000000;">&#41;</span>;<br />             editor2.session.setMode<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ace/mode/c_cpp"</span><span style="color: #000000;">&#41;</span>;<br /><br />          </script></div>[/code:37s4qbh8]
how to display sorce code inside html
Dear Antonio, Thank you so much. I will try it. Best regards, Otto
how to distinguish xhb.org or xhb.com with ifdef
Hi guys,I started to migrate my system to work under xhb.com and sqlrdd, but I have to keep my old sql connection code, because for my clients who still using my old system version i must keep the support and i dont wanna separate my code for each version of xharbour. So for do that i thought about distinguish in my code with ifdef...some think like this:[code:32fo1x35] #ifdef __HARBOUR_COM__ //sqlrdd connection #else //old sql connection #endif [/code:32fo1x35]Someone Has any idea how to distinguish that ?thanks!
how to distinguish xhb.org or xhb.com with ifdef
[quote="dempty":379jtcwd]I started to migrate my system to work under xhb.com and sqlrdd, but I have to keep my old sql connection code, because for my clients who still using my old system version i must keep the support and i dont wanna separate my code for each version of xharbour. So for do that i thought about distinguish in my code with ifdef...some think like this: [code:379jtcwd] #ifdef __HARBOUR_COM__ //sqlrdd connection #else //old sql connection #endif [/code:379jtcwd] Someone Has any idea how to distinguish that ? thanks![/quote:379jtcwd]Sorry, there is no __XHARBOUR_COM as xHarbour Builder uses xHarbour's core engines. I would add a define of my own like this:#define __SQLRDD__Than:#ifdef __SQLRDD__...#endifPatrick
how to fix Black frame start with WMPlayer.OCX? *Fixed*
Dear All, I try to use WMPlayer.OCX and play loop for better solution than GIF file. But it has black frame before start playing the vdo. How to fix black frame as vdo clip? Thanks in advance for any help and suggestion. [img:3gikc7vf]https&#58;//s3&#46;gifyu&#46;com/images/ezgif&#46;com-video-to-gif437fcf73e86a6c60&#46;gif[/img:3gikc7vf]
how to fix Black frame start with WMPlayer.OCX? *Fixed*
I tryied too, and the only solution I found is do manually the loop: [code=fw:7lyl5sx7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />      <span style="color: #00C800;">if</span> oActiveX :<span style="color: #000000;">controls</span>:<span style="color: #000000;">currentPosition</span> > oActiveX :<span style="color: #000000;">currentMedia</span>:<span style="color: #000000;">duration</span> - <span style="color: #000000;">0.01</span><br />         oActiveX :<span style="color: #000000;">controls</span>:<span style="color: #000000;">currentPosition</span> := <span style="color: #000000;">0</span><br />      <span style="color: #00C800;">endif</span><br /> </div>[/code:7lyl5sx7] [url:7lyl5sx7]https&#58;//stackoverflow&#46;com/questions/25938149/windows-media-player-seamless-looping-of-video[/url:7lyl5sx7] As they suggest you can create a timer to do this check.
how to fix Black frame start with WMPlayer.OCX? *Fixed*
Dutch, I noticed a short loading-time during the loops here is a free Video-editor / cutter to check the frames at the beginning and end. 32 and 64 bit-version <!-- m --><a class="postlink" href="https://www.fosshub.com/Avidemux.html">https://www.fosshub.com/Avidemux.html</a><!-- m --> regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
how to fix Black frame start with WMPlayer.OCX? *Fixed*
Dear Uwe, Thank you for your reply but there is not black frame in vdo (mp4). I try Avidemux but no black frame. I try another mp4, it has got the same result. I guess, it is the frame of object before start. This is the mp4 file. [url:38y77cba]https&#58;//ibb&#46;co/ctkDSmY[/url:38y77cba] Regards, Dutch [quote="ukoenig":38y77cba]Dutch, I noticed a short loading-time during the loops here is a free Video-editor / cutter to check the frames at the beginning and end. 32 and 64 bit-version <!-- m --><a class="postlink" href="https://www.fosshub.com/Avidemux.html">https://www.fosshub.com/Avidemux.html</a><!-- m --> regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->[/quote:38y77cba]
how to fix Black frame start with WMPlayer.OCX? *Fixed*
Dutch, I tested the wmplayer as a exe-file. the problem seems to be the ocx-usage. Just a idea : 1. use avidemux and select the file 2. append the file as often to the needed length 3. save these loaded files, they will be all connected to just 1 file storage settings : Video- and Audio-codec = Copy Autput-format = MP4 muxer For the created longer file You don't need a loop regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
how to fix Black frame start with WMPlayer.OCX? *Fixed*
Dutch, I just tested and works fine just append as often to get the needed length. regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
how to fix Black frame start with WMPlayer.OCX? *Fixed*
Dear Uwe, Thank you so much for your idea. Firstly I try GIF file but it has 25 frames per second. It doesn't smooth as MP4. I try to get the best result. Thanks once again for your solution. Dutch
how to fix Black frame start with WMPlayer.OCX? *Fixed*
Dear AntoninoP, Thank you so much AntoninoP and Uwe. It's fixed black frame flicker during loop. But It is still show black frame on start playing. How do I fixed the first black frame? Thanks in advance for any help and suggestion. [quote="AntoninoP":2kyi4o95]I tryied too, and the only solution I found is do manually the loop: [code=fw:2kyi4o95]<div class="fw" id="{CB}" style="font-family: monospace;"><br />      <span style="color: #00C800;">if</span> oActiveX :<span style="color: #000000;">controls</span>:<span style="color: #000000;">currentPosition</span> > oActiveX :<span style="color: #000000;">currentMedia</span>:<span style="color: #000000;">duration</span> - <span style="color: #000000;">0.01</span><br />         oActiveX :<span style="color: #000000;">controls</span>:<span style="color: #000000;">currentPosition</span> := <span style="color: #000000;">0</span><br />      <span style="color: #00C800;">endif</span><br /> </div>[/code:2kyi4o95] [url:2kyi4o95]https&#58;//stackoverflow&#46;com/questions/25938149/windows-media-player-seamless-looping-of-video[/url:2kyi4o95] As they suggest you can create a timer to do this check.[/quote:2kyi4o95]
how to fix Black frame start with WMPlayer.OCX? *Fixed*
Dear AntoninoP and Uwe, I can fix it now. - Show in TIMER [code=fw:qxo7xkkl]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span><span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>  oActiveX :<span style="color: #000000;">controls</span>:<span style="color: #000000;">currentPosition</span> > oActiveX :<span style="color: #000000;">currentMedia</span>:<span style="color: #000000;">duration</span> - <span style="color: #000000;">0.01</span>, <span style="color: #000000;">&#40;</span>oActiveX :<span style="color: #000000;">controls</span>:<span style="color: #000000;">currentPosition</span> := <span style="color: #000000;">0.01</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>oActiveX :<span style="color: #000000;">controls</span>:<span style="color: #000000;">currentPosition</span> > <span style="color: #000000;">0.1</span>, oActiveX :<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> , <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:qxo7xkkl] - Hide() at DIALOG INIT [code=fw:qxo7xkkl]<div class="fw" id="{CB}" style="font-family: monospace;">   oActiveX = TActiveX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oDlg, <span style="color: #ff0000;">"WMPlayer.OCX"</span>,  nTop, nLeft, nWidth, nHeight <span style="color: #000000;">&#41;</span><br />   oActiveX :<span style="color: #000000;">Hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:qxo7xkkl]
how to fix Black frame start with WMPlayer.OCX? *Fixed*
Dutch, I'm just thinking about a possible dialog fade-in-effect for the video that will cover the first frames just a idea not tested yet. regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
how to fix Black frame start with WMPlayer.OCX? *Fixed*
[quote="dutch":biftgnnv]Dear AntoninoP and Uwe, I can fix it now. - Show in TIMER [code=fw:biftgnnv]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span><span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>  oActiveX :<span style="color: #000000;">controls</span>:<span style="color: #000000;">currentPosition</span> > oActiveX :<span style="color: #000000;">currentMedia</span>:<span style="color: #000000;">duration</span> - <span style="color: #000000;">0.01</span>, <span style="color: #000000;">&#40;</span>oActiveX :<span style="color: #000000;">controls</span>:<span style="color: #000000;">currentPosition</span> := <span style="color: #000000;">0.01</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>oActiveX :<span style="color: #000000;">controls</span>:<span style="color: #000000;">currentPosition</span> > <span style="color: #000000;">0.1</span>, oActiveX :<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> , <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:biftgnnv] - Hide() at DIALOG INIT [code=fw:biftgnnv]<div class="fw" id="{CB}" style="font-family: monospace;">   oActiveX = TActiveX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oDlg, <span style="color: #ff0000;">"WMPlayer.OCX"</span>,  nTop, nLeft, nWidth, nHeight <span style="color: #000000;">&#41;</span><br />   oActiveX :<span style="color: #000000;">Hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:biftgnnv][/quote:biftgnnv] Great
how to fix Black frame start with WMPlayer.OCX? *Fixed*
Dear Uwe, I test my solution and it works well now. Thank you so much for your kindness help. [quote="ukoenig":1maxecnw]Dutch, I'm just thinking about a possible dialog fade-in-effect for the video that will cover the first frames just a idea not tested yet. regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->[/quote:1maxecnw]
how to fix Black frame start with WMPlayer.OCX? *Fixed*
hi, did you use [code=fw:2nr58oxo]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;Settings:<span style="color: #000000;">AutoStart</span> := .T.<br />&nbsp; &nbsp;bOldError := ERRORBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> | e | <span style="color: #00C800;">BREAK</span><span style="color: #000000;">&#40;</span> e <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;BEGIN SEQUENCE<br />&nbsp; &nbsp; &nbsp; oActiveX&#<span style="color: #000000;">058</span>;URL := cPlayFile<br />&nbsp;</div>[/code:2nr58oxo]this Way Video start from 0:00 but you can change it to [code=fw:2nr58oxo]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;Settings:<span style="color: #000000;">AutoStart</span> := .F.<br />&nbsp; &nbsp;bOldError := ERRORBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> | e | <span style="color: #00C800;">BREAK</span><span style="color: #000000;">&#40;</span> e <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;BEGIN SEQUENCE<br />&nbsp; &nbsp; &nbsp; oActiveX&#<span style="color: #000000;">058</span>;URL := cPlayFile<br />&nbsp; &nbsp; &nbsp; oActiveX&#<span style="color: #000000;">058</span>;controls:<span style="color: #000000;">currentPosition</span> := nFirstFrame<br />&nbsp; &nbsp; &nbsp; oActiveX&#<span style="color: #000000;">058</span>;Controls:<span style="color: #000000;">Play</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2nr58oxo]
how to fix Black frame start with WMPlayer.OCX? *Fixed*
hm ... where does those sign come from ... <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o --> i have to disable BBCode [code=fw] oActiveX&#058;Settings:AutoStart := .T. bOldError := ERRORBLOCK( { | e | BREAK( e ) } ) BEGIN SEQUENCE oActiveX&#058;URL := cPlayFile [/code]this Way Video start from 0:00 but you can change it to [code=fw] oActiveX&#058;Settings:AutoStart := .F. bOldError := ERRORBLOCK( { | e | BREAK( e ) } ) BEGIN SEQUENCE oActiveX&#058;URL := cPlayFile oActiveX&#058;controls:currentPosition := nFirstFrame oActiveX&#058;Controls:Play() [/code]
how to get ""Name"" of App ?
Thanks mister Rao: [code=fw:3426ik4s]<div class="fw" id="{CB}" style="font-family: monospace;"><br />      cOrigPath  :=  <span style="color: #ff0000;">"C:<span style="color: #000000;">\D</span>ATA<span style="color: #000000;">\A</span>DDRESS.EXE"</span><br />      <span style="color: #00C800;">IF</span> ExeName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <> cOrigPath<br />         ? <span style="color: #ff0000;">"Program name or directory have been changed!"</span><br />         QUIT<br />      <span style="color: #00C800;">ENDIF</span><br /> </div>[/code:3426ik4s] Harbour: [code=fw:3426ik4s]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp; &nbsp; &nbsp; cOrigPath &nbsp;:= &nbsp;<span style="color: #ff0000;">"C:<span style="color: #000000;">\D</span>ATA<span style="color: #000000;">\A</span>DDRESS.EXE"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> HB_ProgName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <> cOrigPath<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;? <span style="color: #ff0000;">"Program name or directory have been changed!"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QUIT<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp;</div>[/code:3426ik4s] Regards, saludos.
how to get ""Name"" of App ?
We can also get exactly the same result with [code=fw:2lpoxnbk]<div class="fw" id="{CB}" style="font-family: monospace;">? HB_ArgV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span></div>[/code:2lpoxnbk] and [code=fw:2lpoxnbk]<div class="fw" id="{CB}" style="font-family: monospace;">? GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:2lpoxnbk] What to use is just a matter of personal taste. I use ExeName()
how to get ""Name"" of App ?
Yes, [url:oeqeir7r]https&#58;//vivaclipper&#46;wordpress&#46;com/2014/02/26/hb_argv/[/url:oeqeir7r] [code=fw:oeqeir7r]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Example:<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// If command line is : &nbsp;C:\temp>test.exe p1 p2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ? HB_ArgV<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #B900B9;">// C:\temp\test.exe</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ? HB_ArgV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// C:\temp\test.exe</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ? HB_ArgV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// p1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ? HB_ArgV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// p2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ? HB_ArgV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// ( Null String )</span><br />&nbsp;</div>[/code:oeqeir7r] Regards, saludos.
how to get ""Name"" of App ?
hi, under Xbase++i have AppName() to get "Name" of App how under Fivewin <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
how to get ""Name"" of App ?
[url:2hi11rhx]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=31155&p=180163&hilit=HB_ARGV&sid=01ac4c30bf4be4755dde9ce6acb4bcc5&sid=9d6c2fd2fb337b5a04c537edc8214103#p180163[/url:2hi11rhx] Regards, saludos.
how to get ""Name"" of App ?
hi, thx for Answer the Link point to [quote:1e0a84s1]How to keep a appl. on top of the dlg on resize ? (solved)[/quote:1e0a84s1] --- i got 2 Solution 1.) GetModuleFileName( GetInstance() ) 2.) GetAppName() where 2nd point to 1St
how to get ""Name"" of App ?
[code=fw:s946b22a]<div class="fw" id="{CB}" style="font-family: monospace;">? ExeName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:s946b22a]
how to get ""Name"" of App ?
hi, [quote="nageswaragunupudi":36fy3q98][code=fw:36fy3q98]<div class="fw" id="{CB}" style="font-family: monospace;">? ExeName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:36fy3q98][/quote:36fy3q98] so there are 3 Solution ... "where" is ExeName() ... can´t find it under \fwh <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
how to get ""Name"" of App ?
This is a function from Clipper Tools functions, available from the good old Clipper days. This is available in CT.LIB for xHarbour and hbct.lib for Harbour. This lib is automatically linked in build?.. Please note that this returns the exename with full path.
how to get ""Name"" of App ?
hi, [quote="nageswaragunupudi":ekrumx9m]This is a function from Clipper Tools functions, available from the good old Clipper days. This is available in CT.LIB for xHarbour and hbct.lib for Harbour.[/quote:ekrumx9m] ahh, i begin to remember ... thx for Answer
how to get ""Userdef"" EVENT for ACTION
hi, i can call "find/replace" Dialod this Way [code=fw:1uvw9ya4]<div class="fw" id="{CB}" style="font-family: monospace;">   FindReplaceDlg <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span>, lNoUpDown, lNoMatchCase, lNoWholeWord, lCheckDown, lCheckMatchCase, lCheckWholeWord, cFind, cReplace, .T., cTitle <span style="color: #000000;">&#41;</span></div>[/code:1uvw9ya4] now i need to receive Event [code=fw:1uvw9ya4]<div class="fw" id="{CB}" style="font-family: monospace;">   _HMG_MsgIDFindDlg := REGISTERFINDMSGSTRING <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// ADD</span><br /><br />   <span style="color: #00C800;">case</span> nMsg == _HMG_MsgIDFindDlg   <span style="color: #B900B9;">// FindReplace Dialog Notification   ( by Dr. Claudio Soto, January 2014 )</span><br />         EVAL <span style="color: #000000;">&#40;</span> _HMG_FindReplaceOnAction <span style="color: #000000;">&#41;</span><br /> </div>[/code:1uvw9ya4] but how to add Event to Fivewin <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> --- [code=fw:1uvw9ya4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> TCHAR       cFindWhat<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1024</span> <span style="color: #000000;">&#93;</span>;<br /><span style="color: #00C800;">static</span> TCHAR       cReplaceWith<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1024</span> <span style="color: #000000;">&#93;</span>;<br /><span style="color: #00C800;">static</span> FINDREPLACE FindReplace;<br /><span style="color: #00C800;">static</span> HWND        hDlgFindReplace = <span style="color: #00C800;">NULL</span>;<br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> REGISTERFINDMSGSTRING <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   UINT MessageID = RegisterWindowMessage<span style="color: #000000;">&#40;</span> FINDMSGSTRING <span style="color: #000000;">&#41;</span>;<br /><br />   hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> MessageID <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FINDREPLACEDLG <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd           = HB_ISNIL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ? GetActiveWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL NoUpDown       = <span style="color: #000000;">&#40;</span> BOOL <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span> HB_ISNIL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ? <span style="color: #00C800;">FALSE</span> : <span style="color: #000000;">hb_parl</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL NoMatchCase    = <span style="color: #000000;">&#40;</span> BOOL <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span> HB_ISNIL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ? <span style="color: #00C800;">FALSE</span> : <span style="color: #000000;">hb_parl</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL NoWholeWord    = <span style="color: #000000;">&#40;</span> BOOL <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span> HB_ISNIL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> ? <span style="color: #00C800;">FALSE</span> : <span style="color: #000000;">hb_parl</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL CheckDown      = <span style="color: #000000;">&#40;</span> BOOL <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span> HB_ISNIL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> ? <span style="color: #00C800;">TRUE</span>  : <span style="color: #000000;">hb_parl</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL CheckMatchCase = <span style="color: #000000;">&#40;</span> BOOL <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span> HB_ISNIL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ? <span style="color: #00C800;">FALSE</span> : <span style="color: #000000;">hb_parl</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL CheckWholeWord = <span style="color: #000000;">&#40;</span> BOOL <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span> HB_ISNIL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> ? <span style="color: #00C800;">FALSE</span> : <span style="color: #000000;">hb_parl</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL lReplace       = <span style="color: #000000;">&#40;</span> BOOL <span style="color: #000000;">&#41;</span> hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>;<br /><br />#ifndef UNICODE<br />   LPSTR FindWhat    = <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />   LPSTR ReplaceWith = <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>;<br />   LPSTR cTitle      = <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>;<br />#else<br />   LPWSTR FindWhat    = AnsiToWide<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   LPWSTR ReplaceWith = AnsiToWide<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   LPWSTR cTitle      = AnsiToWide<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />#endif<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hDlgFindReplace == <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      ZeroMemory<span style="color: #000000;">&#40;</span> &FindReplace, sizeof<span style="color: #000000;">&#40;</span> FindReplace <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />      lstrcpy<span style="color: #000000;">&#40;</span> cFindWhat, FindWhat <span style="color: #000000;">&#41;</span>;<br />      lstrcpy<span style="color: #000000;">&#40;</span> cReplaceWith, ReplaceWith <span style="color: #000000;">&#41;</span>;<br /><br />      FindReplace.lStructSize = sizeof<span style="color: #000000;">&#40;</span> FindReplace <span style="color: #000000;">&#41;</span>;<br />      FindReplace.Flags       = <span style="color: #000000;">&#40;</span> NoUpDown  ? FR_HIDEUPDOWN : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> | <span style="color: #000000;">&#40;</span> NoMatchCase    ? FR_HIDEMATCHCASE : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> | <span style="color: #000000;">&#40;</span> NoWholeWord    ? FR_HIDEWHOLEWORD : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />                                | <span style="color: #000000;">&#40;</span> CheckDown ? FR_DOWN : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> | <span style="color: #000000;">&#40;</span> CheckMatchCase ? FR_MATCHCASE : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> | <span style="color: #000000;">&#40;</span> CheckWholeWord ? FR_WHOLEWORD : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />      FindReplace.hwndOwner        = hWnd;<br />      FindReplace.lpstrFindWhat    = cFindWhat;<br />      FindReplace.wFindWhatLen     = sizeof<span style="color: #000000;">&#40;</span> cFindWhat <span style="color: #000000;">&#41;</span> / sizeof<span style="color: #000000;">&#40;</span> TCHAR <span style="color: #000000;">&#41;</span>;<br />      FindReplace.lpstrReplaceWith = cReplaceWith;<br />      FindReplace.wReplaceWithLen  = sizeof<span style="color: #000000;">&#40;</span> cReplaceWith <span style="color: #000000;">&#41;</span> / sizeof<span style="color: #000000;">&#40;</span> TCHAR <span style="color: #000000;">&#41;</span>;<br /><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lReplace <span style="color: #000000;">&#41;</span><br />         hDlgFindReplace = ReplaceText<span style="color: #000000;">&#40;</span> &FindReplace <span style="color: #000000;">&#41;</span>;<br />      <span style="color: #00C800;">else</span><br />         hDlgFindReplace = FindText<span style="color: #000000;">&#40;</span> &FindReplace <span style="color: #000000;">&#41;</span>;<br /><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_ISCHAR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />         SetWindowText<span style="color: #000000;">&#40;</span> hDlgFindReplace, cTitle <span style="color: #000000;">&#41;</span>;<br /><br />      ShowWindow<span style="color: #000000;">&#40;</span> hDlgFindReplace, SW_SHOW <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />#ifdef UNICODE<br />   hb_xfree<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> TCHAR * <span style="color: #000000;">&#41;</span> FindWhat <span style="color: #000000;">&#41;</span>;<br />   hb_xfree<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> TCHAR * <span style="color: #000000;">&#41;</span> ReplaceWith <span style="color: #000000;">&#41;</span>;<br />   hb_xfree<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> TCHAR * <span style="color: #000000;">&#41;</span> cTitle <span style="color: #000000;">&#41;</span>;<br />#endif<br /><span style="color: #000000;">&#125;</span><br /> </div>[/code:1uvw9ya4]
how to get ""Userdef"" EVENT for ACTION
Dear Jimmy, Is the event sent to hwndOwner ? If so, then you need to inherit a class from TWindow and redefine HandleEvent() method and add support for such event
how to get ""Userdef"" EVENT for ACTION
hi Antonio, [quote="Antonio Linares":d73n0cew]Is the event sent to hwndOwner ?[/quote:d73n0cew] i´m not sure ... it is like other "Common Dialog" it have to do with FINDREPLACE A/W structure [url:d73n0cew]https&#58;//learn&#46;microsoft&#46;com/en-us/windows/win32/api/commdlg/ns-commdlg-findreplacea[/url:d73n0cew] there is HB_FUNC( FINDTEXT ) in c:\fwh\source\winapi\findtext.c but no HB:FUNC() for "replace" i have take HB_FUNC( FINDREPLACEDLG ) from HMG and modify it for Fivewin ( Parameter Type ) as both work with same FINDREPLACE Structure it must be same Way for ACTION ... but how under Fivewin <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> [quote="Antonio Linares":d73n0cew] If so, then you need to inherit a class from TWindow and redefine HandleEvent() method and add support for such event[/quote:d73n0cew] have found CLASS TDlgFind() which use HB_FUNC( FINDTEXT ) [code=fw:d73n0cew]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> IDOK <span style="color: #0000ff;">OF</span> <span style="color: #00C800;">Self</span> ;</div>[/code:d73n0cew] it "this" the "OK" Button from "Dialog" <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> what do i need for "these" Buttons when using [code=fw:d73n0cew]<div class="fw" id="{CB}" style="font-family: monospace;">  FindReplaceDlg <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span>, lNoUpDown, lNoMatchCase, lNoWholeWord, lCheckDown, lCheckMatchCase, lCheckWholeWord, cFind, cReplace, .T., cTitle <span style="color: #000000;">&#41;</span></div>[/code:d73n0cew] [img:d73n0cew]https&#58;//i&#46;postimg&#46;cc/L5kHT7S3/Find-Replace&#46;jpg[/img:d73n0cew] --- this is HMG CODE Syntax [code=fw:d73n0cew]<div class="fw" id="{CB}" style="font-family: monospace;">#xtranslate FINDTEXTDIALOG  ;<br />           <span style="color: #000000;">&#91;</span> <dummy1: <span style="color: #0000ff;">ACTION</span>,<span style="color: #0000ff;">ON</span> ACTION> <action> <span style="color: #000000;">&#93;</span>;<br />           <span style="color: #000000;">&#91;</span> FIND <cFind> <span style="color: #000000;">&#93;</span> ;<br />           <span style="color: #000000;">&#91;</span> <NoUpDown: <span style="color: #000000;">NOUPDOWN</span>> <span style="color: #000000;">&#93;</span> ;<br />           <span style="color: #000000;">&#91;</span> <NoMatchCase: <span style="color: #000000;">NOMATCHCASE</span>> <span style="color: #000000;">&#93;</span> ;<br />           <span style="color: #000000;">&#91;</span> <NoWholeWord: <span style="color: #000000;">NOWHOLEWORD</span>> <span style="color: #000000;">&#93;</span> ;<br />           <span style="color: #000000;">&#91;</span> CHECKDOWN <CheckDown> <span style="color: #000000;">&#93;</span> ;<br />           <span style="color: #000000;">&#91;</span> CHECKMATCHCASE <CheckMatchCase> <span style="color: #000000;">&#93;</span> ;<br />           <span style="color: #000000;">&#91;</span> CHECKWHOLEWORD <CheckWholeWord> <span style="color: #000000;">&#93;</span> ;<br />           <span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">TITLE</span> <cTitle> <span style="color: #000000;">&#93;</span> ;<br />=> FindTextDlg <span style="color: #000000;">&#40;</span> <<span style="color: #000000;">&#123;</span><span style="color: #0000ff;">action</span><span style="color: #000000;">&#125;</span>>, <cFind>, <.NoUpDown.>, <.NoMatchCase.>, <.NoWholeWord.>, <CheckDown>, <CheckMatchCase>, <CheckWholeWord>, <cTitle> <span style="color: #000000;">&#41;</span> <br /><br />#xtranslate REPLACETEXTDIALOG ;<br />           <span style="color: #000000;">&#91;</span> <dummy1: <span style="color: #0000ff;">ACTION</span>,<span style="color: #0000ff;">ON</span> ACTION> <action> <span style="color: #000000;">&#93;</span>;<br />           <span style="color: #000000;">&#91;</span> FIND <cFind> <span style="color: #000000;">&#93;</span> ;<br />           <span style="color: #000000;">&#91;</span> REPLACE <cReplace> <span style="color: #000000;">&#93;</span> ;<br />           <span style="color: #000000;">&#91;</span> <NoMatchCase: <span style="color: #000000;">NOMATCHCASE</span>> <span style="color: #000000;">&#93;</span> ;<br />           <span style="color: #000000;">&#91;</span> <NoWholeWord: <span style="color: #000000;">NOWHOLEWORD</span>> <span style="color: #000000;">&#93;</span> ;<br />           <span style="color: #000000;">&#91;</span> CHECKMATCHCASE <CheckMatchCase> <span style="color: #000000;">&#93;</span> ;<br />           <span style="color: #000000;">&#91;</span> CHECKWHOLEWORD <CheckWholeWord> <span style="color: #000000;">&#93;</span> ;<br />           <span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">TITLE</span> <cTitle> <span style="color: #000000;">&#93;</span> ;<br />=> ReplaceTextDlg <span style="color: #000000;">&#40;</span> <<span style="color: #000000;">&#123;</span><span style="color: #0000ff;">action</span><span style="color: #000000;">&#125;</span>>, <cFind>, <cReplace>, <.NoMatchCase.>, <.NoWholeWord.>, <CheckMatchCase>, <CheckWholeWord> , <cTitle> <span style="color: #000000;">&#41;</span></div>[/code:d73n0cew] this i use under HMG [code=fw:d73n0cew]<div class="fw" id="{CB}" style="font-family: monospace;">     FINDTEXTDIALOG <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">ACTION</span> FindReplTXTProc<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> FIND cFind CHECKDOWN lDown CHECKMATCHCASE lMatchCase CHECKWHOLEWORD lWholeWord <span style="color: #000000;">&#41;</span></div>[/code:d73n0cew] [code=fw:d73n0cew]<div class="fw" id="{CB}" style="font-family: monospace;">PROCEDURE FindReplTXTProc<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> lSelectFindText<br /><span style="color: #00C800;">LOCAL</span> aPosRange       := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">LOCAL</span> cFind           := SP_cFindText<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> cHoleText, nPosi, hEditbox<br /><br /><span style="color: #00C800;">STATIC</span> nStart := <span style="color: #000000;">1</span><br /><br />   <span style="color: #00C800;">IF</span> FindReplaceDlg.RetValue == FRDLG_CANCEL                         <span style="color: #B900B9;">// User Cancel or Close dialog</span><br />      <span style="color: #00C800;">RETURN</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   cFind := FindReplaceDlg.Find<br />   cReplace := FindReplaceDlg.Replace<br />   lDown := FindReplaceDlg.<span style="color: #0000ff;">Down</span><br />   lMatchCase := FindReplaceDlg.MatchCase<br />   lWholeWord := FindReplaceDlg.WholeWord<br />   lSelectFindText := .T.<br /><br />   SP_cFindText<span style="color: #000000;">&#40;</span> cFind <span style="color: #000000;">&#41;</span><br />   cHoleText := TXTEdit.TXTCtrl.Value<br />   <span style="color: #00C800;">IF</span> lDown = .T.<br />      nPosi := hb_at<span style="color: #000000;">&#40;</span> UPPER<span style="color: #000000;">&#40;</span> cFind <span style="color: #000000;">&#41;</span>, UPPER<span style="color: #000000;">&#40;</span> cHoleText <span style="color: #000000;">&#41;</span>, nStart <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ELSE</span><br />      nPosi := hb_rat<span style="color: #000000;">&#40;</span> UPPER<span style="color: #000000;">&#40;</span> cFind <span style="color: #000000;">&#41;</span>, UPPER<span style="color: #000000;">&#40;</span> cHoleText <span style="color: #000000;">&#41;</span>, nStart <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   <span style="color: #00C800;">IF</span> nPosi > <span style="color: #000000;">0</span><br />      TXTEdit.TXTCtrl.CaretPos := nPosi<br />      hEditbox := GetControlHandle<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TXTCtrl"</span>, <span style="color: #ff0000;">"TXTEdit"</span> <span style="color: #000000;">&#41;</span><br />      SendMessage<span style="color: #000000;">&#40;</span> hEditbox, EM_SETSEL, nPosi - <span style="color: #000000;">1</span>, nPosi + LEN<span style="color: #000000;">&#40;</span> cFind <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      nStart := nPosi + <span style="color: #000000;">1</span><br />   <span style="color: #00C800;">ELSE</span><br />      <span style="color: #00C800;">IF</span> lDown = .T.<br />         <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EOF no more"</span> <span style="color: #000000;">&#41;</span><br />         nStart := <span style="color: #000000;">1</span><br />      <span style="color: #00C800;">ELSE</span><br />         <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"BOF no more"</span> <span style="color: #000000;">&#41;</span><br />         nStart := LEN<span style="color: #000000;">&#40;</span> cHoleText <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">ENDIF</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span></div>[/code:d73n0cew]
how to get ""Userdef"" EVENT for ACTION
hi Antonio, [quote="Antonio Linares":9skuc8hh]Is the event sent to hwndOwner ?[/quote:9skuc8hh] i think Yes [code=fw:9skuc8hh]<div class="fw" id="{CB}" style="font-family: monospace;">  FindReplaceDlg <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span>, lNoUpDown, lNoMatchCase, lNoWholeWord, lCheckDown, lCheckMatchCase, lCheckWholeWord, cFind, cReplace, .T., cTitle <span style="color: #000000;">&#41;</span><br /><br /><br />   HWND hWnd           = HB_ISNIL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ? GetActiveWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   ...<br />   FindReplace.hwndOwner        = hWnd;</div>[/code:9skuc8hh] FindTextA function [url:9skuc8hh]https&#58;//learn&#46;microsoft&#46;com/en-us/windows/win32/api/commdlg/nf-commdlg-findtexta[/url:9skuc8hh] [quote:9skuc8hh]The FindText function does not perform a search operation. Instead, the dialog box sends FINDMSGSTRING registered messages to the window procedure of the owner window of the dialog box. When you create the dialog box, the hwndOwner member of the FINDREPLACE structure is a handle to the owner window.[/quote:9skuc8hh] --- ReplaceTextA function [url:9skuc8hh]https&#58;//learn&#46;microsoft&#46;com/en-us/windows/win32/api/commdlg/nf-commdlg-replacetexta[/url:9skuc8hh] [quote:9skuc8hh]The ReplaceText function does not perform a text replacement operation. Instead, the dialog box sends FINDMSGSTRING registered messages to the window procedure of the owner window of the dialog box. When you create the dialog box, the hwndOwner member of the FINDREPLACE structure is a handle to the owner window.[/quote:9skuc8hh]
how to get ""Userdef"" EVENT for ACTION
hi, have look into c:\fwh\source\classes\dlgfind.prg and found REDEFINE / ACTION ... hm ... <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> have made a copy and change into [code=fw:10ubfstr]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #B900B9;">//    RegDialog( ::hWnd := FindText( cText, oWnd:hWnd, @nFindMsgString ) )</span><br />   RegDialog<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> := FindReplaceDlg<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span>, lNoUpDown, lNoMatchCase, lNoWholeWord, lCheckDown, lCheckMatchCase, lCheckWholeWord, cText, cReplace, lReplace, cTitle <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> IDOK <span style="color: #0000ff;">OF</span> <span style="color: #00C800;">Self</span> ;<br />           <span style="color: #0000ff;">ACTION</span> EVAL<span style="color: #000000;">&#40;</span> bSearch, ;<br />           GetWindowText<span style="color: #000000;">&#40;</span> GetWindow<span style="color: #000000;">&#40;</span> GetWindow<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, GW_CHILD <span style="color: #000000;">&#41;</span>, GW_HWNDNEXT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />           lForward, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> 0x400 <span style="color: #0000ff;">OF</span> <span style="color: #00C800;">Self</span> ;<br />           <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"400"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> 0x401 <span style="color: #0000ff;">OF</span> <span style="color: #00C800;">Self</span> ;<br />           <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"401"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> IDCANCEL <span style="color: #0000ff;">OF</span> <span style="color: #00C800;">Self</span> ;<br />           <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">nil</span></div>[/code:10ubfstr] now i do not "wait" for Event, generate by press a Button, as i can "control" Button itself REDEFINE is GREAT <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> p.s. i found BUTTON ID using WinID <!-- m --><a class="postlink" href="https://dennisbabkin.com/winid/">https://dennisbabkin.com/winid/</a><!-- m -->
how to get ""Userdef"" EVENT for ACTION
hi Antonio, [quote="Antonio Linares":16a2wiwo]If so, then you need to inherit a class from TWindow and redefine HandleEvent() method and add support for such event[/quote:16a2wiwo] [code=fw:16a2wiwo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">CLASS</span> TMyWindow <span style="color: #0000ff;">FROM</span> TWindow<br />   CLASSDATA lRegistered<br /><br />   <span style="color: #00C800;">METHOD</span> HandleEvent<span style="color: #000000;">&#40;</span> nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> Notify<span style="color: #000000;">&#40;</span> nIdCtrl, nPtrNMHDR <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Common controls notifications</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">METHOD</span> HandleEvent<span style="color: #000000;">&#40;</span> nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TMyWindow<br />   <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />     <span style="color: #00C800;">CASE</span> nMsg == _HMG_MsgIDFindDlg<br />         _HMG_FindReplaceOptions := FindReplaceDlgGetOptions<span style="color: #000000;">&#40;</span> nLParam <span style="color: #000000;">&#41;</span><br />         EVAL<span style="color: #000000;">&#40;</span> HMG_FindReplaceOnAction <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">IF</span> _HMG_FindReplaceOptions<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> == <span style="color: #000000;">0</span>                         <span style="color: #B900B9;">// User CANCEL or CLOSE Dialog</span><br />            FindReplaceDlgRelease<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span>                              <span style="color: #B900B9;">// Destroy Dialog Window and Set NULL Dialog Handle</span><br />         <span style="color: #00C800;">ENDIF</span><br />         AFILL<span style="color: #000000;">&#40;</span> _HMG_FindReplaceOptions, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br /><br />     <span style="color: #00C800;">CASE</span> nMsg == WM_POWERBROADCAST<br />         <span style="color: #00C800;">RETURN</span> BROADCAST_QUERY_DENY<br />   <span style="color: #00C800;">ENDCASE</span><br /><br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #00C800;">Super</span>:<span style="color: #000000;">HandleEvent</span><span style="color: #000000;">&#40;</span> nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span></div>[/code:16a2wiwo] YES, that was the missing part FindReplaceDlgGetOptions( nLParam ) will get "Info" of Dialog in a Array AFTER i press a Button in Dialog [code=fw:16a2wiwo]<div class="fw" id="{CB}" style="font-family: monospace;">         _HMG_FindReplaceOnAction := <span style="color: #000000;">&#123;</span> || FindReplTXTProc<span style="color: #000000;">&#40;</span>oMGet,cFind,cMemo<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />         DlgFindReplace<span style="color: #000000;">&#40;</span> @cFind, oWnd, <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span>, ;<br />                                        lReplace, cReplace, cTitle, lNoUpDown, lNoMatchCase, lNoWholeWord, lCheckDown, lCheckMatchCase, lCheckWholeWord <span style="color: #000000;">&#41;</span></div>[/code:16a2wiwo] i need to call as "other" Codeblock "_HMG_FindReplaceOnAction" which run under "TMyWindow"
how to get CTRL + LBUTTONDOWN Event ?
hi, to "mark" multiple Item in Windows Explorer you need "Control + left Mouse Button down" how to get that Event <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> --- i need it for my CLASS TGrid where i get "Keyboard" Input in Method Notify [code=fw:3lcksc69]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #00C800;">CASE</span> nCode == LVN_KEYDOWN<br />      nKey := LV_GETGRIDVKEY<span style="color: #000000;">&#40;</span> nPtrNMHDR <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">IF</span> nKey = <span style="color: #000000;">13</span><br />         <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">bClick</span> != <span style="color: #00C800;">nil</span><br />            EVAL<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bClick</span>, ::<span style="color: #000000;">nOption</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">ENDIF</span><br /> </div>[/code:3lcksc69] is this the Place to "ask" for CTRL + LBUTTONDOWN <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> [code=fw:3lcksc69]<div class="fw" id="{CB}" style="font-family: monospace;">      <span style="color: #B900B9;">//  CTRL + Left Mouse down  </span><br />      ELSEIF <span style="color: #000000;">&#40;</span> GetKeyState<span style="color: #000000;">&#40;</span> VK_CONTROL <span style="color: #000000;">&#41;</span> .AND. ??? <span style="color: #000000;">&#41;</span></div>[/code:3lcksc69]