Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Using Macro in Lotus Script

Posted on 2004-10-12
4
293 Views
Last Modified: 2013-12-18
Hi again.

Please EE don't hate me... lol....


I have those fields : LastName_1, LastName_2, LastName_3,......... LastName_13
And I need to use a macro within FOR - NEXT loop to refer to those fields instead of repeating them one by one... how I do that ?

many thanks in advance..
0
Comment
Question by:Faraj1969
  • 3
4 Comments
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 12285946
for i = to 13
  msgbox doc."LastName_" + ctr(i)(0)
next i
0
 
LVL 19

Accepted Solution

by:
RanjeetRain earned 100 total points
ID: 12285973
Using front-end classes:


Sub Click(Source As Button)
      Dim ws As New NotesUIWorkspace
      Dim uiDoc As NotesUIDocument
      Set uiDoc = ws.CurrentDocument
      For i = 1 To 6
            Msgbox uiDoc.FieldGetTExt ("LastName_" & Cstr(i))
      Next      
End Sub
0
 

Author Comment

by:Faraj1969
ID: 12286036

I love EE.. lol

Many thanx RanjeetRain

Cheers all
0
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 12286601
At this pace, you are sure to fall in love ... watch Mohabbatein ;-)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question