Hard code or portable code

hershrev hershbp at realtorsgroup.us
Tue Mar 2 22:21:17 EST 2004


Hi all,
is there a way to imitate hard code with some kind of container ?
e.g.
put "a" into  field 1
put "b" into field 2

put field 1 & field 2 into field 3 will return "ab"

put name of field 1 after  myVar
put name of field 2 after  myVar
put myVar into field 3 will return "field 1 field 2" and not "ab"
or
  repeat with x = 1 to the number of fields
      put name of field into myVar
end repeat
put (the text of item 1 of ) myVar into field 3 will return "field 1or  
field 2 or both depends"
I'd like to be able have the text of field 1 and 2
the plus, to avoid to hard code many amounts of field names
Thanks hershrev



More information about the use-livecode mailing list