Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sum
Message
From
06/03/2006 23:55:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Sum
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01101943
Message ID:
01101943
Views:
45
hi all,

any idea,help

i need to SUBTRACT 2 fields at my grid,created via cursor as

at .Column3.ControlSource = "csrMyCursor.eticket"
valid event
.Column4.noofticket=.Column2.Sticket-.Column3.Eticket

but i see only grid1 how i can determine the columns at my grid to make the operation.
Select bookno,sticket,eticket,noofticket,boxno from trans1 into cursor csrmyCursor readwrite where .F.
SELECT csrMyCursor
With thisform.Grid1
  .RecordSource = "csrMyCursor"
  .Column1.ControlSource = "csrMyCursor.bookno"
  .Column2.ControlSource = "csrMyCursor.sticket"
  .Column3.ControlSource = "csrMyCursor.eticket"
  .Column4.ControlSource = "csrMyCursor.noofticket"
  .Column5.ControlSource = "csrMyCursor.boxno"

    append blank
  .Refresh()
ENDWITH
Next
Reply
Map
View

Click here to load this message in the networking platform