Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem in replacing data
Message
From
27/11/2005 12:18:56
Chandan Chakraborty
Bangiya Gramin Vikash Bank
Raiganj, India
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Problem in replacing data
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01072271
Message ID:
01072271
Views:
54
I have a form with label name acno,credit and balance.
In keypress event of credit=label2) I written the following code.
close all
select a
use mbal
lnBalance=0
lnGt=0
lnTc=0
lnGt=myentry.credit.value
if nKeycode=13
select mbal
index on acno to tt
seek thisform.acno.value
 if found()
 lnBalance=(mbal.balance)

 lnBalance=lnBalance+lnGt
 select mbal
 repl date with (myentry.date.value),balance with lnBalance
  myentry.balance.value=(mbal.Balance)
  go top
    sum(balance) for type="balance"  to lnTc
    myentry.tbalance.value=lnTc
  
  
 endif
endif
 close all
My intention is to replace the balance in balance(=label3).But the data
is not replacing in the table.Ketevent is necessary to proceed further.
Please help
Next
Reply
Map
View

Click here to load this message in the networking platform