Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ali Koumaiha
  Where is Ali Koumaiha?
 Farmington Hills
 Michigan - Lebanon
 Ali Koumaiha
 To: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 Tags
Subject: RE: Position Record Changer
Thread ID: 416445 Message ID: 416454 # Views: 47 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Grids
Date: Monday, December 29, 2014 9:37:47 PM         
   


I would make Rank field
PayMethod, Rank, IID

the rank is:
Cash 1
credit 2
Debit 3
Diners club 4
Financed 5

and i do my select order by rank.

On the form, I would have 2 small arrows (Up and Down) to move them (like a slider)

and in the click event, i change the field of Rank based on position.

and then, i requery the grid and i store them in the table for the next time they launch the app, its the same order.

so, it could be this:

cash 2
credit 1
debit 3

etc..

basically change the value of Rank based on the position.

ENTIRE THREAD

Position Record Changer Posted by Pete Sass @ 12/29/2014 7:56:26 PM
RE: Position Record Changer Posted by Koen Piller @ 12/29/2014 9:07:16 PM
RE: Position Record Changer Posted by Pete Sass @ 12/29/2014 11:19:50 PM
RE: Position Record Changer Posted by Koen Piller @ 12/30/2014 8:03:48 AM
RE: Position Record Changer Posted by Pete Sass @ 12/30/2014 1:50:39 PM
RE: Position Record Changer Posted by Ali Koumaiha @ 12/29/2014 9:37:47 PM
RE: Position Record Changer Posted by Chuanbing Chen @ 12/30/2014 12:55:38 AM
RE: Position Record Changer Posted by Jun Tangunan @ 12/30/2014 2:27:11 AM