Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 300
  • Last Modified:

Using Macro in Lotus Script

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
Faraj1969
Asked:
Faraj1969
  • 3
1 Solution
 
RanjeetRainCommented:
for i = to 13
  msgbox doc."LastName_" + ctr(i)(0)
next i
0
 
RanjeetRainCommented:
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
 
Faraj1969Author Commented:

I love EE.. lol

Many thanx RanjeetRain

Cheers all
0
 
RanjeetRainCommented:
At this pace, you are sure to fall in love ... watch Mohabbatein ;-)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now