Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Samir Ibrahim
  Where is Samir Ibrahim?
 Chekka
 Lebanon
 Samir Ibrahim
 To: Mustapha Bihmouten
  Where is Mustapha Bihmouten?
 Casablanca
 Morocco
 Mustapha Bihmouten
 Tags
Subject: RE: Grid zeros
Thread ID: 188908 Message ID: 189078 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Wednesday, August 13, 2008 10:12:28 AM         
   


> > Hi Sam,
> >
> > it didn't work for me.
> >
> > Do I need to do some more setting with this.
> > I issued this command in form's load event but grid still shows 0.0 in its columns
> > this is structure of cursor used in grid.
> >
> > CREATE CURSOR tmpcur(cname c(10),amount n(11,2))
> > 
> > 

> > -----------------------------------------------------------------------------------------------
> > Regards
> > Surinder Singh
> > Email: sur200@indiatimes.com
> > Check my blog for details: http://weblogs.foxite.com/sur200
> > ----------------------------------------------------------------------------------------
> > *If you understand what you're doing, then you're not learning anything.
>
>
> Hello Surinder
>
> Check my answer to Russell Hill
>
> use the format property of the grid.column like this :
>
>
thisform.MyGrid.columns(1).format = "Z"
or
>
thisform.MyGrid.column1.format = "Z"

>
> format = "Z" will presents 0 values as blank entry
>
> Regards
> Mustapha Bihmouten

I thought it has a problem like this one. Message ID: 176874

If he use SET NULL DISPLAY TO "0" else where in his the procedure, the .format will not work.

That is why i said i drift away in my answer because this is not the case.

Samir R. Ibrahim
Good things Take time, Great things happend all at once.

My WebLog
My Website: www.cdcity.org

ENTIRE THREAD

Grid zeros Posted by Russell Hill @ 8/12/2008 3:20:14 PM
RE: Grid zeros Posted by Mustapha Bihmouten @ 8/12/2008 3:31:26 PM
RE: Grid zeros Posted by Russell Hill @ 8/12/2008 11:40:26 PM
RE: Grid zeros Posted by Samir Ibrahim @ 8/12/2008 3:34:54 PM
RE: Grid zeros Posted by Mustapha Bihmouten @ 8/12/2008 3:43:22 PM
RE: Grid zeros Posted by Samir Ibrahim @ 8/13/2008 9:42:28 AM
RE: Grid zeros Posted by surinder singh @ 8/12/2008 3:51:16 PM
RE: Grid zeros Posted by Mustapha Bihmouten @ 8/12/2008 4:06:57 PM
RE: Grid zeros Posted by Samir Ibrahim @ 8/13/2008 10:12:28 AM
RE: Grid zeros Posted by Samir Ibrahim @ 8/13/2008 10:29:08 AM
RE: Grid zeros Posted by Barbara Peisch @ 8/12/2008 8:52:30 PM
RE: Grid zeros Posted by Russell Hill @ 8/12/2008 11:40:00 PM