Solved

Using Macro in Lotus Script

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now