Dividing a Receipt ticket

Dividing a Receipt ticket

Postby Bayron » Thu Sep 15, 2011 6:23 pm

Hi all,

I am trying to divide a receipt ticket, which I have in a temporary DBF File, I just took a loot at \samples\testdrp6.prg, and that sample does exactly what I need, but I am afraid I can't use it, because I asume that it will be too difficult to achieve Click and Hold in a TouchScreen Monitor...

Does anyone has a sample on how to send the selected registers to another browse that will be willing to share??? Ideas are also welcome!!!
=====>

Bayron Landaverry
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: Dividing a Receipt ticket

Postby TimStone » Thu Sep 15, 2011 7:35 pm

I'm confused by the question. "Receipt" and "Registers". Can you please clarify by example or email me direct at timstone@mlsdg.onmicrosoft.com
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Dividing a Receipt ticket

Postby Bayron » Thu Sep 15, 2011 7:57 pm

Hi Tim,
I call the columns FIELDS,
and the lines REGISTERS or RECORDS (I may call them wrongly???, Let's call'em RECORDS)

I will like to; having two Browses, send the selected Records in one to the other and viceversa by clicking a button ... kind of erase the selected records in one browse and add it to the other browse....

Image
Using a available picture just to represent what I try to achieve...

I can't provide an example because I have not started anything yet.... I have a pretty bad FLU, and I am just trying to save some time!!!

Thanks for your time....
=====>

Bayron Landaverry
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: Dividing a Receipt ticket

Postby Enrico Maria Giordano » Fri Sep 16, 2011 8:35 am

You can do it by using two scopes, one for each browse. To move a record from one browse to the other just change the value of the scoped field and refresh the browses.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8712
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Dividing a Receipt ticket

Postby TimStone » Fri Sep 16, 2011 4:07 pm

You could also use filtered indexes. One field has a logical value, and if it is .t., then it is included in the index. If it is .f., it is included in an alternate index. You can then have browse 1 include the .t. records, and browse 2 include the .f. records. When you change the value ( using your arrow buttons ), the logical value changes, the indexes automatically update, and an oBrw:update( ) will reflect the changes in the browse ( update both browses ... )

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Dividing a Receipt ticket

Postby TimStone » Fri Sep 16, 2011 4:19 pm

Bayron,

Think of a browse just like a spreadsheet. Your fields are "Columns" ( thus source code relevant to it will be "Col", like aCols, etc ) and your records are "Rows". Individual data values are held in "Cells". In fact, in current usage, a Database is the group of .dbf files used in a project, and each individual file is a "Table". These are derived from SQL that lumps all our data into a single file package, and each set of data is held in a table.

Once you think in these terms, it will make understanding any source code you see easier. The hierarchy is:

Database
Table
Rows
Columns
Cells

The best way to understand how to use the capabilities of FWH is through the source code ( provided ). I hope this explanation of key words helps you to more easily navigate that code, and see the power available to you.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Dividing a Receipt ticket

Postby Bayron » Sat Sep 17, 2011 1:23 am

Enrico and Tim, I like both your Ideas of scopes and indexes... I will see what I can do to get this project done...

Thank you...
=====>

Bayron Landaverry
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 90 guests