Click here to Skip to main content
15,887,338 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
COACode COAName     DocNo   DocDate   OpenBal Debet   Credit  CloseBal
1000    Cash/Bank   D003    4/4/2004   1000    100      0      1100
1000    Cash/Bank   D001    5/5/2005            0      100     1000
1000    Kas/Bank    D002    6/6/2006           100      0      1100
2000    AP          D005    4/4/2004   2000    100      0      2100
2000    AP          D004    5/5/2005            0      100     2000


How i get the value of CloseBal like sample above using looping on VS2005?
Posted
Updated 1-Jul-13 22:45pm
v2

1 solution

Assuming you have such information in a text file:
  1. read the first line and discard it
  2. read next line into a string (say s): if no line is available, then exit the loop
  3. split the string s (using String.Split method) and get last array item
  4. goto point 2
 
Share this answer
 
Comments
antongundul 2-Jul-13 23:57pm    
thanks, now i know the logic
CPallini 3-Jul-13 1:30am    
You are welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900