Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 124843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:03:52+00:00 2026-05-11T05:03:52+00:00

I found this code that goes through and prints out csv for both columns.

  • 0

I found this code that goes through and prints out csv for both columns. I later parse and count the two columns. I want to count it here instead of printing and counting later. I’ve been mucking around but couldn’t figure it out.

Dim entry As NotesViewEntry Dim vc As NotesViewEntryCollection Dim rowstring As String Dim session As New NotesSession Dim db As NotesDatabase Set db = session.CurrentDatabase Dim view As NotesView Set view = db.GetView( nameofview ) Set vc = view.AllEntries Set entry = vc.GetFirstEntry()  While Not entry Is Nothing      rowstring = ''     Forall colval In entry.ColumnValues         If rowstring = '' Then             rowstring = colval         Else             rowstring = rowstring + +','  + colval         End If               End Forall Wend 

Thanks for any help in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:03:53+00:00Added an answer on May 11, 2026 at 5:03 am

    Try this, it accumulates the columns into rowval by converting the colval string into an numeric value. You could just as easily use double/CDbl() if they’re floating point. This is assuming that, by ‘count the two columns’, you mean sum them up and output the sum. If you mean literally count, then keep it as an Integer and change the line

    rowval = rowval + CInt(colval) 

    to

    rowval = rowval + 1 

    Here it is:

    Dim entry As NotesViewEntry Dim vc As NotesViewEntryCollection Dim rowval As Integer                       ' or Double ' Dim session As New NotesSession Dim db As NotesDatabase Set db = session.CurrentDatabase Dim view As NotesView Set view = db.GetView( nameofview ) Set vc = view.AllEntries Set entry = vc.GetFirstEntry()  While Not entry Is Nothing      rowval = 0     Forall colval In entry.ColumnValues         rowval = rowval + CInt(colval)      ' Or CDbl() '     End Forall     ' Output rowval here. '     Set entry=vc.GetNextEntry (entry) Wend 

    As per your original sample, I haven’t output anything (?) but I’ve put a comment where you should do it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've found this small code that sends email to gmail users. I'd like the
found this little code snippet that seems to do what i want, but im
I found this great code snippet that works wonderfully during circumstances that change a
I currently have this useful code that I found elsewhere on StackOverflow: form.DrawToBitmap(bmp, new
I found that this C++ code: vector<int> a; a.push_back(1); a.push_back(2); vector<int>::iterator it = a.begin();
I have found this line of code in a game that I study int
I have this Objective-C code that I found somewhere. Honestly, I don't understand a
This morning we found an old chunk of code that was causing a library
I have found this line of MatLab code on the internet that displays a
I had posted a question in regards to this code. I found that JTextArea

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.