When I do the following, I get an error message „Type mismatch“:
The document contains 3 text fields (fld1, fld2 and fld3). Fld1 contains „AA“, fld2 contains „234“. I would like to combine the content of fields fld1 and fld2 and thus save „AA234“ in fld3. The Notes Debugger shows all 3 fields as variant type (string).
Dim doc as NotesDocument
Dim view as NotesView
....
Var1 = doc.fld1
REM Var1 gets the field value „AA“ (which is what I wanted)
Var2 = doc.fld2
REM Var2 gets the field value „234“ (which is what I wanted)
Var3 = Var1 + Var2 -> Creates a „Type mismatch“ error
Doc.fld3 = doc.fld1 + doc.fld2 also creates a „type mismatch“ error.
What am I doing wrong? (probably needless to mention that I am a beginner with LotusScript...). All help will be much appreciated.
Jurg
The document contains 3 text fields (fld1, fld2 and fld3). Fld1 contains „AA“, fld2 contains „234“. I would like to combine the content of fields fld1 and fld2 and thus save „AA234“ in fld3. The Notes Debugger shows all 3 fields as variant type (string).
Dim doc as NotesDocument
Dim view as NotesView
....
Var1 = doc.fld1
REM Var1 gets the field value „AA“ (which is what I wanted)
Var2 = doc.fld2
REM Var2 gets the field value „234“ (which is what I wanted)
Var3 = Var1 + Var2 -> Creates a „Type mismatch“ error
Doc.fld3 = doc.fld1 + doc.fld2 also creates a „type mismatch“ error.
What am I doing wrong? (probably needless to mention that I am a beginner with LotusScript...). All help will be much appreciated.
Jurg