Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 4th, 2007, 11:45 PM
mustish1 mustish1 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 23 mustish1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m 27 sec
Reputation Power: 0
Problem in MSFLIX Grid

Hi: Can any one please tell me why the grid is showing only the last
two records as there are total 5 records in it. Is there any settings
are required in the grid. I am running program in debug mode and put my
mouse over on each value and they are 5 records but instead of all 5
the grid shows the last two records.i am using MSFlexGrid

Do While Not rsADO.EOF
sCurrentBalance = CurrentBalance(i, rsADO!client_name, "" &
rsADO!bal_lower, "" & rsADO!bal_upper)
sCurrentCount = CurrentCount(i, rsADO!client_name, "" &
rsADO!bal_lower, "" & rsADO!bal_upper)
If Val(sCurrentBalance) <> 0 Then
i = i + 1
grdDistribution.Rows = i + 1
grdDistribution.Row = i
grdDistribution.TextMatrix(i, 1) = rsADO!clientcode ' client
code
grdDistribution.TextMatrix(i, 2) = rsADO!client_name
grdDistribution.col = 3
grdDistribution.CellAlignment = 1
grdDistribution.TextMatrix(i, 3) = rsADO!balance
grdDistribution.col = 4
grdDistribution.CellAlignment = 1
grdDistribution.TextMatrix(i, 4) = rsADO!bal_lower
grdDistribution.col = 5
grdDistribution.CellAlignment = 1
grdDistribution.TextMatrix(i, 5) = "" & rsADO!bal_upper
grdDistribution.col = 6
grdDistribution.CellAlignment = 1
'grdDistribution.TextMatrix(i, 6) = Distribution ' "" &
rsADO!Distribution
grdDistribution.TextMatrix(i, 6) = rsADO!Distribution
grdDistribution.TextMatrix(i, 7) = sCurrentBalance
grdDistribution.TextMatrix(i, 8) = sCurrentCount
End If
rsADO.MoveNext
Loop


Thanks.

Reply With Quote
  #2  
Old January 5th, 2007, 06:13 AM
hithere's Avatar
hithere hithere is offline
Learner
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: India
Posts: 450 hithere User rank is Sergeant (500 - 2000 Reputation Level)hithere User rank is Sergeant (500 - 2000 Reputation Level)hithere User rank is Sergeant (500 - 2000 Reputation Level)hithere User rank is Sergeant (500 - 2000 Reputation Level)hithere User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 12 h 13 m 21 sec
Reputation Power: 18
I think you sCurrentBalance is 0 for other 3 records thats why its not showing them


Quote:
Originally Posted by mustish1
Hi: Can any one please tell me why the grid is showing only the last
two records as there are total 5 records in it. Is there any
settings
are required in the grid. I am running program in debug mode and put my
mouse over on each value and they are 5 records but instead of all 5
the grid shows the last two records.i am using MSFlexGrid

Do While Not rsADO.EOF
sCurrentBalance = CurrentBalance(i, rsADO!client_name, "" &
rsADO!bal_lower, "" & rsADO!bal_upper)
sCurrentCount = CurrentCount(i, rsADO!client_name, "" &
rsADO!bal_lower, "" & rsADO!bal_upper)
If Val(sCurrentBalance) <> 0 Then
i = i + 1
grdDistribution.Rows = i + 1
grdDistribution.Row = i
grdDistribution.TextMatrix(i, 1) = rsADO!clientcode ' client
code
grdDistribution.TextMatrix(i, 2) = rsADO!client_name
grdDistribution.col = 3
grdDistribution.CellAlignment = 1
grdDistribution.TextMatrix(i, 3) = rsADO!balance
grdDistribution.col = 4
grdDistribution.CellAlignment = 1
grdDistribution.TextMatrix(i, 4) = rsADO!bal_lower
grdDistribution.col = 5
grdDistribution.CellAlignment = 1
grdDistribution.TextMatrix(i, 5) = "" & rsADO!bal_upper
grdDistribution.col = 6
grdDistribution.CellAlignment = 1
'grdDistribution.TextMatrix(i, 6) = Distribution ' "" &
rsADO!Distribution
grdDistribution.TextMatrix(i, 6) = rsADO!Distribution
grdDistribution.TextMatrix(i, 7) = sCurrentBalance
grdDistribution.TextMatrix(i, 8) = sCurrentCount
End If
rsADO.MoveNext
Loop


Thanks.
__________________
Do, or do not. There is no 'try'.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Problem in MSFLIX Grid


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT