Solved

Using Macro in Lotus Script

Posted on 2004-10-12
4
296 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
[X]
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
  • 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

Suggested Solutions

Title # Comments Views Activity
Username format for Domino LDAP 3 117
Add code to Lotus Notes view column 2 139
Counting documents in a Domino View 3 135
xss alert in domino url 9 84
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

752 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