fatihdi
asked on
I need to assign a value to a field in a document in lotusscrip dynamically
I have 100 fields in a form ., when i create a document . i need to assign values to those fields
but i dont want to write all 100 fields manually because their name are like
field1
field2
field3
field4
.
.
. that goes like that
so i put a for loop in the for loop preceding the string "field" appended by counter value of the for loop i get the name of the field and then try to assign value to it but i get the error
use of illegal property below is my code. how can i achieve this?
For x=0 To datacount
doc.KHedef&Cstr(x+1)="valu e1" doc.Ilgilihoshin&Cstr(x+1) ="value2"
doc.HedefBitis&Cstr(x+1)=" value3"
doc.BasariOlcum&Cstr(x+1)= "value4"
doc.Agirlik&Cstr(x+1)="val ue5"
Next
but i dont want to write all 100 fields manually because their name are like
field1
field2
field3
field4
.
.
. that goes like that
so i put a for loop in the for loop preceding the string "field" appended by counter value of the for loop i get the name of the field and then try to assign value to it but i get the error
use of illegal property below is my code. how can i achieve this?
For x=0 To datacount
doc.KHedef&Cstr(x+1)="valu
doc.HedefBitis&Cstr(x+1)="
doc.BasariOlcum&Cstr(x+1)=
doc.Agirlik&Cstr(x+1)="val
Next
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER