Solved

Using Macro in Lotus Script

Posted on 2004-10-12
4
292 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

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
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 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