topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
search a word on a field string RESOLVED ! | SELECT INV
SET FILTER TO UPPER( cTopic ) $ FIELD->TAGS
GO TOP |
search a word on a field string RESOLVED ! | not good sorry
it not search any record but on archive there is |
search a word on a field string RESOLVED ! | [quote="nageswaragunupudi":2b0aqxhp]SELECT INV
SET FILTER TO UPPER( cTopic ) $ FIELD->TAGS
GO TOP[/quote:2b0aqxhp]
Is the text in FIELD->TAGS in upper case? Otherwise
[code=fw:2b0aqxhp]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">SELECT</span> INV<br />SET FILTER <span style="color: #0000ff;">TO</span> UPPER<span style="color: #000000;">(</span> cTopic <span style="color: #000000;">)</span> $ upper<span style="color: #000000;">(</span>FIELD->TAGS<span style="color: #000000;">)</span><br />GO TOP</div>[/code:2b0aqxhp] |
search a word on a field string RESOLVED ! | Sorry not work
I open this archive
[img:1wj9mw7i]https://s7.postimg.cc/mgre47jzv/image.jpg[/img:1wj9mw7i]
and select one for a sample the first record "Computer" Now I wish search on Inventario.dbf and on BiTags field if there is the word selected "Computer"
as you wrote I try with
SELECT INV
SET FILTER TO UPPER( cTopic ) $ FIELD->TAGS
GO TOP
or
SELECT INV
SET FILTER TO UPPER( cTopic ) $ upper(FIELD->TAGS)
GO TOP
then open the xbrowse
and [b:1wj9mw7i]I not see any record [/b:1wj9mw7i]
But on archive inventario.dbf [u:1wj9mw7i]there are some record have the word "Computer"[/u:1wj9mw7i] on that field as you can see here
[img:1wj9mw7i]https://s7.postimg.cc/dlqjtviej/image.jpg[/img:1wj9mw7i]
it must show the 1,3,4,5 record instead nothing
Why Happen this ... [b:1wj9mw7i]where I make error[/b:1wj9mw7i] ?
can I send you a test ? |
search a word on a field string RESOLVED ! | Silvio,
Just to be sure, what is the tame of the table name with the field 'cTtopic' (first database), and what is the one with the field 'Tags' with the text "Computer; Portatile; apparecchi per la cucina;" |
search a word on a field string RESOLVED ! | write to me pls
silvio[dot]falconi[at]gmail[dot]com
I can send you a test |
search a word on a field string RESOLVED ! | I trying also with
cMaMateria:="Computer"
Do while .not. be->(eof())
cstring:= alltrim(BE->BITAGS)
if alltrim(cMaMateria+";") $ cstring
aadd( aRecord, str(BE->( RecNo() )) )
Endif
? cstring
BE->(Dbskip())
Enddo
xbrowser aRecord
not found any records ... why ? |
search a word on a field string RESOLVED ! | I tried also with
SET FILTER TO at(UPPER( cMaMateria ), UPPER( BE->BITAGS)) >0
but not work |
search a word on a field string RESOLVED ! | Now I tried with EMAGDBU as you can see here and the command RUN OK
[img:281ikgvi]https://s17.postimg.cc/eri2n0ukv/image.jpg[/img:281ikgvi]
perhaps I found the error ...grrrrrrrrr alltrim() sorry <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
search for TTabControl() Sample | hi,
i´m searching for TAB Sample and found TTabControl() and TTabs()
for TTabControl () i found
[quote:1zf0qyt9]c:\fwh\samples\testtctr.prg[/quote:1zf0qyt9]
but Sample is limited to 10 lines ... <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
---
as i remember SysTabControl is "just" Control for "Tabs" but have "no Body"
in FiveWin Sample i can "see" a white Area so i guess "something" have add
but how to "use Body" as Parent to put a Control on it <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
---
i try to use oTabs as Parent but got Error
[quote:1zf0qyt9] Called from: ../../../tobject.prg => TTABCONTROL:ADIALOGS( 0 )
Called from: .\source\classes\WINDOW.PRG => (b)TWINDOW_GOTFOCUS( 3018 )[/quote:1zf0qyt9]
but there is not ADIALOGS in CLASS TTabControl() ... hm <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? -->
who can help me and show me a (working) Sample
.p.s. i do not want to use CLASS TTabs() |
search for TTabControl() Sample | here a Sample which crash TTABCONTROL:ADIALOGS
[code=fw:frolpt1z]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br />MEMVAR oMain, oExplorer, oStatusBar, lImage, oTabs<br /><br />PROCEDURE Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oFont<br /><span style="color: #00C800;">LOCAL</span> nHeight := <span style="color: #000000;">1024</span><br /><span style="color: #00C800;">LOCAL</span> nWidth := <span style="color: #000000;">1280</span><br /><span style="color: #00C800;">LOCAL</span> nTop := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">LOCAL</span> nLeft := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">LOCAL</span> nIcoLarge := <span style="color: #000000;">256</span><br /><span style="color: #00C800;">LOCAL</span> nIcoSmall := <span style="color: #000000;">32</span><br /><span style="color: #00C800;">LOCAL</span> cLog := cFileSetExt<span style="color: #000000;">(</span> ExeName<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"LOG"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">PRIVATE</span> oMain<br /><span style="color: #00C800;">PRIVATE</span> oExplorer<br /><span style="color: #00C800;">PRIVATE</span> oStatusBar<br /><span style="color: #00C800;">PRIVATE</span> oTabs<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oMain <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FiveWin TGrid Listview Demo "</span> <span style="color: #0000ff;">ICON</span> <span style="color: #ff0000;">"A1MAIN"</span><br /><br /> oTabs = TTabControl<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> nTop, nLeft, , , oMain, , , , .T., .F., nWidth<span style="color: #000000;">-20</span>, nHeight<span style="color: #000000;">-20</span>, <span style="color: #000000;">)</span><br /> oTabs:<span style="color: #000000;">bAction</span> = <span style="color: #000000;">{</span>|| EVAL<span style="color: #000000;">(</span>&<span style="color: #000000;">(</span><span style="color: #ff0000;">"DoProc"</span>+AllTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> oTabs:<span style="color: #000000;">nOption</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>+<span style="color: #ff0000;">"()"</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> oTabs:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Grid_1 "</span> <span style="color: #000000;">)</span><br /> oTabs:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Grid_2 "</span> <span style="color: #000000;">)</span><br /> oTabs:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Grid_3 "</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> STATUSBAR oStatusBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Hello World "</span> <span style="color: #0000ff;">OF</span> oMain SIZES nWidth - <span style="color: #000000;">100</span> CLOCK<br /><br />#IFDEF __HMG__<br /> END STATUSBAR<br /> END <span style="color: #0000ff;">WINDOW</span><br />#ENDIF<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oMain <span style="color: #0000ff;">CENTER</span><br /><br /><span style="color: #00C800;">RETURN</span><br /><br />PROCEDURE DoProc1<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"switch 1"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span><br /><br />PROCEDURE DoProc2<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"switch 2"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span><br /><br />PROCEDURE DoProc3<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"switch 3"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span></div>[/code:frolpt1z]
it does show MsgInfo() and than crash <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
[quote:frolpt1z] Error description: Error BASE/1004 Message not found: TTABCONTROL:ADIALOGS
Args:
[ 1] = O TTABCONTROL
Stack Calls
===========
Called from: => __ERRRT_SBASE( 0 )
Called from: ../../../tobject.prg => TTABCONTROL:ERROR( 0 )
Called from: ../../../tobject.prg => (b)HBOBJECT( 0 )
Called from: ../../../tobject.prg => TTABCONTROL:MSGNOTFOUND( 0 )
Called from: ../../../tobject.prg => TTABCONTROL:ADIALOGS( 0 )
Called from: .\source\classes\WINDOW.PRG => (b)TWINDOW_GOTFOCUS( 3018 )
Called from: => AEVAL( 0 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:GOTFOCUS( 3018 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3681 )
Called from: => MSGINFO( 0 )
Called from: TCONTROL.prg => DOPROC2( 60 )
Called from: TCONTROL.prg => (b)MAIN( 23 )
Called from: .\source\classes\TTABCTRL.PRG => TTABCONTROL:NOTIFY( 165 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:NOTIFY( 1612 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3681 )
Called from: => WINRUN( 0 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1114 )
Called from: TCONTROL.prg => MAIN( 51 )[/quote:frolpt1z] |
search for TTabControl() Sample | Dear Jimmy,
I guess that you are talking about folders. In FWH you have the class TFolder
Search for TFolder in FWH\samples |
search for TTabControl() Sample | hi Antonio,
[quote="Antonio Linares":263t9nig]I guess that you are talking about folders. In FWH you have the class TFolder[/quote:263t9nig]
thx for Hint using CLASS TFolder()
i have look into Sample Textfx3.PRG but don´t understand how it work.
i can "see" some Controls on "Body" but where is the CODE for it <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? -->
---
Sample Textfx4.PRG "seems" to show what i miss "aDialogs"
[code=fw:263t9nig]<div class="fw" id="{CB}" style="font-family: monospace;"> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span></div>[/code:263t9nig]
so i will try that
---
Question : what is TTABCONTROL() for when not used under FiveWin <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
search for TTabControl() Sample | hi Antonio,
have some (small) Problem with TFolder()
when i assign {} as 3rd Parameter (aPrompts) of TFolder() and use AddItem() than Control will not appear <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? -->
[code=fw:3olztdp1]<div class="fw" id="{CB}" style="font-family: monospace;"> oTabs := TFolder<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>,<span style="color: #000000;">{</span><span style="color: #000000;">}</span> , , oMain, <span style="color: #000000;">1</span>, , , .t.,;<br /> .f., oMain:<span style="color: #000000;">nRight</span> - oMain:<span style="color: #000000;">nLeft</span>, oMain:<span style="color: #000000;">nBottom</span> - oMain:<span style="color: #000000;">nTop</span> <span style="color: #000000;">)</span><br /> oTabs:<span style="color: #000000;">AddItem</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Grid_1"</span><span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">20</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"blabla"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">OF</span> oTabs:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"blabla"</span><span style="color: #000000;">)</span></div>[/code:3olztdp1]
...
when add more Tab
[code=fw:3olztdp1]<div class="fw" id="{CB}" style="font-family: monospace;"> oTabs:<span style="color: #000000;">AddItem</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Grid_2"</span><span style="color: #000000;">)</span></div>[/code:3olztdp1]
Button on oTabs:aDialogs[ 1 ] appear
---
when "fill" 3rd Parameter {"Test"} and NOT use AddItem() it work and Button appear
is this a BUG <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
search for TTabControl() Sample | Dear Jimmy,
Please provide a complete PRG to test it, thanks |
search for TTabControl() Sample | try this
[code=fw:3ckzq0k4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br />MEMVAR oMain, oTabs, oStatusBar<br /><br />PROCEDURE Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oFont<br /><span style="color: #00C800;">LOCAL</span> nHeight := <span style="color: #000000;">1024</span><br /><span style="color: #00C800;">LOCAL</span> nWidth := <span style="color: #000000;">1280</span><br /><span style="color: #00C800;">LOCAL</span> nTop := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">LOCAL</span> nLeft := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">LOCAL</span> oBtn<br /><br /><span style="color: #00C800;">PRIVATE</span> oMain, oTabs, oStatusBar<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oMain <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FiveWin TGrid Listview Demo "</span><br /><br />* <span style="color: #00D7D7;">#define</span> working<br />#IFDEF working<br /> oTabs := TFolder<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span>,<span style="color: #000000;">{</span><span style="color: #ff0000;">"no_1"</span><span style="color: #000000;">}</span> , , oMain, <span style="color: #000000;">1</span>, , , .t.,;<br /> .f., oMain:<span style="color: #000000;">nRight</span> - oMain:<span style="color: #000000;">nLeft</span>, oMain:<span style="color: #000000;">nBottom</span> - oMain:<span style="color: #000000;">nTop</span> <span style="color: #000000;">)</span><br />#ELSE<br /> oTabs := TFolder<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span>,<span style="color: #000000;">{</span><span style="color: #000000;">}</span> , , oMain, <span style="color: #000000;">1</span>, , , .t.,;<br /> .f., oMain:<span style="color: #000000;">nRight</span> - oMain:<span style="color: #000000;">nLeft</span>, oMain:<span style="color: #000000;">nBottom</span> - oMain:<span style="color: #000000;">nTop</span> <span style="color: #000000;">)</span><br /> oTabs:<span style="color: #000000;">AddItem</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Grid_1"</span><span style="color: #000000;">)</span><br />* oTabs:<span style="color: #000000;">AddItem</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Grid_2"</span><span style="color: #000000;">)</span><br />#ENDIF<br /><br /> oTabs:<span style="color: #000000;">SetOption</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">20</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"blabla"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">OF</span> oTabs:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"blabla"</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> STATUSBAR oStatusBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Hello World "</span> <span style="color: #0000ff;">OF</span> oMain SIZES nWidth - <span style="color: #000000;">100</span> CLOCK<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oMain <span style="color: #0000ff;">CENTER</span><br /><br /><span style="color: #00C800;">RETURN</span></div>[/code:3ckzq0k4] |
search for TTabControl() Sample | This works fine here:
[code=fw:3ddyhr6i]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br />PROCEDURE Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> nHeight := <span style="color: #000000;">1024</span><br /><span style="color: #00C800;">LOCAL</span> nWidth := <span style="color: #000000;">1280</span><br /><br /><span style="color: #00C800;">PRIVATE</span> oMain, oTabs, oStatusBar<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oMain <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FiveWin TGrid Listview Demo "</span><br /><br />* <span style="color: #00D7D7;">#define</span> working<br />#ifdef working<br /> oTabs := TFolder<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span>,<span style="color: #000000;">{</span><span style="color: #ff0000;">"no_1"</span><span style="color: #000000;">}</span> , , oMain, <span style="color: #000000;">1</span>, , , .t.,;<br /> .f., oMain:<span style="color: #000000;">nRight</span> - oMain:<span style="color: #000000;">nLeft</span>, oMain:<span style="color: #000000;">nBottom</span> - oMain:<span style="color: #000000;">nTop</span> <span style="color: #000000;">)</span><br />#else<br /> oTabs := TFolder<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span>,<span style="color: #000000;">{</span><span style="color: #000000;">}</span> , , oMain, <span style="color: #000000;">1</span>, , , .t.,;<br /> .f., oMain:<span style="color: #000000;">nRight</span> - oMain:<span style="color: #000000;">nLeft</span>, oMain:<span style="color: #000000;">nBottom</span> - oMain:<span style="color: #000000;">nTop</span> <span style="color: #000000;">)</span><br /> oTabs:<span style="color: #000000;">AddItem</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Grid_1"</span><span style="color: #000000;">)</span><br /> oTabs:<span style="color: #000000;">AddItem</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Grid_2"</span><span style="color: #000000;">)</span><br />#endif<br /><br /> oTabs:<span style="color: #000000;">SetOption</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">20</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"blabla"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">OF</span> oTabs:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"blabla"</span><span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">20</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"blabla2"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">OF</span> oTabs:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"blabla2"</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> STATUSBAR oStatusBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Hello World "</span> <span style="color: #0000ff;">OF</span> oMain SIZES nWidth - <span style="color: #000000;">100</span> CLOCK<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oMain <span style="color: #0000ff;">CENTER</span><br /><br /><span style="color: #00C800;">RETURN</span></div>[/code:3ddyhr6i] |
search for TTabControl() Sample | hi Enrico,
[quote="Enrico Maria Giordano":bixcproy]This works fine here:[/quote:bixcproy]
did you see a big Button and got MsgInfo() when click on it <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
search for TTabControl() Sample | Yes, on both tabs. |
search for TTabControl() Sample | hi Enrico,
[quote="Enrico Maria Giordano":tjntyxgy]Yes, on both tabs.[/quote:tjntyxgy]
should be only 1 x TAB , as provide Original, which does not work |
search for TTabControl() Sample | I don't understand. Can you describe the problem clearly and show a sample reproducing it, please? |
search for TTabControl() Sample | Dear Jimmy,
This is the right way to do it:
[code=fw:nr2ut26w]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br />MEMVAR oMain, oTabs, oStatusBar<br /><br />PROCEDURE Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oFont<br /><span style="color: #00C800;">LOCAL</span> nHeight := <span style="color: #000000;">400</span><br /><span style="color: #00C800;">LOCAL</span> nWidth := <span style="color: #000000;">300</span><br /><span style="color: #00C800;">LOCAL</span> nTop := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">LOCAL</span> nLeft := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">LOCAL</span> oBtn<br /><br /><span style="color: #00C800;">PRIVATE</span> oMain, oTabs, oStatusBar<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oMain <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FiveWin TGrid Listview Demo "</span><br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">FOLDER</span> oTabs <span style="color: #0000ff;">PROMPTS</span> <span style="color: #ff0000;">"no_1"</span> <span style="color: #0000ff;">OF</span> oMain <br /><br /> oMain:<span style="color: #000000;">oClient</span> = oTabs<br /><br /> @ <span style="color: #000000;">20</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"blabla"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oTabs:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"blabla"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> STATUSBAR oStatusBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Hello World "</span> <span style="color: #0000ff;">OF</span> oMain SIZES nWidth - <span style="color: #000000;">100</span> CLOCK<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oMain <span style="color: #0000ff;">CENTER</span><br /><br /><span style="color: #00C800;">RETURN</span></div>[/code:nr2ut26w] |
search for TTabControl() Sample | Jimmy,
This post has also a sample with Folders. Maybe usefull
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=41175&hilit=+folder">viewtopic.php?f=3&t=41175&hilit=+folder</a><!-- l --> |
search for TTabControl() Sample | FWH class TFolder and TPages are created from Windows TTabControl32, with extended functionality.
TFolder class is very widely used and we should find many examples if we look around.
TFolderEx is totally FWH own control and does not depend on any Windows control.
TTabs control also is an FWH own control. |
search for TTabControl() Sample | hi Enrico,
please use Sample "as it is" without "modification" to get "Problem" which i got.
what i have "comment out" are (working) Solution i found |
search for TTabControl() Sample | hi Antonio,
thx for Sample
Question : what is the Difference "oTabs OF oMain" vs. "oMain:oClient = oTabs" <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
search for TTabControl() Sample | hi Marc,
thx for Answer.
i got a working Solution |
search for TTabControl() Sample | hi,
thx for Answer.
i have search in Source for "TTabControl32" ... there is no File include it <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? -->
than i have search for "TTabControl" and it is only in "that" CLASS
"SysTabControl32" is used in
[quote:8duuzps8]c:\fwh\source\classes\folder.prg
c:\fwh\source\classes\tpages.prg
c:\fwh\source\classes\ttabctrl.prg
c:\fwh\source\classes\window.prg[/quote:8duuzps8]
but i can´t "see" that TFolder() or TPages() use CLASS TTabControl()
---
p.s.
as i want to use CODE for different xBase Dialect i use "Original" Windows Control only.
CLASS TFOLDEREX() is very nice but i´m not sure that i can use Concept with HMG or Xbase++ |
search for TTabControl() Sample | Please read TFolder():New() and TPages():New() methods. You will find:
[code=fw:nkik5bai]<div class="fw" id="{CB}" style="font-family: monospace;"> ::<span style="color: #000000;">Create</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"SysTabControl32"</span> <span style="color: #000000;">)</span><br /> </div>[/code:nkik5bai]
That means both these controls are created using Windows' SysTabControl32() |
search for TTabControl() Sample | [quote:21tnogxo]Question : what is the Difference "oTabs OF oMain" vs. "oMain:oClient = oTabs" <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
[/quote:21tnogxo]
[code=fw:21tnogxo]<div class="fw" id="{CB}" style="font-family: monospace;">@ r,c TABS oTabs <span style="color: #0000ff;">OF</span> oWnd <otherClause></div>[/code:21tnogxo]
oTabs is created as one of the controls inside oWnd.
oWnd is the Parent of oTabs.
oTabs is one the memebers of oWnd:aControls
[code=fw:21tnogxo]<div class="fw" id="{CB}" style="font-family: monospace;">oWnd:<span style="color: #000000;">oClient</span> := oBrw</div>[/code:21tnogxo]
oBrw occupies the entire client area of oWnd. When oWnd is resized, oBrw also is resized to fit inside the Parent window's client area. |
search for TTabControl() Sample | hi,
[quote="nageswaragunupudi":11bpnhm0]
[code=fw:11bpnhm0]<div class="fw" id="{CB}" style="font-family: monospace;">oWnd:<span style="color: #000000;">oClient</span> := oBrw</div>[/code:11bpnhm0]
oBrw occupies the entire client area of oWnd. When oWnd is resized, oBrw also is resized to fit inside the Parent window's client area.[/quote:11bpnhm0]
aah, now i understand <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> , thx |
search for TTabControl() Sample | [quote="Jimmy":2y89jri1]hi Enrico,
please use Sample "as it is" without "modification" to get "Problem" which i got.
what i have "comment out" are (working) Solution i found[/quote:2y89jri1]
You are right. There has to be a bug in folder.prg. This is a workaroud:
[code=fw:2y89jri1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br />MEMVAR oMain, oTabs, oStatusBar<br /><br />PROCEDURE Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> nHeight := <span style="color: #000000;">1024</span><br /><span style="color: #00C800;">LOCAL</span> nWidth := <span style="color: #000000;">1280</span><br /><br /><span style="color: #00C800;">PRIVATE</span> oMain, oTabs, oStatusBar<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oMain <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FiveWin TGrid Listview Demo "</span><br /><br />* <span style="color: #00D7D7;">#define</span> working<br />#IFDEF working<br /> oTabs := TFolder<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span>,<span style="color: #000000;">{</span><span style="color: #ff0000;">"no_1"</span><span style="color: #000000;">}</span> , , oMain, <span style="color: #000000;">1</span>, , , .t.,;<br /> .f., oMain:<span style="color: #000000;">nRight</span> - oMain:<span style="color: #000000;">nLeft</span>, oMain:<span style="color: #000000;">nBottom</span> - oMain:<span style="color: #000000;">nTop</span> <span style="color: #000000;">)</span><br />#ELSE<br /> oTabs := TFolder<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span>,<span style="color: #000000;">{</span><span style="color: #ff0000;">""</span><span style="color: #000000;">}</span> , , oMain, <span style="color: #000000;">1</span>, , , .t.,;<br /> .f., oMain:<span style="color: #000000;">nRight</span> - oMain:<span style="color: #000000;">nLeft</span>, oMain:<span style="color: #000000;">nBottom</span> - oMain:<span style="color: #000000;">nTop</span> <span style="color: #000000;">)</span><br /> oTabs:<span style="color: #000000;">DelItemPos</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> oTabs:<span style="color: #000000;">AddItem</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Grid_1"</span><span style="color: #000000;">)</span><br />* oTabs:<span style="color: #000000;">AddItem</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Grid_2"</span><span style="color: #000000;">)</span><br />#ENDIF<br /><br /> oTabs:<span style="color: #000000;">SetOption</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">20</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"blabla"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">OF</span> oTabs:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"blabla"</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> STATUSBAR oStatusBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Hello World "</span> <span style="color: #0000ff;">OF</span> oMain SIZES nWidth - <span style="color: #000000;">100</span> CLOCK<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oMain <span style="color: #0000ff;">CENTER</span><br /><br /><span style="color: #00C800;">RETURN</span></div>[/code:2y89jri1] |
search for TTabControl() Sample | hi Enrico,
i "see"
change {} to {""} and
[code=fw:k1ysmnyu]<div class="fw" id="{CB}" style="font-family: monospace;"> oTabs:<span style="color: #000000;">DelItemPos</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span></div>[/code:k1ysmnyu]
---
it would be nice when it could be fixed in CLASS TFolder() |
search for working BCC7 64 ""Build64.bat"" | hi,
BCC7 64 Bit have
[quote:sz8a914n]C:\BCC7-64\INCLUDE\windows\crtl\
C:\BCC7-64\INCLUDE\windows\fmx\
C:\BCC7-64\INCLUDE\windows\rtl\
C:\BCC7-64\INCLUDE\windows\sdk\
C:\BCC7-64\INCLUDE\windows\vcl\[/quote:sz8a914n]
so this Line fail
[code=fw:sz8a914n]<div class="fw" id="{CB}" style="font-family: monospace;">echo -O2 -e%<span style="color: #000000;">1</span>.exe -I%hdir%\include -I%bcdir%\include %<span style="color: #000000;">1</span>.c > b64.bc</div>[/code:sz8a914n]
btw. is : "-e%1" right or must it be "-e %1" <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
---
than i try to use
[code=fw:sz8a914n]<div class="fw" id="{CB}" style="font-family: monospace;">-I%bcdir%\include\windows\sdk -I%bcdir%\include\windows\crtl</div>[/code:sz8a914n]
but that give me a lot of "Dupe" <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
who can provide a working "Build64.bat" for BCC7 64 Bit, thx
p.s. work with MSVC 64 Bit "Buildh64.bat" without any Warning |
search for working BCC7 64 ""Build64.bat"" | Dear Jimmy,
Please go to FWH\samples folder and do:
build64 tutor01
Here it properly builds the EXE and runs fine |
search for working BCC7 64 ""Build64.bat"" | hi Antonio.
[quote="Antonio Linares":t1vnde7k]
Please go to FWH\samples folder and do:
build64 tutor01[/quote:t1vnde7k]
this is "Original" (hope so)
[quote:t1vnde7k]if "%FWDIR%" == "" set FWDIR=.\..
if "%HBDIR%" == "" set HBDIR=c:\harbour
set hdir=%HBDIR%
set hdirl=%hdir%\lib\win\bcc64
set fwh=%FWDIR%
set bcdir=c:\bcc7164[/quote:t1vnde7k]
---
this i have change to fit my Environment
[quote:t1vnde7k]if "%FWDIR%" == "" set FWDIR=c:\fwh64
if "%HBDIR%" == "" set HBDIR=c:\harbour64
set hdir=%HBDIR%
set hdirl=%hdir%\lib\win\bcc64
set fwh=%FWDIR%
set bcdir=c:\BCC7-64[/quote:t1vnde7k]
---
when now run "build64 tutor01" i go Error
[quote:t1vnde7k]Der Befehl "c:\BCC7-64\bin\brc32" ist entweder falsch geschrieben oder konnte nicht gefunden werden.[/quote:t1vnde7k]
there is no brc32.exe under 64 Bit ... change to RC.EXE
---
next Try
[quote:t1vnde7k]Fatal: Unable to open file 'HBWIN.A'[/quote:t1vnde7k]
now have a look at this
[quote:t1vnde7k]hdirl=c:\harbour64\lib\win\bcc64
c:\fwh64\samples>dir %hdirl%
Verzeichnis von c:\harbour64\lib\win[/quote:t1vnde7k]
what is going on that \bcc64 got "lost" <!-- s:twisted: --><img src="{SMILIES_PATH}/icon_twisted.gif" alt=":twisted:" title="Twisted Evil" /><!-- s:twisted: -->
---
[code=fw:t1vnde7k]<div class="fw" id="{CB}" style="font-family: monospace;">@ECHO OFF<br />CLS<br />ECHO ??????????????????????????????????????????????????????????????????????????????<br />ECHO ? FiveWin <span style="color: #00C800;">for</span> Harbour <span style="color: #000000;">22.06</span> bcc7 64bits Jun. <span style="color: #000000;">2022</span> xHarbour development <span style="color: #0000ff;">power</span> ??<br />ECHO ? <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> FiveTech <span style="color: #000000;">1993</span><span style="color: #000000;">-2022</span> <span style="color: #00C800;">for</span> Microsoft Windows 9X/NT/200X/ME/XP/Vista/<span style="color: #000000;">7</span>/<span style="color: #000000;">8</span>/<span style="color: #000000;">10</span> ??<br />ECHO ???????????????????????????????????????????????????????????????????????????????<br />ECHO ?????????????????????????????????????????????????????????????????????????????<br /><br /><span style="color: #00C800;">if</span> A%<span style="color: #000000;">1</span> == A GOTO :<span style="color: #000000;">SINTAX</span><br /><span style="color: #00C800;">if</span> NOT EXIST %<span style="color: #000000;">1</span>.prg GOTO :<span style="color: #000000;">NOEXIST</span><br /><br /><span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%FWDIR%"</span> == <span style="color: #ff0000;">""</span> set FWDIR=c:\fwh64<br /><span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%HBDIR%"</span> == <span style="color: #ff0000;">""</span> set HBDIR=c:\harbour64<br />rem <span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%2"</span> == <span style="color: #ff0000;">"/b"</span> set GT=gtwin<br />rem <span style="color: #00C800;">if</span> not <span style="color: #ff0000;">"%2"</span> == <span style="color: #ff0000;">"/b"</span> set GT=gtgui<br />set GT=gtgui<br />ECHO Compiling...<br /><br />set hdir=%HBDIR%<br />set hdirl=%hdir%\lib\win\bcc64<br />set fwh=%FWDIR%<br />set bcdir=c:\BCC7<span style="color: #000000;">-64</span><br /><br />%hdir%\bin\harbour %<span style="color: #000000;">1</span> /n /i%fwh%\include;%hdir%\include /w /p /d__64__ %<span style="color: #000000;">2</span> %<span style="color: #000000;">3</span> > comp.log <span style="color: #000000;">2</span>> warnings.log<br /><span style="color: #00C800;">if</span> errorlevel <span style="color: #000000;">1</span> goto COMPILEERROR<br />@type comp.log<br />@type warnings.log<br /><br />echo -O2 -e%<span style="color: #000000;">1</span>.exe -I%hdir%\include -I%bcdir%\include %<span style="color: #000000;">1</span>.c > b32.bc<br />%bcdir%\bin\bcc64 -c -I%hdir%\include -I%bcdir%\include\windows\sdk -I%bcdir%\include\windows\crtl -o%<span style="color: #000000;">1</span>.obj %<span style="color: #000000;">1</span>.c<br />:<span style="color: #000000;">ENDCOMPILE</span><br /><br /><span style="color: #00C800;">if</span> EXIST %<span style="color: #000000;">1</span>.rc %bcdir%\bin\rc -r -D__64__ -I%bcdir%\include -I%bcdir%\include\windows\sdk %<span style="color: #000000;">1</span><br /><br />echo %bcdir%\lib\c0w64.o + > b64.bc<br />echo %<span style="color: #000000;">1</span>.obj, + >> b64.bc<br />echo %<span style="color: #000000;">1</span>.exe, + >> b64.bc<br />echo %<span style="color: #000000;">1</span>.map, + >> b64.bc<br /><br />echo %fwh%\lib\Five64.a %fwh%\lib\FiveC64.a %fwh%\lib\libmariadb64.a + >> b64.bc<br /><br />echo %hdirl%\hbwin.a + >> b64.bc<br />echo %hdirl%\gtgui.a + >> b64.bc<br />echo %hdirl%\hbrtl.a + >> b64.bc<br />echo %hdirl%\hbvm.a + >> b64.bc<br />echo %hdirl%\hblang.a + >> b64.bc<br />echo %hdirl%\hbmacro.a + >> b64.bc<br />echo %hdirl%\hbrdd.a + >> b64.bc<br />echo %hdirl%\rddntx.a + >> b64.bc<br />echo %hdirl%\rddcdx.a + >> b64.bc<br />echo %hdirl%\rddfpt.a + >> b64.bc<br />echo %hdirl%\hbsix.a + >> b64.bc<br />echo %hdirl%\hbdebug.a + >> b64.bc<br />echo %hdirl%\hbcommon.a + >> b64.bc<br />echo %hdirl%\hbpp.a + >> b64.bc<br />echo %hdirl%\hbcpage.a + >> b64.bc<br />echo %hdirl%\hbcplr.a + >> b64.bc<br />echo %hdirl%\hbct.a + >> b64.bc<br />echo %hdirl%\hbpcre.a + >> b64.bc<br />echo %hdirl%\xhb.a + >> b64.bc<br />echo %hdirl%\hbziparc.a + >> b64.bc<br />echo %hdirl%\hbmzip.a + >> b64.bc<br />echo %hdirl%\hbzlib.a + >> b64.bc<br />echo %hdirl%\minizip.a + >> b64.bc<br />echo %hdirl%\png.a + >> b64.bc<br />echo %hdirl%\hbusrrdd.a + >> b64.bc<br />echo %hdirl%\hbtip.a + >> b64.bc<br />echo %hdirl%\hbzebra.a + >> b64.bc<br />echo %hdirl%\xmath.a + >> b64.bc<br /><br />echo %hdirl%\hbhpdf.a + >> b64.bc<br />echo %hdirl%\libhpdf.a + >> b64.bc<br /><br />echo %bcdir%\lib\cw64.a + >> b64.bc<br />echo %bcdir%\lib\psdk\kernel32.a + >> b64.bc<br />echo %bcdir%\lib\psdk\user32.a + >> b64.bc<br />echo %bcdir%\lib\psdk\iphlpapi.a + >> b64.bc<br />echo %bcdir%\lib\import64.a, >> b64.bc<br /><br /><span style="color: #00C800;">if</span> EXIST %<span style="color: #000000;">1</span>.res echo %<span style="color: #000000;">1</span>.res >> b64.bc<br /><span style="color: #00C800;">if</span> %GT% == gtwin %bcdir%\bin\ilink64 -Gn -Tpe -s @b64.bc<br /><span style="color: #00C800;">if</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO LINKERROR<br /><span style="color: #00C800;">if</span> %GT% == gtgui %bcdir%\bin\ilink64 -Gn -aa -Tpe -s @b64.bc<br /><span style="color: #00C800;">if</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO LINKERROR<br />ECHO * Application successfully built *<br />rem signtool.exe sign /fd sha256 %<span style="color: #000000;">1</span>.exe<br />%<span style="color: #000000;">1</span><br />GOTO EXIT<br />ECHO<br /><br />:<span style="color: #000000;">COMPILEERROR</span><br />@type comp.log<br />@type warnings.log<br />ECHO * Compiling errors *<br />GOTO EXIT<br /><br />:<span style="color: #000000;">LINKERROR</span><br />ECHO * Linking errors *<br />GOTO EXIT<br /><br />:<span style="color: #000000;">SINTAX</span><br />ECHO SYNTAX: <span style="color: #000000;">Build</span> <span style="color: #000000;">[</span>Program<span style="color: #000000;">]</span> <span style="color: #000000;">{</span>-- No especifiques la extensi´?¢n PRG<br />ECHO <span style="color: #000000;">{</span>-- Don<span style="color: #ff0000;">'t specify .PRG extension<br />GOTO EXIT<br /><br />:NOEXIST<br />ECHO The specified PRG %1 does not exist<br /><br />:EXIT<br /></span></div>[/code:t1vnde7k] |
search for working BCC7 64 ""Build64.bat"" | Dear Jimmy,
Please check your email
I guess that you are using a wrong bcc7 64 bits |
search for working BCC7 64 ""Build64.bat"" | hi Antonio,
[quote="Antonio Linares":3qj94t56]I guess that you are using a wrong bcc7 64 bits[/quote:3qj94t56]
thx, i will try it |
search for working BCC7 64 ""Build64.bat"" | You should use the following BCC version:
Embarcadero C++ 7.30 for Win64 Copyright (c) 2012-2017 Embarcadero Technologies, Inc. |
search for working BCC7 64 ""Build64.bat"" | again "the" Problem with "new" BCC7 64 Bit
[code=fw:6fje370m]<div class="fw" id="{CB}" style="font-family: monospace;">set hdirl=%hdir%\lib\win\bcc64<br /><br />c:\fwh64\<span style="color: #000000;">0</span>\TGRID>dir %hdirl%</div>[/code:6fje370m]
show
[quote:6fje370m] Verzeichnis von c:\harbour64\lib\win
Datei nicht gefunden[/quote:6fje370m]
i do not understand why "\bcc64" got "lost" ... total confused <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> |
search for working BCC7 64 ""Build64.bat"" | BCC 7.30 64bit works fine here. You have to double check your batch file. |
search for working BCC7 64 ""Build64.bat"" | hi Enrico,
i do use BCC7 under 32 Bit and when type
[quote:105prb1m]DIR %hdirl%
Verzeichnis von C:\HARBOUR\lib\win\bcc[/quote:105prb1m]
it work as expect
but under 64 Bit it fail (now) ... as i "remember" it have work before
[url:105prb1m]https://forums.fivetechsupport.com/viewtopic.php?f=3&t=42326[/url:105prb1m]
now "\bcc64" does not appear when type
[quote:105prb1m]
DIR %hdirl%
Verzeichnis von C:\HARBOUR64\lib\win[/quote:105prb1m]
but when type SET i can "see" that "hdirl" include "\bcc64" <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: -->
hm ... it is the last SET by Batch ... can i be that my Environment is "full" <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: -->
how to increase Environment Space under Windows 10/11 64 Bit <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
search for working BCC7 64 ""Build64.bat"" | I don't understand. Can you provide a sample of the problem that I can run here? |
search for working BCC7 64 ""Build64.bat"" | hi Enrico,
when use BAT it does use CMD Environment where you have a Limit for SET "Variable"
while many App "add Path" you might get to Limit when call a BATch which want to SET more "Variable"
as i remember we have use CONFIG.SYS to increase SET Environment Space ... but how under Windows 10 / 11 ?
---
i have post my BATch which make Problem on "my PC"
i will test it on other PC again |
search for working BCC7 64 ""Build64.bat"" | Understood. Yes, it could be that you have reached the limit of your SET variabile line. |
search highest digit in the array | I have this array
[img:3bsdyupt]https://i.postimg.cc/ydhHSdcM/JJJJ.png[/img:3bsdyupt]
How can I find the highest digit in the array?
example in this screen in the last line there is the value 663
the function should return me that in the combination (first column) the maximum output is 663 (9 column) and highlight it (bringing the cursor to that position) |
search highest digit in the array | Hi Silvio,
here a quick function to fnd the max value in your array.
[code=fw:2k36dwnq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> aFindMax<span style="color: #000000;">(</span> xArray <span style="color: #000000;">)</span> <span style="color: #B900B9;">// xArray should be your array</span><br /><span style="color: #00C800;">LOCAL</span> aVals := <span style="color: #000000;">{</span>; <span style="color: #B900B9;">//just for testing</span><br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span>, <span style="color: #000000;">97</span>, <span style="color: #000000;">472</span>, <span style="color: #000000;">265</span>, <span style="color: #000000;">127</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">123</span>, <span style="color: #000000;">24</span>, <span style="color: #000000;">11</span>, <span style="color: #000000;">55</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">66</span>, <span style="color: #000000;">104</span>, <span style="color: #000000;">298</span>, <span style="color: #000000;">79</span>, <span style="color: #000000;">47</span>, <span style="color: #000000;">12</span>, <span style="color: #000000;">12</span>, <span style="color: #000000;">90</span>, <span style="color: #000000;">48</span>, <span style="color: #000000;">130</span>, <span style="color: #000000;">155</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">158</span>, <span style="color: #000000;">7</span>, <span style="color: #000000;">7</span>, <span style="color: #000000;">95</span>, <span style="color: #000000;">169</span>, <span style="color: #000000;">86</span>, <span style="color: #000000;">230</span>, <span style="color: #000000;">148</span>, <span style="color: #000000;">79</span>, <span style="color: #000000;">446</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">11</span>, <span style="color: #000000;">17</span>, <span style="color: #000000;">131</span>, <span style="color: #000000;">422</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">204</span>, <span style="color: #000000;">37</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">11</span>, <span style="color: #000000;">48</span>, <span style="color: #000000;">433</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">52</span>, <span style="color: #000000;">6</span>, <span style="color: #000000;">49</span>, <span style="color: #000000;">312</span>, <span style="color: #000000;">58</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">108</span>, <span style="color: #000000;">284</span>, <span style="color: #000000;">248</span>, <span style="color: #000000;">92</span>, <span style="color: #000000;">373</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">33</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">440</span>, <span style="color: #000000;">451</span>, <span style="color: #000000;">77</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">70</span>, <span style="color: #000000;">227</span>, <span style="color: #000000;">440</span>, <span style="color: #000000;">31</span>, <span style="color: #000000;">25</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">70</span>, <span style="color: #000000;">134</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">55</span>, <span style="color: #000000;">11</span>, <span style="color: #000000;">347</span>, <span style="color: #000000;">22</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">549</span>, <span style="color: #000000;">66</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">259</span>, <span style="color: #000000;">58</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">18</span>, <span style="color: #000000;">57</span>, <span style="color: #000000;">91</span>, <span style="color: #000000;">27</span>, <span style="color: #000000;">126</span>, <span style="color: #000000;">65</span>, <span style="color: #000000;">78</span>, <span style="color: #000000;">176</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">107</span>, <span style="color: #000000;">42</span>, <span style="color: #000000;">118</span>, <span style="color: #000000;">94</span>, <span style="color: #000000;">37</span>, <span style="color: #000000;">49</span>, <span style="color: #000000;">23</span>, <span style="color: #000000;">623</span>, <span style="color: #000000;">22</span>, <span style="color: #000000;">19</span>, <span style="color: #000000;">79</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #000000;">}</span><br /><span style="color: #00C800;">LOCAL</span> nRows := len<span style="color: #000000;">(</span> aVals <span style="color: #000000;">)</span> <br /><span style="color: #00C800;">LOCAL</span> nCols := len<span style="color: #000000;">(</span> aVals<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> nR, nC<br /><span style="color: #00C800;">LOCAL</span> nRmax := <span style="color: #000000;">0</span>, nCmax := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">LOCAL</span> nMax := <span style="color: #000000;">0</span><br /><br /> <span style="color: #00C800;">for</span> nR := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nRows<br /> <span style="color: #00C800;">for</span> nC := <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> nCols<br /> <span style="color: #00C800;">if</span> aVals<span style="color: #000000;">[</span>nR, nC<span style="color: #000000;">]</span> > nMax<br /> nMax := aVals<span style="color: #000000;">[</span>nR, nC<span style="color: #000000;">]</span><br /> nRmax := nR<br /> nCmax := nC<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">next</span><br /><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span> nRmax <span style="color: #000000;">)</span> <span style="color: #B900B9;">//just for testing</span><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span> nCmax <span style="color: #000000;">)</span> <span style="color: #B900B9;">//just for testing</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span> <span style="color: #000000;">{</span> nRmax, nCmax <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// Returns array with row and col numbers of maximum</span><br /> </div>[/code:2k36dwnq]
regards, Detlef |
search highest digit in the array | [quote="Detlef":2bucjnfx]Hi Silvio,
here a quick function to fnd the max value in your array.
[code=fw:2bucjnfx]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> aFindMax<span style="color: #000000;">(</span> xArray <span style="color: #000000;">)</span> <span style="color: #B900B9;">// xArray should be your array</span><br /><span style="color: #00C800;">LOCAL</span> aVals := <span style="color: #000000;">{</span>; <span style="color: #B900B9;">//just for testing</span><br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span>, <span style="color: #000000;">97</span>, <span style="color: #000000;">472</span>, <span style="color: #000000;">265</span>, <span style="color: #000000;">127</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">123</span>, <span style="color: #000000;">24</span>, <span style="color: #000000;">11</span>, <span style="color: #000000;">55</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">66</span>, <span style="color: #000000;">104</span>, <span style="color: #000000;">298</span>, <span style="color: #000000;">79</span>, <span style="color: #000000;">47</span>, <span style="color: #000000;">12</span>, <span style="color: #000000;">12</span>, <span style="color: #000000;">90</span>, <span style="color: #000000;">48</span>, <span style="color: #000000;">130</span>, <span style="color: #000000;">155</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">158</span>, <span style="color: #000000;">7</span>, <span style="color: #000000;">7</span>, <span style="color: #000000;">95</span>, <span style="color: #000000;">169</span>, <span style="color: #000000;">86</span>, <span style="color: #000000;">230</span>, <span style="color: #000000;">148</span>, <span style="color: #000000;">79</span>, <span style="color: #000000;">446</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">11</span>, <span style="color: #000000;">17</span>, <span style="color: #000000;">131</span>, <span style="color: #000000;">422</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">204</span>, <span style="color: #000000;">37</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">11</span>, <span style="color: #000000;">48</span>, <span style="color: #000000;">433</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">52</span>, <span style="color: #000000;">6</span>, <span style="color: #000000;">49</span>, <span style="color: #000000;">312</span>, <span style="color: #000000;">58</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">108</span>, <span style="color: #000000;">284</span>, <span style="color: #000000;">248</span>, <span style="color: #000000;">92</span>, <span style="color: #000000;">373</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">33</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">440</span>, <span style="color: #000000;">451</span>, <span style="color: #000000;">77</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">70</span>, <span style="color: #000000;">227</span>, <span style="color: #000000;">440</span>, <span style="color: #000000;">31</span>, <span style="color: #000000;">25</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">70</span>, <span style="color: #000000;">134</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">55</span>, <span style="color: #000000;">11</span>, <span style="color: #000000;">347</span>, <span style="color: #000000;">22</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">549</span>, <span style="color: #000000;">66</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">259</span>, <span style="color: #000000;">58</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">18</span>, <span style="color: #000000;">57</span>, <span style="color: #000000;">91</span>, <span style="color: #000000;">27</span>, <span style="color: #000000;">126</span>, <span style="color: #000000;">65</span>, <span style="color: #000000;">78</span>, <span style="color: #000000;">176</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">107</span>, <span style="color: #000000;">42</span>, <span style="color: #000000;">118</span>, <span style="color: #000000;">94</span>, <span style="color: #000000;">37</span>, <span style="color: #000000;">49</span>, <span style="color: #000000;">23</span>, <span style="color: #000000;">623</span>, <span style="color: #000000;">22</span>, <span style="color: #000000;">19</span>, <span style="color: #000000;">79</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #000000;">}</span><br /><span style="color: #00C800;">LOCAL</span> nRows := len<span style="color: #000000;">(</span> aVals <span style="color: #000000;">)</span> <br /><span style="color: #00C800;">LOCAL</span> nCols := len<span style="color: #000000;">(</span> aVals<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> nR, nC<br /><span style="color: #00C800;">LOCAL</span> nRmax := <span style="color: #000000;">0</span>, nCmax := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">LOCAL</span> nMax := <span style="color: #000000;">0</span><br /><br /> <span style="color: #00C800;">for</span> nR := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nRows<br /> <span style="color: #00C800;">for</span> nC := <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> nCols<br /> <span style="color: #00C800;">if</span> aVals<span style="color: #000000;">[</span>nR, nC<span style="color: #000000;">]</span> > nMax<br /> nMax := aVals<span style="color: #000000;">[</span>nR, nC<span style="color: #000000;">]</span><br /> nRmax := nR<br /> nCmax := nC<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">next</span><br /><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span> nRmax <span style="color: #000000;">)</span> <span style="color: #B900B9;">//just for testing</span><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span> nCmax <span style="color: #000000;">)</span> <span style="color: #B900B9;">//just for testing</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span> <span style="color: #000000;">{</span> nRmax, nCmax <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// Returns array with row and col numbers of maximum</span><br /> </div>[/code:2bucjnfx]
regards, Detlef[/quote:2bucjnfx]
[b:2bucjnfx]Run good[/b:2bucjnfx]
[img:2bucjnfx]https://i.postimg.cc/MTgNNbpH/nnn.png[/img:2bucjnfx]
thanks |
search highest digit in the array | But one problem.
If there are two cells with the same highest value.
Then you must decide which cell is the one you want. |
search highest digit in the array | [quote="Detlef":3as24xyi]But one problem.
If there are two cells with the same highest value.
Then you must decide which cell is the one you want.[/quote:3as24xyi]
I make statistical calculations on an archive of lottery extractions from 1939 to today ( here in Italy)
I made on 91 the first prg on clipper 87 and now I rewrite the prg with fwh with many problems
On Picture I perform the calculation of the tens for what concerns the Terni (ie the output of 3 numbers), these are classical groupings
Detlef,
for the same value it is a problem, I don't know how to do it and anyway I think it always takes the last calculated?
I made
nRowSelect:=Colorize_Max(oBrw,RGB( 255, 0,0 ),RGB( 252, 235, 220 ))
oBrw:KeyNo:= nRowSelect
static Function Colorize_Max(oBrw,nColor1,nColor2)
local avals:= oBrw:aArraydata
local atest:= aFindMax( aVals )
local nRow:= atest[1]
local nCol:= atest[2]
oBrw:aCols[nCol]:bClrStd := {|| { CLR_BLACK,IIf(oBrw:nArrayAt=nRow, nColor1,nColor2) } }
return nRow
any suggestion ? |
search highest digit in the array | Silvio,
if you want to have the last of same values you must change only one line of my function.
if aVals[nR, nC] [b:39lmbp6o][color=#FF0040:39lmbp6o]>=[/color:39lmbp6o][/b:39lmbp6o] nMax // instead of only [color=#408000:39lmbp6o][b:39lmbp6o] "="[/b:39lmbp6o][/color:39lmbp6o] |
search highest digit in the array | Silvio,
Just curious, Did it make any difference in playing lotto with a statistical program ? I hope for you.... |
search highest digit in the array | [quote="Marc Venken":30i3p2sk]Silvio,
Just curious, Did it make any difference in playing lotto with a statistical program ? I hope for you....[/quote:30i3p2sk]
help me sometimes |
search in forum | Why if I make a search in this forum I have everytime "No suitable matches were found." but if i search the same word in tags i found a lot of topics? for example if i search the word "lostfocus" with tags i have "Search found 75 matches: lostfocus"
Thanks
Daniele |
search in forum | Daniele,
We use phpbb software for these forums. It may be a bug that it has, sorry <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> |
search this forums | Antonio,
i tried to find some information about browsing arrays with the xBrowse class.
When i enter 'array xbrowse' into the search field the forum software tells me that both words are too common for being searched.
It' s true that these are common words.
But in our case it would be very helpful to allow a search even.
Could this be possible?
Regards,
Detlef |
search this forums | Detlef,
Fixed <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Now you can search for any word <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
search this forums | Many thanks, Antonio. <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> |
searching a report generator in fivewin examples | Hi,
I am searching for the following example. It is in english and it´s in samples folder, but I do not remember the name. Any help will be welcomed.
[img:itp66cwt]http://img442.imageshack.us/img442/1085/listadoosslq0.jpg[/img:itp66cwt]
Thank you!!!!!!! |
searching a report generator in fivewin examples | It appeared in old news. It´s name is Runadhoc. Thank you!!!!! |
searching a report generator in fivewin examples | Moises,
Would you be so kind to share it with other users ? thanks
You may use <!-- w --><a class="postlink" href="http://www.hotshare.net">www.hotshare.net</a><!-- w --> or similar to upload it and place here the download url. Thanks, |
searching a report generator in fivewin examples | Antonio,
I still don´t have it. If I find it, I would be grateful to share with other users. It worked great and I think it should be included in next FDTN.
Do you have the contents of news.fivetech.com?. I remember that I got from news.
Regards,
Moisés |
searching a report generator in fivewin examples | Moises,
> Do you have the contents of news.fivetech.com?.
Yes, we keep a full backup of it. We are going to search it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
searching a report generator in fivewin examples | <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=7997&start=0&postdays=0&postorder=asc&highlight=">http://fivetechsoft.com/forums/viewtopi ... highlight=</a><!-- m --> |
searching a text into an array | I must control if a text is allready on an array and I use the function a scan
but I have an error
sample :
cText := alltrim(cu->last) the text to found on array
IF AScan( aTags, {|a| (a[1]) == cText } ) <--- where is the error
Msginfo("allready exist into list")
Endif |
searching a text into an array | What error?
What format is the array, each element in another array? |
searching a text into an array | text |
searching a text into an array | [quote="Silvio.Falconi":1dik561u]I must control if a text is allready on an array and I use the function a scan
but I have an error
sample :
cText := alltrim(cu->last) the text to found on array
IF AScan( aTags, {|a| (a[1]) == cText } ) <--- where is the error
Msginfo("allready exist into list")
Endif[/quote:1dik561u]
Silvio
If each element not is an array
[code=fw:1dik561u]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> <span style="color: #B900B9;">//AScan( aTags, {|a| a == cText } } ) // not</span><br /><br /><span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">(</span> Ascan<span style="color: #000000;">(</span> aTags, cText <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Exist"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">else</span><br /> Add<span style="color: #000000;">(</span> aTags, cText <span style="color: #000000;">)</span><br /><span style="color: #00C800;">endif</span><br /> </div>[/code:1dik561u] |
searching a text into an array | on control (ttags) I have an array
aTagstemp:= oControl;getItems() // this give me an array with all elements of array of the control
ctext:="silvio" // new element text to insert on this array
[b:1b1g283q] If AScan( aTagsTemp, {|a| a == cText } ) =1[/b:1b1g283q] <--- not run ok
Msginfo("it is allready exist on list")
else
oControl:AddItem( ctext )
Endif |
searching a text into an array | Prueba esto:
[code=fw:2isnd4lr]<div class="fw" id="{CB}" style="font-family: monospace;"><br />nPos := <span style="color: #000000;">0</span><br />nPos := AScan<span style="color: #000000;">(</span> aTagsTemp, <span style="color: #000000;">{</span>|a| a == cText <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <br /><span style="color: #00C800;">If</span> nPos > <span style="color: #000000;">0</span><br /> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"it is allready exist on list in "</span> + STR<span style="color: #000000;">(</span>nPos,<span style="color: #000000;">2</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">" position"</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> oControl:<span style="color: #000000;">AddItem</span><span style="color: #000000;">(</span> ctext <span style="color: #000000;">)</span><br /><span style="color: #00C800;">Endif</span><br /> </div>[/code:2isnd4lr] |
searching a text into an array | sORRY i RESOLVED BECAUSE THERE WAS AN ERROR ON CLASS |
searching in a database | How to find the last record that matches a condition in a database file (searching in 1 field)
f.e. if there are 20 records of person nr 123 in a database file, how to find the last one added |
searching in a database | If you are using DBF files try this:
Seek(123,,.t.) |
seconds() | It seems seconds() is not supported by FWPPC. Is there some other function?
Thanks in advance
Otto |
seconds() | Otto,
You can use GetTickCount():
MsgInfo( GetTickCount() )
[url:3d6i48lv]http://msdn.microsoft.com/en-us/library/ms724408(VS.85).aspx[/url:3d6i48lv] |
seconds() function | Hi,
The [b:gcy6rm8b]seconds()[/b:gcy6rm8b] function returns the number of seconds since midnight.
Is there a similar function to get the value in micro/milli seconds ? |
seconds() function | SECONDS() function gives time accurate upto milli seconds. |
secuencias de escape de impresion por TPRINTER? | que tal, con una pregunta que se me viene debido a que en una computadora aislada de un entorno de red no puedo capturar el puerto de impresion hacia mi impresora de "tickets" USB por medio de la TDOSPRN. el caso es que ya intente a traves de la Generic/Text de windows pero no logro que me funcionen la secuencias de escape para abrir cajon, cortar ticket, impresion en rojo, etc.
intente con la TPRINTER pero no logro nada a parte de la impresion...
si alguien me pueda orientar ya sea en como "burlar" la restriccion de windows de tener una conexion de red o bien un ejemplo de como enviar caracteres a la Generic/Text de windows, el sistema operativo es XP pro...
saludos y gracias de antemano
Alex. |
secuencias de escape de impresion por TPRINTER? | Alex:
Yo utilizo la Tdosprn y para imprimir en RED hice lo siguiente:
vRuta:="\\PCservidor\EPSON"
vPath:=NETREDIR( "LPT1",vRuta)
IF vPath=.T.
WINEXEC('NET USE LPT1: &vRuta',0)
MSGINFO("YA PUEDO IMPRIMIR CONLA TDOSPRN EN RED")
ENDIF
Cuando vi tu post, me dio por hacer estas pruebas sobre la tdosprn y me funciono, tienes que enlazar la libreria [color=darkblue:2ir6amu0]CT.LIB [/color:2ir6amu0]de Xharbour.
Faltaría optimizar la variable [color=red:2ir6amu0]vRuta[/color:2ir6amu0] para no escribirla manual, cuando tenga tiempito seguire probando, espero te sirva en algo..
Saludos |
security through obfuscation | Hello friends,
Is it possible to setup APACHE that only prg files are executed?
I think a web server would be safer this way, because relatively few people know how to create prg pages.
Best regards,
Otto |
seek and string searching | I can not find seek works probably with strings !!
[code:1zy7nbis]
if MsgGet( "Search", "Customer Appreviation", @V_CU_appr,;
"..\bitmaps\lupa.bmp" )
select 1
use cust
set index to cust10
if ! DbSeek( alltrim(upper(V_CU_Appr )))
MsgAlert( "I don't find that customer" )
GO nRecNo
else
oLbx:UpStable() // Corrects same page stabilizing Bug
oLbx:Refresh() // Repaint the ListBox
endif
endif
[/code:1zy7nbis] |
seek and string searching | [quote="Ehab Samir Aziz":qqfe19b4]I can not find seek works probably with strings !!
[code:qqfe19b4]
if MsgGet( "Search", "Customer Appreviation", @V_CU_appr,;
"..\bitmaps\lupa.bmp" )
select 1
use cust
set index to cust10
if ! DbSeek( alltrim(upper(V_CU_Appr )))
MsgAlert( "I don't find that customer" )
GO nRecNo
else
oLbx:UpStable() // Corrects same page stabilizing Bug
oLbx:Refresh() // Repaint the ListBox
endif
endif
[/code:qqfe19b4][/quote:qqfe19b4]
My best guess is that you are searching for a string using an index which is of some different key value.
You may try to insert a line for debugging, for example:
MSGINFO(IndexKey()) right after the line set index to cust10
and see if the primary key of the index is of how you want it to be.
(In my opinion, the primary key must be the Customer Code, and your current index is probably based on the Customer Name).
Please let me know if you solved your problem.
Kind regards
Evans Bartzokas |
seek and string searching | Problem did not solved . I do not know ?
The function you suggessted gave the apropraite key.
[code:28g2eyfc]
select 1
use cust
set index to cust10
MSGINFO(IndexKey())
if ! DbSeek( alltrim(upper(V_CU_Appr )))
MsgAlert( "I don't find that customer" )
GO nRecNo
else
oLbx:UpStable() // Corrects same page stabilizing Bug
oLbx:Refresh() // Repaint the ListBox
endif
endif
[/code:28g2eyfc] |
seek with tdatabase | I must check if a room is free or not for a a range date
I made a test
[code=fw:1nrqilpa]<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 />request dbfcdx<br />request dbffpt<br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />*<span style="color: #00C800;">local</span> ddcheckin := ctod<span style="color: #000000;">(</span><span style="color: #ff0000;">"31/07/2020"</span><span style="color: #000000;">)</span><br />*<span style="color: #00C800;">local</span> ddcheckout := ctod<span style="color: #000000;">(</span><span style="color: #ff0000;">"31/07/2020"</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">local</span> ddcheckin := ctod<span style="color: #000000;">(</span><span style="color: #ff0000;">"02/07/2020"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> ddcheckout := ctod<span style="color: #000000;">(</span><span style="color: #ff0000;">"02/07/2020"</span><span style="color: #000000;">)</span><br /><br /><br /><span style="color: #00C800;">local</span> number := <span style="color: #000000;">2</span><br /><span style="color: #00C800;">local</span> cDesc :=<span style="color: #ff0000;">"Om"</span><br /><span style="color: #00C800;">local</span> cTipo :=<span style="color: #ff0000;">"01"</span><br /><span style="color: #00C800;">local</span> cRoom := <span style="color: #0000ff;">Left</span><span style="color: #000000;">(</span> cDesc,<span style="color: #000000;">1</span><span style="color: #000000;">)</span>+Strzero<span style="color: #000000;">(</span>number,<span style="color: #000000;">3</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> lFree :=.f.<br /><span style="color: #00C800;">local</span> oReservation<br /><br />RddSetDefault<span style="color: #000000;">(</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">)</span><br /><br /><br /><br /> oReservation:=TDatabase<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span> , <span style="color: #ff0000;">"Reserva"</span>, <span style="color: #ff0000;">"DBFCDX"</span>, .T. <span style="color: #000000;">)</span><br /> oReservation:<span style="color: #000000;">setorder</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> oReservation:<span style="color: #000000;">gotop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br />lFree := Search_Room<span style="color: #000000;">(</span>cRoom,ddcheckin,ddcheckout,oReservation<span style="color: #000000;">)</span><br /><br />? lFree<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Search_Room<span style="color: #000000;">(</span>cRoom,ddcheckin,ddcheckout,oReservation<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> lFound:=.f.<br /> <span style="color: #00C800;">Local</span> cSeekT := <span style="color: #000000;">(</span>cRoom<span style="color: #000000;">)</span> + dtos<span style="color: #000000;">(</span>ddcheckin<span style="color: #000000;">)</span><br /><br /><br /> oReservation:<span style="color: #000000;">seek</span><span style="color: #000000;">(</span> cSeekT <span style="color: #000000;">)</span><br /><br /><br /><br /><br /> <span style="color: #00C800;">WHILE</span> !oReservation:<span style="color: #000000;">eof</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> lFound := .t.<br /><br /> oReservation:<span style="color: #000000;">skip</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDDO</span><br /><br /> <span style="color: #00C800;">RETURN</span> lFound<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------//</span><br /><br /><br /><br /> </div>[/code:1nrqilpa]
the test always returns me false with either
local ddcheckin: = ctod ("07/31/2020")
local ddcheckout: = ctod ("07/31/2020")
and be with
local ddcheckin: = ctod ("02/07/2020")
local ddcheckout: = ctod ("02/07/2020")
but in reality only the first date range the room is not free for the second date range the room is free
how can i solve? |
seek with tdatabase | I found this solution but I not Know if is Good or exist another method
Making a dbfilter , creating an array then search on this array if there is the number of Room
Any suggestions ?
[code=fw:22g40m1i]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SearchRooms<span style="color: #000000;">(</span> dStart, dEnd, cRoom <span style="color: #000000;">)</span><br /><br /> field ROOMS_ID, CHECK_IN, CHECK_OUT<br /><br /> <span style="color: #00C800;">local</span> cCond, bCond<br /> <span style="color: #00C800;">local</span> lfree:=.t.<br /> <span style="color: #00C800;">local</span> aBusy := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">local</span> n<br /><br /> ASize<span style="color: #000000;">(</span> aBusy, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /> cCond := <span style="color: #ff0000;">"CHECK_OUT >= STOD('"</span> + DTOS<span style="color: #000000;">(</span> dStart <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"' ) .AND. "</span> + ;<br /> <span style="color: #ff0000;">"CHECK_IN <= STOD('"</span> + DTOS<span style="color: #000000;">(</span> dEnd <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"' )"</span><br /> cCond += <span style="color: #ff0000;">".AND. ROOMS_ID ='"</span> + ALLTRIM<span style="color: #000000;">(</span>cRoom<span style="color: #000000;">)</span> + <span style="color: #ff0000;">"' "</span><br /><br /> bCond := &<span style="color: #000000;">(</span> <span style="color: #ff0000;">"{ || "</span> + cCond + <span style="color: #ff0000;">" }"</span> <span style="color: #000000;">)</span><br /><br /> RE-><span style="color: #000000;">(</span> DBSETFILTER<span style="color: #000000;">(</span> bCond, cCond <span style="color: #000000;">)</span>, DBGOTOP<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> RE-><span style="color: #000000;">(</span> DBEVAL<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> || AAdd<span style="color: #000000;">(</span> aBusy, ROOMS_ID <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> RE-><span style="color: #000000;">(</span> DBCLEARFILTER<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #00C800;">For</span> n=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> aBusy <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> aBusy<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span> == cRoom<br /> lFree:=.f.<br /> <span style="color: #00C800;">Endif</span><br /> <span style="color: #00C800;">next</span> n<br /><br /><span style="color: #00C800;">return</span> lFree<br /><br /> </div>[/code:22g40m1i] |
segreteria telefonica | Ciao a tutti,
è possibile fare una segreteria telefonica con xHarbour o Fivewin?
esiste qualche esempio o qualcuno ha già fatto qualcosa?
Grazie per le risposte.
Ugo |
segreteria telefonica | mi ricordo che c'era qualcosa una classe tphone e /o simile su
infatti...
[url][url]http://www.fivewin.info/ulfiles/TPHDIAL1.zip[/url][/url] |
segreteria telefonica | poi potresti usare la classe per voiceplay per far parlare il tuo modem
altrimenti non saprei come fare |
segreteria telefonica | Grazie Silvio,
comincio da qui!
E' pur sempre meglio di niente <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> |
segreteria telefonica | Mi è venuto in mente qualcosa ...
Per caso ti serve una procedura tipo :
Albergo:
ad una certa ora bisogna svegliare il cliente alla camera XXX e chiama il cliente con il telefono ? |
segreteria telefonica | Ciao Silvio,
in effetti volevo fare proprio una segreteria telefonica ma ho trovato un buon software che già lo fa e per il momento ho tamponato...
L'idea è quella di rispondere e riconoscere chi chiama per dargli dei servizi personalizzati.
Ciao,
Ugo |
segreteria telefonica | potresti comunque usare la classe Tevent e attaccarci la chiamata del telefono..la classe la puoi trovare in canalfive clock ---fammi un fischio se non l'hai...
Questa classe suona ad una certa data e ora insomma fa da allarme.... |
seleccinar una rama de Tree | Hola.
Como hago para que quedar posicionado en una rama de un TREE para poder agregar ahi un item nuevo?
gracias |
seleccionar campos para impresión | Hay alguna función para seleccionar los campos a imprimir en un report, en fwh. Utilizo fwh26.
Gracias
Luis Sáenz |
seleccionar campos para impresión | [quote="surGom":1a1plty4]Hay alguna función para seleccionar los campos a imprimir en un report, en fwh. Utilizo fwh26.
Gracias
Luis Sáenz[/quote:1a1plty4]
SET FILTER TO Ó ORDSCOPE() No te sirve?? |
seleccionar campos para impresión | ¿Puedes ser un poco mas especifico?
¿El Usuario eligiria los campos?
Porque si es el diseño de un Reporte Obviamente uno programa un Reporte con los campos que desea y no hay necesidad de Elegir campos. |
seleccionar campos para impresión | Karina y Jacgsoft, lo que pretendo es que el cliente elija los campos a imprimir. Si usan prometheus (dbwide, hecho por Andrade), para ver y modificar las bases de datos, es el que utilizo cuando veo una base y necesito imprimir algunos campos en especial, pero sería mas efectivo que lo haga el ususario.
Gracias |
seleccionar campos para impresión | Pues lo que hago es Poner los campos de una tabla en un ARRAY y depues lo muestro en un Listbox donde el Usuario escoge los campos a imprimir:
Local I,Arcam:={}
Use Empleado
For I=1 To Fcount()
Aadd(Arcam,Field(I)
Next I
Luego Este array lo muestro en un ListBox o ComboBox donde el Usuario escoge los campos a Imprimir(Claro hay varias forma de hacerlo).
Como es Obvio En cuanto al reporte es variable ya que algunos reportes pueden ser de 30,40, 50 o mas de Longitud de ancho dependiendo lo que escojan los Usuarios.
Por otro lado En uno de los Foros esta un GEnerador de Informes que se llama RUNADOC verifica eso
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=7997&start=0&postdays=0&postorder=asc&highlight=">http://fivetechsoft.com/forums/viewtopi ... highlight=</a><!-- m --> |
seleccionar campos para impresión | Gracias jacgsoft mi pregunta era por saber si había alguna función en fwh
que lo hiciera y yo no daba con ella.
Luis |
seleccionar impresora en preview | Hola:
Me gustaría poder hacer que en el RPreview se pueda seleccionar la impresora, es decir, al pulsar el botón imprimir que se seleccione la impresora pero estoy algo perdido, sobre todo con los metafiles. Cualquier ayuda será bienvenida.
Mil gracias!!!!!!!!! |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.