Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid weirdness
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grid weirdness
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01468952
Message ID:
01468952
Views:
170
Hi Gang!

I have a grid on a form. The grid's name is grdCust.

When the form is up and running, the user can select a Cashier from the grid. When you select the Cashier, it runs some code in a method (form the click, dbl-click, and Interacitve change event of the grid).

I capture the values from the grid (the values are Cashier Name, Register Number, Date and Time) in this method.
mCashier = Thisform.grdCust.colCashierName.txtCashierName.Value

Thisform.p_cashier    = Thisform.grdCust.colCashierName.txtCashierName.Value
Thisform.p_date       = Thisform.grdCust.colDate.txtdate.Value
Thisform.p_time       = Thisform.grdCust.colTime.txtTime.Value
Thisform.p_regno      = Thisform.grdCust.colRegisterNumber.txtregisterNumber.Value	
Everything is good the first time I click on the grid.

If I click on another Cashier, the code runs again, but this time the Cashier Name changes to the correct grid row entry, but the Register number, Date and Time DO NOT change to the new grid row values. They remain the same!!!

Any ideas?? Corrupt form?? My brain fried???'

Thanks!
Tommy Tillman A+ NetWork+ MCP
Next
Reply
Map
View

Click here to load this message in the networking platform