topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
oBrw:report() still need help.. | The oBrw:report() needs to end the printing at the point where the filter ends the display of data.The record count is governing the number of pages to print when it should be the filter. Therefore I get 5 extra pages of print. They each have headers but no data.Ive had help from James, Rao and others and we all seem ... |
oBrw:report() still need help.. | Harvey,Are you using a filter or OrdSetScope() ?For a large database, OrdSetScope() should be used. Filters are slow. |
oBrw:report() still need help.. | Antonio:You said:[quote:3rcgm48q]
Are you using a filter or OrdSetScope() ?
For a large database, OrdSetScope() should be used. Filters are slow[code[/quote:3rcgm48q]using a filter and the data base is 540 records, small. The filter stops about halfway down the data base. But printing keeps going.Why the comment reg... |
oBrw:report() still need help.. | Harvey,You have no problems with the speed because you are managing a small amount of records, but if you use a DBF with thousands records, then you will see what I mean <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->Is the browse accessing the same workarea where the filte... |
oBrw:report() still need help.. | Harvey,>Why the comment regarding speed? Its the printing of extra pages is the problem. Have no speed issue.He is saying that scopes are much faster than filters and xBrowse:Report works with scopes.I asked before if you knew about scopes? If not, perhaps you can use scopes instead of filters. Exactly how are you filt... |
oBrw:report() still need help.. | Thanks James:I now understand. I'm not familiar with scopes. Here are the filters under separate conditions.[code:1zxbu0ck]if mquick == 1
gl->(dbseek("3599"))
gl->ty13 := 1
// SCHEDULES
* set filter to .Not. Ty13 = 0 .And. .NOT. Account = "360... |
oBrw:report() still need help.. | Harvey,OK, scopes are not going to work for you--you have some of the most complex filters I have ever seen.The fastest solution for you is to just write your own report using TReport. You can probably do this in 15 mintues or so.Granted, it would be nice to modify TXBrwose so it supports filters, but if you need a qui... |
oBrw:report() still need help.. | James:Can't write anything in 15 min. Can you give me a little bit more on what your suggesting. Writing my own function and using TReport as a starting point? |
oBrw:report() still need help.. | Harvey, James,If the filter is set on the same workarea as the used by the browse, then the report should respect the filter.Harvey, please try this:MsgInfo( Alias() )MsgInfo( oBrowse:cAlias )Please check that you are working in the same workarea. |
oBrw:report() still need help.. | Harvey,Just call your report from the same menu or button you are now using for xbrowse:Report(). Here is an example:Regards,James[code:13ufl6lq]// Sample FW Report
function myReport()
local oReport
local cTitle:="Sample Report"
local oCust:= tdata():new(,"arcust")
oCust:use(... |
oBrw:report() still need help.. | Antonio,>If the filter is set on the same workarea as the used by the browse, then the report should respect the filter. Sorry, it does not handle filters. It is relying on ordkeycount() to tell it when it has printed all the records and ordKeyCount() doesn't respect filters.Regards,James |
oBrw:report() still need help.. | James I'll give it a shot. Email later this evening and let you know. Thanks for all the help. |
oBrw:report() still need help.. | Harvey,I noticed in my sample report function that it is not saving and restoring the database state--and it should. Whenever you manipulate an open database in a function you should save and restore it's state as a matter of good programming practice. This will eliminate a lot of bugs.At the top of the function save t... |
oBrw:report() still need help.. | Harvey,I also noticed that my sample is for my own TData so it won't work for you. Here is one that works without a database object.Later we should discuss the merits of database objects. You can read about them on my website here:<!-- m --><a class="postlink" href="http://ourworld.compuserve.com/homepages/jbott/progra... |
oBrw:report() still need help.. | James,> It is relying on ordkeycount() to tell it when it has printed all the records and ordKeyCount() doesn't respect filters. yes, you are right. It looks as he should use OrdSetScope() instead of filters. |
oBrw:report() still need help.. | Harvey,I think I mentioned before (in another thread) that you should consider moving your filter data to a database so you don't have to recompile your program to change them.It appears that you have three groups of data (three filters). I assume that you have an accounts file, so you should be able to add a field to ... |
oBrw:report() still need help.. | Antonio,There is a bug in xbrowse. When you have a filter set and oBrw:refresh() is called, it crashes with the error below. This is the line where it is crashing. I don't know why it thinks eval() is a method.[code:2jtpt1yz] if ! ( ::cAlias )->( Eval( bFilter ) )[/code:2jtpt1... |
oBrw:report() still need help.. | Antonio,OK, I think I have a solution. bFilter was not actually a codeblock. This is from the method DelRepos().Regards,James [code:lvb2nli4]elseif ! Empty( cFilter := ( ::cAlias )->( dbFilter() ) )
//bFilter := ( ::cAlias )->( &c... |
oBrw:report() still need help.. | Thanks to James problem solved. I'm sure he'll be making some recommendations on xbrowse.He has been a gem in his help.... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
oBtn:ToolTip - UTF8 encoding fails [Unsolved] | UTF8 encoding fails - switches to Ansi - in BUTTON/[b:8hj53ltp][color=#FF0000:8hj53ltp]TButton[/color:8hj53ltp][/b:8hj53ltp]() and [b:8hj53ltp][color=#FF0000:8hj53ltp]TBtnBmp[/color:8hj53ltp][/b:8hj53ltp]() ToolTips!
Sample:
[code=fw:8hj53ltp]<div class="fw" id="{CB}" style="font-family: monospace;">REQUEST HB_CODEPAG... |
oBtn:ToolTip - UTF8 encoding fails [Unsolved] | E asi?
[code=fw:154a4ryq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH\SAMPLES\BTNFROSE.PRG</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br />REQUEST HB_LANG_PT<br />REQUEST HB_CODEPAGE_... |
oBtn:ToolTip - UTF8 encoding fails [Unsolved] | thank you for the tip but I can't switch code pages for the following reason:
My application is a translation memory system (TMS) and should support as many languages as possible.
It should therefore be able to [b:4h26k0bf]process, display and edit[/b:4h26k0bf] as many Unicode characters as possible at the [b:4h26k0b... |
oBtn:ToolTip - UTF8 encoding fails [Unsolved] | We will look into the issue of tooltips.
Display of Utf8 depends purely on FWH
This has nothing to do with HB_CDPSELECT( "UTF8" ). This setting is useful only for Harbour file and directory functions when these names are in UTF8, applicable mostly for East Asian Language applications.
In my view, keep HB_CDPSELECT( <... |
oBtn:ToolTip - UTF8 encoding fails [Unsolved] | [quote:140eh9v4]We will look into the issue of tooltips.[/quote:140eh9v4] <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
[quote:140eh9v4]Display of Utf8 depends purely on FWH[/quote:140eh9v4]
Does this mean that we can only use chars provided by FWH, even if we use a... |
oBtn:ToolTip - UTF8 encoding fails [Unsolved] | [quote:mg667qq2]UTF8 encoding fails - switches to Ansi - in BUTTON/TButton() and TBtnBmp() ToolTips![/quote:mg667qq2]
Can you please make this modification in "window.prg" and try?
Locate these lines in the METHOD ShowToolTip() of Window.prg:
[code=fw:mg667qq2]<div class="fw" id="{CB}" style="font-family: monospace;"... |
oBtn:ToolTip - UTF8 encoding fails [Unsolved] | [quote:3gqi0bqg]Does this mean that we can only use chars provided by FWH, even if we use a different font?[/quote:3gqi0bqg]
chars provided by FWH?
FWH does NOT provide any chars. FWH does not have any chars of its own.
FWH displays any text using Windows APIs
Any utf8 encoded text of any language in the World can... |
oBtn:ToolTip - UTF8 encoding fails [Unsolved] | [quote:3jw3hnkf]Any utf8 encoded text of any language in the World can be displayed using any Windows font.[/quote:3jw3hnkf]
This reassures me <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
[quote:3jw3hnkf]Please try after this change.[/quote:3jw3hnkf]
??? ???????, ??????????... |
oBtn:ToolTip - UTF8 encoding fails [Unsolved] | Thanks
Wondering how do you know my mother tongue?
India has 21 Unicode languages. |
oBtn:ToolTip - UTF8 encoding fails [Unsolved] | Wow, I can't believe. We are downright ridiculous with our 4 multibytes. |
oBtn:ToolTip - UTF8 encoding fails [Unsolved] | [quote:s8j9n2w3]Wondering how do you know my mother tongue?[/quote:s8j9n2w3]
I've asked ChatGPT <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> <!-- s8) --><img ... |
oBtn:ToolTip - UTF8 encoding fails [Unsolved] | WOW |
oButton:hide() & oButton:show() | Antonio and friends,Why the methods :hide() & :show() not works?I had to use the following way:[code:3obuppv8]oDlg:bPainted := {|| showWindow( oButton:hWnd, 0 ) }[/code:3obuppv8]Why? |
oButton:hide() & oButton:show() | Hello JC,You have to use the Button-object oBtn:Show(), oBtn:Hide()A sample to Hide a Button inside a buttonbar to get a spacebetween buttons.[code:17l2du0g]
DEFINE WINDOW oWnd TITLE "Test" MDI MENU TMenu():New()
DEFINE BUTTONBAR oBar OF oWnd SIZE 80, 80 2007 RIGHT
oBar:bClrGrad := ... |
oChild multiple | Buenas tardes, la pregunta es si es posible usar oChild en 2 campos diferentes de un Rowset, por ejemplo
[code=fw:2f1po18n]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oarticulo:<span style="color: #000000;">AddChild</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"selec... |
oChild multiple | At present only one Child is supported. |
oCn:ImportFromDBF function autoincrement id feature (Solved) | Hi Mr. Rao,
[quote:1v6hhsc8]If the field type in DBF is "N", it is not an autoincrement field. It is a numeric field and you are ensuring its uniqueness through your program logic. Am I right?[/quote:1v6hhsc8]
Right.
[quote:1v6hhsc8]If you let us know if you want option (a) or (b), we will advise you the suitable way... |
oCn:ImportFromDBF function autoincrement id feature (Solved) | Hi,
I try to migrate my own tables to MariaDB. I used to DBFCDX.
Most of my tables has a autoincrement field that is maintained for my application. I did not know there was a "+" field type in DBFCDX. So for example my autoincrement field type is "N" and name is "PLK_ID". These field is unique.
[code=fw:8859564j]<... |
oCn:ImportFromDBF function autoincrement id feature (Solved) | [quote:1r7buk2h]Most of my tables has a autoincrement field that is maintained for my application. I did not know there was a "+" field type in DBFCDX. So for example my autoincrement field type is "N" and name is "PLK_ID". These field is unique.
[/quote:1r7buk2h]
If the field type in DBF is "N", it is not an autoincr... |
oCn:ImportFromDBF function autoincrement id feature (Solved) | ? |
oCn:ImportFromDBF function autoincrement id feature (Solved) | [code=fw:bta2niqr]<div class="fw" id="{CB}" style="font-family: monospace;">cDBF := cPath + <span style="color: #ff0000;">"<span style="color: #000000;">\"</span> + aDir[ i, 1 ]<br />aStruct := FW_DBFSTRUCT( cDbf )<br />AEVAL( aStruct, { |a| If( a[ 1 ] == "</span>PLK_ID<span style="color: #ff0000;">... |
oCn:ImportFromDBF function autoincrement id feature (Solved) | [quote="nageswaragunupudi":noiumuun][code=fw:noiumuun]<div class="fw" id="{CB}" style="font-family: monospace;">cDBF := cPath + <span style="color: #ff0000;">"<span style="color: #000000;">\"</span> + aDir[ i, 1 ]<br />aStruct := FW_DBFSTRUCT( cDbf )<br />AEVAL( aStruct, { |a| If( a[ 1 ] == "</span>PLK_ID<span sty... |
oCn:Insert() - UTF8 encoding fails [Unsolved] | Encoding fails when inserting a character string contains 2-Byte [b:3uiz1ph3]ANSI [/b:3uiz1ph3]character, e. g. '"üäö".
Encoding is OK if the character string contains at least one 2-Byte [b:3uiz1ph3]NON ANSI[/b:3uiz1ph3] character, e. g. "?"
[code=fw:3uiz1ph3]<div class="fw" id="{CB}" style="font-family: monospace;">... |
oCn:Insert() - UTF8 encoding fails [Unsolved] | let me check |
oCn:Insert() - UTF8 encoding fails [Unsolved] | For now, please do not use oCn:Insert(...). We are reviewing this.
Can you please test this and let is know if this works correctly.
[code=fw:1axhc7lo]<div class="fw" id="{CB}" style="font-family: monospace;">cSql := <span style="color: #ff0000;">"INSERT INTO `"</span> + cTable + <span style="color: #ff0000;">"` ( `t... |
oCn:Insert() - UTF8 encoding fails [Unsolved] | Yes, pure sql works!
[b:3fq8z0py]Without[/b:3fq8z0py] AnsiToUtf8()!
Because I have [b:3fq8z0py]completely [/b:3fq8z0py]switched from mixed ASCII-Cp850/Ansi environment to UTF8, i.e. source code (UEStudio) and database DBF/MariaDB.
From now on, I no longer have to worry about the encoding.
No more conversions betwee... |
oCn:Insert() - UTF8 encoding fails [Unsolved] | [quote:16wn1399] source code (UEStudio) [/quote:16wn1399]
With UEStudio, can we enter constants in Utf8 and save in Utf8?
If so that is far better
But the point is we need to INSERT utf8 text but not ANSI text when the table's charset is utf8 or utf8mb4.
Now, we need to check the method Insert and get back to you. |
oCn:Insert() - UTF8 encoding fails [Unsolved] | [quote:7z68umue]With UEStudio, can we enter constants in Utf8 and save in Utf8?[/quote:7z68umue]
Do you mean [code=fw:7z68umue]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> cVar3 <span style="color: #ff0000;">"üäö ÜÖÄ ß"</span><br /><span style="color: #00... |
oCn:Insert() - UTF8 encoding fails [Unsolved] | [quote:p1622ys3]BTW: I missed [<lFindLast>] in ::Seek() <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
[/quote:p1622ys3]
Thanks for asking.
We will provide soon and if necessary, will provide with the revised libs. |
oCn:insert - Not inserting data (SOLVED) | With this code, i was trying to insert a line whenever a selected row will be processed.
I have seen the topic, (from version 16.08) I have 16.11
oCn:Insert( "changes", "bond, naam, voornaam,oldploeg,newploeg,datum", { oBrw:naam, oBrw:voornaam, oBrw:p2017, cPloeg, date() } )
I believe this should work. The oCn is o... |
oCn:insert - Not inserting data (SOLVED) | Marc
Here is the code I use for multiple selected rows in xBrowse
[code=fw:f6894ktn]<div class="fw" id="{CB}" style="font-family: monospace;"><br />aCols := oLbx:<span style="color: #000000;">aSelected</span><br /><br /><span style="color: #00C800;">For</span> i = <span style="color: #000000;">1</span> <span style="co... |
oCn:insert - Not inserting data (SOLVED) | Rick,
Every item from Xbrowse in the loop is updated correctly !
I want to insert a new row in a database 'changes' so I can trace changes that have been made by others.
oCn:Insert( "changes", "bond, naam, voornaam,oldploeg,newploeg,datum", { oBrw:naam, oBrw:voornaam, oBrw:p2017, cPloeg, date() } )
The insert shoul... |
oCn:insert - Not inserting data (SOLVED) | oCn:Insert(...) works in all versions.
Please see this part of your code:
[code=fw:hhgbc5ne]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #000000;">{</span> oBrw:<span style="color: #000000;">naam</span>, oBrw:<span style="color: #000000;">voornaam</span>, oBrw:<span style="c... |
oCn:insert - Not inserting data (SOLVED) | That was it.
I had more issues with missing this.... Also solved..
Thanks. |
oCol:bStrData with oBrw filled by array? | How I can exchange this code to works... when oBrw is filled by an array![code:2lm2x02k]
oCol := ::oCol( "cHeader" )
::getWidth( replicate( "B", len( eval( oCol:bStrData ) ) ), oCol:oDataFont )[/code:2lm2x02k]With this, the fivewin returns an error lik... |
oCol:bStrData with oBrw filled by array? | When we set an array for xbrowse, it only keeps in mind the array element number. The browse creates all codeblocks like bEditValue, bStrData, bOnPostEdit and also calculates the width required, aligment depending on the data type and such other things while executing the createfromcode().In fact xbrowse does the same ... |
oCol:bStrData with oBrw filled by array? | Nages,Thanks for your tip... I will try to use ::adjust() after reallocate the headers and values of columns! |
oCol:bStrData with oBrw filled by array? | [quote="JC":20s0le9i]Nages,
Thanks for your tip... I will try to use ::adjust() after reallocate the headers and values of columns![/quote:20s0le9i]OkBut I wonder why do you need to do it at all? Xbrowse does exactly the same calculations you are trying to do. May I know your purpose, if you dont mind ? I am just cu... |
oCol:bStrData with oBrw filled by array? | [quote:hgh78z1a]Ok
But I wonder why do you need to do it at all? Xbrowse does exactly the same calculations you are trying to do. May I know your purpose, if you dont mind ? I am just curious[/quote:hgh78z1a]Dear Nages,This is my source:[code:hgh78z1a] oBrw := TXBrowse():new( oDlg )
... |
oCol:bStrData with oBrw filled by array? | Hello JCoBrw:aCols[1]:cSortOrder := NIL I think :< cSortOrder > has to be the header-string of a col.RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
oCol:bStrData with oBrw filled by array? | [quote="ukoenig":2r7nn87k]Hello JC
oBrw:aCols[1]:cSortOrder := NIL
I think :
< cSortOrder > has to be the header-string of a col.
Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->[/quote:2r7nn87k]Uwe,You are right! But, when You want to "disable" the se... |
oCol:bStrData with oBrw filled by array? | My doubt is: How I can get the real size of a value column of xBrowse filled with an array? |
oCol:bStrData with oBrw filled by array? | [quote="ukoenig":12nmztvn]Hello JC
oBrw:aCols[1]:cSortOrder := NIL
I think :
< cSortOrder > has to be the header-string of a col.
Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->[/quote:12nmztvn]cSortOrder can be nil if the column is not to be sorted.I... |
oCol:bStrData with oBrw filled by array? | Mr JCI have executed your code as it is ( just substituted bitmap names). The widths are okay.Now, to know more about how xbrowse auto-calculates the widths: If we ourselves specify the width xbrowse does not do any calculations and blindly adopts the width we specify. If we have not specified the widths, it evaluate... |
oCol:bStrData with oBrw filled by array? | I have used this solution for my problem... but, I don't know if it's is the best way to do![code:vucu52dt]cHeader := "anything_for_header" <- Only for exhibition because this is generated automatically!!
oCol := ::oCol( cHeader )
nLenHeader := ::getWidth( replicate( "B",... |
oControl en Window | Antonio,
Veo que no está la data oControl en la clase Window. ¿Como puedo hacer que un control de una WINDOW tenga alineación cliente?
Saludos y gracias,
José Luis Capel |
oData - data interchange for today | Perhaps this subject could use its own discussion thread.
Today's programs are focused on data sharing. Having a desktop, mobile, web, or server application is great, but they all need to be able to communicate with each other, and share data, if they want to be relevant in today's technology.
Microsoft formulated, ... |
oData - data interchange for today | "Implementing OData: the Good, the Bad, and the Ugly"
<!-- m --><a class="postlink" href="http://channel9.msdn.com/Events/Open-Specifications-Plugfests/Odata-Meetup-2012/Implementing-OData-the-Good-the-Bad-and-the-Ugly">http://channel9.msdn.com/Events/Open-Sp ... d-the-Ugly</a><!-- m -->
A nice intro to OData: <!-- m... |
oData - data interchange for today | FYI - ADS version 11, now implements oData. So you can also communicate with your .dbfs using this protocol. Useful for handhelds, phones (including the iphone), tablets, and any newer devices using any development language without the need for any additional client layers.
Reinaldo. |
oData - data interchange for today | I will have to look at that since I do have Version 11 installed. |
oData - data interchange for today | Yes. It's called Advantage Web Platform and you can see demo videos here:
<!-- m --><a class="postlink" href="http://devzone.advantagedatabase.com/dz/screencasts/v11_demos/webconfig/webconfigdemo.html">http://devzone.advantagedatabase.com/dz ... gdemo.html</a><!-- m -->
Hope that helps,
Reinaldo. |
oDbf:Delete() error | I have two database
I must delete the User and all permission of this user
The user is deleted as you can see here
[b:4ggqc55y]USERS[/b:4ggqc55y]
[img:4ggqc55y]https://i.postimg.cc/rwLk4ZSP/u.png[/img:4ggqc55y]
The permissions are not deleted ( sometimes two or three records are deleted)
[img:4gg... |
oDbf:Delete() error | When you want to delete multiple records for a given condition
oDbf:Lock()
oDbf:Exec( { || DELETE FOR <cond> } )
oDbf:Unlock() |
oDbf:Delete() error | Nages,
someone (an american boy) sad me not use lock and unlock (and commit) because
tdatabase make it auto. |
oDbf:Delete() error | [quote="Silvio.Falconi":3s21ccww]Nages,
someone (an american boy) sad me not use lock and unlock (and commit) because
tdatabase make it auto.[/quote:3s21ccww]
Not FLOCK |
oDbf:Delete() error | then
DO WHILE !oPermessi:EoF()
oPermessi:Lock()
oPermessi:Exec( { || DELETE FOR oPermessi:Usuario==oUtenti:Clave } )
oPermessi:Unlock()
oPermessi:Skip()
ENDDO
is it right ?
make me error
source\test.prg(688) Error E0030 Syntax error "syntax error at 'FOR'"
... |
oDbf:Delete() error | [quote="Silvio.Falconi":vk72jpcg]then
DO WHILE !oPermessi:EoF()
oPermessi:Lock()
oPermessi:Exec( { || DELETE FOR oPermessi:Usuario==oUtenti:Clave } )
oPermessi:Unlock()
oPermessi:Skip()
ENDDO
is it right ?
make me error
source\test.prg(688) Error E0030 Synt... |
oDbf:Delete() error | Maybe this will do it almost...
[code=fw:gvsvvl7d]<div class="fw" id="{CB}" style="font-family: monospace;"><br />nInvoice := <span style="color: #ff0000;">"1234567890128"</span><br />oPermessi:<span style="color: #000000;">Lock</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>... |
oDbf:Delete() error | [quote="Marc Venken":3levbstj]Maybe this will do it almost...
[code=fw:3levbstj]<div class="fw" id="{CB}" style="font-family: monospace;"><br />nInvoice := <span style="color: #ff0000;">"1234567890128"</span><br />oPermessi:<span style="color: #000000;">Lock</span><span style="color: #000000;">(</span><span style=... |
oDbf:Delete() error | Now run ok
DO WHILE !oPermessi:EoF()
oPermessi:Lock()
oPermessi:Exec( { ||
DELETE FOR ALLTRIM(oPermessi:Usuario)==ALLTRIM(oUtenti:Clave)
} )
oPermessi:Unlock()
oPermessi:Skip()
ENDDO
and it delete all records but only some records bec... |
oDbf:Delete() error | Now run ok
[code=fw:2gumpi6a]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> UtBorra<span style="color: #000000;">(</span>oUtenti,oPermessi,oGrid2,oGrid3,oBtnCambia<span style="color: #000000;">)</span><br />&n... |
oDbf:Delete() error | Hey Silvio,
Great that you have it working !
Could you please try this function (1 loop less that yours) for my personel curiossity ?
I would like to know if
oPermessi:Exec( { ||
DELETE FOR ALLTRIM(oPermessi:Usuario)==ALLTRIM(oUtenti:Clave)
} )
acts like a dbeval and processes all scopes records...
[code=fw:26... |
oDbf:Delete() error | [code=fw:335t1axt]<div class="fw" id="{CB}" style="font-family: monospace;"> oPermessi:<span style="color: #000000;">Lock</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oPermessi:<span style="color: #000000;"... |
oDbf:Delete() error | Maybe try this:
[code=fw:3vd8c248]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oPermessi:<span style="color: #000000;">Lock</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oPermessi:<span style="color: #000000;">Exec</span><span sty... |
oDbf:Delete() error | [quote="James Bott":9fi2s4v2]Maybe try this:
[code=fw:9fi2s4v2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oPermessi:<span style="color: #000000;">Lock</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oPermessi:<span style="color: #... |
oDbf:Delete() error | [quote="Marc Venken":3eyvaj1r]Hey Silvio,[/quote:3eyvaj1r]
Mark,
on my procedure when I delete a User I must delete all permissions of that user , but when I call ut_borra() function to delete that use I have on Permission dbf a set scope
Now with the new fwh ( april 2021) I can erase that setscope with setscope(nil)... |
oDbf:Delete() error | Silvio,
This seems like a prefect time to make the delete-user-rights a method of the user database class. Actually, you
need to delete the users rights whenever a user is deleted so it should also part of the delete() method of the user class.
There would be no occasion where you would want to delete the user and lea... |
oDbf:modified() no regresa a .F. después de guardar el reg. | Tengo problemas con el uso de oDbf:modified()
¿Es posible que odbf:Modified() (ni oDbf:Updated() en su caso) no pase a .F. aún después de realizar oDbf:save() seguido de su correspondiente oDbf:Commit()?
Saludos |
oDbf:modified() no regresa a .F. después de guardar el reg. | Thanks for pointing this out.
Method Save() should have called ::Load().
We shall fix this in next version.
For now, please use this workaround:
After calling oDbf:Save(), please call oDbf:Load() |
oDbf:modified() no regresa a .F. después de guardar el reg. | Then I should wait until your next release. It is impossible for me to do it that way since I have my own Scatter and Gather beside (and above) those provided by Odbf and it will be a nightmare to reload data and gather in my 230 variables anew (has to do with Dbase field limitations and I was forced to use memo fields... |
oDbf:modified() no regresa a .F. después de guardar el reg. | I suppose you are using FWH13.05
For scatter/gather FWH provides two alternatives.
1. You can use Tdatabase class.
2. If you continue using DBF directly, you can use TDataRow class.
TDatabase class:
For the problem you pointed out in this post we have two alternatives.
(a) Call oDbf:Load() after calling oDbf:Save()
O... |
oDbf:modified() no regresa a .F. después de guardar el reg. | Thanks for your prompt and extensive response. I suppose you mean between lines 1046 and 1047 (2 consecutive ENDIFs of method save() class Tdatabase)
Will try. |
oDbf:modified() no regresa a .F. después de guardar el reg. | yes |
oDlg as oClient of oWnd (MDICHILD) | Dear All,
Just trying to do this..
...
Define Window MDICHILD...
.........Define Dialog (CHILD)
.........Active Dialog NOWAIT
.........[b:1qelorff]oWnd:oClient := oDlg[/b:1qelorff] //runtime here.. "Message not found: TDIALOG:ADJCLIENT"
Activate Window
...
The goal is to bind oDlg as child to oWnd (MDI CHIL... |
oDlg as oClient of oWnd (MDICHILD) | Hello Frances
Try this way
[code=fw:3h19vlq9]<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 /><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span... |
oDlg as oClient of oWnd (MDICHILD) | Dear Daniel,
Thanks for the help..
Yours is much simplier which is better than mine..
Mine:
[code=fw:vafzuk52]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oWndOP:<span style="color: #000000;">bResized</span> := <span style="color: #000000;">{</span>|nType, nWidth, nHeight| oDlgOP:<span... |
oDlg as oClient of oWnd (MDICHILD) | Frances,
It is advisable to avoid the use of such dialogbox so there is just one mdi child window and its controls. Here you have a working example (using a resource dialog to design the controls):
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=31982#p31982">viewtopic.php?... |
oDlg as oClient of oWnd (MDICHILD) | Dear Mr. Antonio,
Thank you for pointing the right way.. It enlightens my perception in binding child dialog to window mdichild.
I will revise my project and provide or post feedback here.
My best regards,
Frances |
oDlg:Refresh() does not refresh the all component in dialog. | Hi,I have a working test program as below. One dialog box, one folder and there are three says and gets. When I press the change button first value of get set another value and odlg:Refresh should be refresh the screen in ACTION. but does not. In this condition, If I click the first get, my new value is appears in firs... |
oDlg:Refresh() does not refresh the all component in dialog. | Try after each say and get expression use UPDATE. Then use oDlg:update() rather then oDlg:refresh(). In the asction add .t..It should look like this action(......., odlg:update(),.t.) |
oDlg:Refresh() does not refresh the all component in dialog. | Thank you Harvey,It works. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.