Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: sanjay karia
  Where is sanjay karia?
 mumbai
 India
 sanjay karia
 Tags
Subject: Modify Value after Decimal in Grid
Thread ID: 268774 Message ID: 268774 # Views: 38 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Grids
Date: Wednesday, July 14, 2010 2:38:23 PM         
   


Hello friends,
My grid1.column1.text1 has value of 12345.678
Now what I want is, whenever the column1.text1 has got focus, the user can have the option of changing only decimal value. Say from 12345.678 to 12345.637.

At present he is typing the whole value, I want to reduce this say for eg if he want to change only after decimal, if he press . , he should be able to change only decimal value.

I tried (column1.text1.gotfocus),
lvar = allt(str(int(.value)))+[.]
keyboard lvar

but this replaces the decimal value with .000

how to do this?

please advise
Thanks in advance

Sanjay Karia.

ENTIRE THREAD

Modify Value after Decimal in Grid Posted by sanjay karia @ 7/14/2010 2:38:23 PM
RE: Modify Value after Decimal in Grid Posted by Koen Piller @ 7/14/2010 4:07:37 PM
RE: Modify Value after Decimal in Grid Posted by sanjay karia @ 7/14/2010 4:22:56 PM
RE: Modify Value after Decimal in Grid Posted by Anil Sharma @ 7/14/2010 5:36:47 PM
RE: Modify Value after Decimal in Grid Posted by sanjay karia @ 7/14/2010 8:49:17 PM
RE: Modify Value after Decimal in Grid Posted by Yousfi Benameur @ 7/14/2010 7:16:23 PM
RE: Modify Value after Decimal in Grid Posted by sanjay karia @ 7/14/2010 8:50:29 PM
RE: Modify Value after Decimal in Grid Posted by Koen Piller @ 7/14/2010 10:34:46 PM
RE: Modify Value after Decimal in Grid Posted by Yousfi Benameur @ 7/15/2010 12:41:24 AM