Hi folks,
Need some help with a lotusscript problem I have. I am currently writing some code that copies the contents of one document, to a newly created document. I have no trouble copying and pasting text fields by using this:
Call objUIDoc.GotoField(“icDescription”)
Call objUIDoc.SelectAll
Call objUIDoc.Copy
Call objUIDoc2.GotoField(“icDescription”)
Call objUIDoc2.Paste
However, a lot of fields in the form are combo boxes and when I try the copy and paste method, notes returns an error about the command not being found.
Does anyone know how I am able to copy the contents of combo box and paste it successfully into a new form?
Thanks for any help!
[EDIT]
I’ve come across another problem which puzzles me.
I am prompting the user for 2 numbers before the new form is created, and then I am trying to put those 2 numbers into 2 different fields on the new form, my code snippet is:
Dim release As String
Dim increment As String
release = Inputbox(“Please enter a release number for the Re-Apply”,“Enter Release”)
increment = Inputbox(“Please enter an increment number for the Re-Apply”,“Enter Increment”)
Call objUIDoc2.FieldSetText(icIssueRelease, Cstr (release))
Call objUIDoc2.FieldSetText(icIssueReleaseIncrement, Cstr (increment))
However, notes returns an error saying arguement must be a string. I’ve looked at the debugger and both release and increment are classed as string variables with the number the user puts in. There are strings, so why can’t I set the field?
Thanks for any help with anything!
Bryan =@)
[EDIT II]
Arh! This is most frustrating!
Can anyone tell me whats wrong with this:
If (objUIDoc.GotoField(“icState”) = “11”) Then
Do stuff
Else
End If
It wont compile, illegal reference to: GOTOFIELD
=@(
Seriously, if anyone can help with any of the 3 problems, id be forever grateful