Search found 52 matches: scoped

Return to advanced search

Re: Pass Multiple vars with a function call

nageswaragunupudi wrote:
Such long code can be avoided by using SCOPED RELATIONs.
I will try to give you a sample.


That would be very very nice because my entire systems depend on this !!!
by Marc Venken
Fri Sep 08, 2023 2:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Pass Multiple vars with a function call
Replies: 3
Views: 223

Re: Pass Multiple vars with a function call

... cZoekData ) )  (cChild)->(DBGOTOP())  Such long code can be avoided by using SCOPED RELATIONs. I will try to give you a sample.
by nageswaragunupudi
Fri Sep 08, 2023 2:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Pass Multiple vars with a function call
Replies: 3
Views: 223

Is Xbrowse Barget still intended to filter data

... I consider having a extended call to the function marc_setfilter(oBrwsel,"CustName") and insite the function make a selection for using scoped or filtered data do case case cData = "CustName" ... set index name ... scope the data for quick access case cData = "CustStreet" ...
by Marc Venken
Sat Nov 05, 2022 1:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Is Xbrowse Barget still intended to filter data
Replies: 2
Views: 205

Re: System info, Tips & Tricks, scharing project info

... brand and just process the 700 records. There is a index on the brand Tag, but I dont think that the function is using it. In relation there is a scoped call involved... Idem.
by Marc Venken
Sun Jan 16, 2022 11:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: System info, Tips & Tricks, scharing project info
Replies: 20
Views: 1452

1-to-many like Foxpro

... database, and only the child database is skipping for the number of records that match the relation with the main database. I saw something like SCOPED relation, but that is not the same as the 1-to-many command in Foxpro http://forums.fivetechsupport.com/viewtopic.php?p=221800&sid=3c2b29d525eb35873bcdbb3792cc56dc&sid=25c46c31fe1e767d08ae1588e662fc02#p221800
by Marc Vanzegbroeck
Thu Sep 16, 2021 12:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: 1-to-many like Foxpro
Replies: 14
Views: 1208

Re: TDatabase: Relating Tables

Can this also work with multiple dbf's linked ? I believe that only 1 set relation to... scoped can be active at a time... (Not sure) I want a one Xbrowse with 4 dbf linked by a product_id (See a line with product ID and prices from 4 different dbf's) set relation to ...
by Marc Venken
Fri May 28, 2021 2:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase: Relating Tables
Replies: 3
Views: 901

Re: Marc : Conversion process and questions about it

... you only read the database records you need. Way faster! Another possibility is to use a scope, then filter only the records in the scope. I use scoped filter... They are fast. BTW : Speed is not the problem. All by all... it is fast enough, but optimising code can speed things up, unless the ...
by Marc Venken
Sat Jan 02, 2021 7:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Marc : Conversion process and questions about it
Replies: 30
Views: 3499

Re: to Nages: test for tdatabase

... work and now I'm very afraid, scared to start all over again other time and never get to the end of the conversion of my old application Use scoped relations. There have been a lot of improvements
by nageswaragunupudi
Fri May 10, 2019 6:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: to Nages: test for tdatabase
Replies: 37
Views: 5686

TDatabase: Relating Tables

... TO <exp> INTO <other_table_alias> One-to-many (parent-child) relationship: SET RELATION TO <exp> INTO <child_table_alias> SCOPED All may not be very familiar with setting relationships between two database objects using TDatabase. The intent of this post is to explain this ...
by nageswaragunupudi
Fri May 10, 2019 5:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase: Relating Tables
Replies: 3
Views: 901

Re: To Marc -> A xBrowse-image colorpicker

Uwe, The basis colors mosaic, can it be filled with the scoped colors from the database ? and the Metro colors can be the same data, but with the names of the Brand colors into it. In my spicific case, the dark and light browse are not needed, and coulf ...
by Marc Venken
Mon Nov 13, 2017 11:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: A Colorpicker and RGB-tools
Replies: 53
Views: 7966

Re: To Marc -> A xBrowse-image colorpicker

... prestashop. Brand ColorNaam Hex Dec Rgb Brand1 Red xxxx xxxx xxxx Brand1 Green xxxx xxxx xxx Brand2 HighRed xxxx xxxx xxxx The table will then be scoped for ex. only brand1 for all his colors, and put into a browse for selecting. Thanks The shown metro colors can become one
by Marc Venken
Mon Nov 13, 2017 10:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: A Colorpicker and RGB-tools
Replies: 53
Views: 7966

Re: Put a hold on xbrowses scope action

Scoped relation is simpler and faster. Also less code less bugs
by nageswaragunupudi
Sun Oct 29, 2017 7:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Put a hold on xbrowses scope action (SOLVED)
Replies: 7
Views: 1413

Re: Put a hold on xbrowses scope action

Works perfectly !! Thank you. I have a learning question : I see that you use : SET RELATION TO CODE INTO CUSTOMER SCOPED and I use : :bChange := { || SET_SCOPE(oBrw) } STATIC FUNCTION SET_SCOPE(oBrw)LOCAL cNName := fotoinde->codeDBSELECTAREA( "nofoto" )("nofoto")->( ...
by Marc Venken
Sun Oct 29, 2017 6:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Put a hold on xbrowses scope action (SOLVED)
Replies: 7
Views: 1413

FWH: Parent Child RowSets (MySql/MariaDB)

On many occassions we need to create parent-child relationships between tables and browse them. In case of RDD, using scoped relations make this very easy. (cParentAlias)->( OrdSetRelation( cChild, bRelation, cRelation ) ) or SET RELATION TO <expr> INTO <child> SCOPED. ...
by nageswaragunupudi
Thu Jul 21, 2016 7:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH: Parent Child RowSets (MySql/MariaDB)
Replies: 12
Views: 4239

Re: Xbrowse a speed problem using SCOPE ?

... you mean the top of the scope, then yes, but if you mean the top of the file, then no. A scope requires an index on the field to be scoped. It does a seek on the index key, then only reads until the key changes. Thus, if you have a file containing 1000 records but only 10 of them ...
by James Bott
Wed Mar 02, 2016 5:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse a speed problem using SCOPE ?
Replies: 30
Views: 9037
Next

Return to advanced search