Storing multiple lines of text in custom properties
Posted: Mon Mar 16, 2009 8:32 am
I've moved this from a previous thread, if that's OK (it was after one of my own posts, so I hought it might have got lost!)
I've now found yet another stack that is close to what I'm after but can't seem to work out putting more than one line of data into each field. The stack is called CustPropDatabase/Programming/Rev Online and in the "See Record" button is the following script (including the search):
I can't, for the life of me alter the last bit of the handler so that any more than one line of text appears in the appropriate text box. I have given it a whirl for quite a while but no success; I'm sure it's pretty much straightforward...
So could anyone help to amend the script, to allow for multiple lined text to appear in the appropriate fields please
I've now found yet another stack that is close to what I'm after but can't seem to work out putting more than one line of data into each field. The stack is called CustPropDatabase/Programming/Rev Online and in the "See Record" button is the following script (including the search):
Code: Select all
on mouseUp
global gLineNumber
ask "Find what?"
if it is empty or the result is "Cancel" then exit mouseUp
put it into finne
set the htmlText of fld "kust" to the MittArkiv of this cd
put fld "kust" into tArkiv
repeat with i = 1 to number of lines of tArkiv
if finne is in line i of tArkiv then
put line i of tArkiv into tArkivLinje
put i into gLineNumber
--answer gLineNumber
--Puts the data into the various fields:
repeat with y = 1 to 5
set itemdel to comma
put "Title,Album,Composer,Artist,Year" into temp
put item y of temp into tField
set itemdel to "#"
put item y of tArkivLinje into fld tField
end repeat
exit repeat
end if
end repeat
end mouseUp
So could anyone help to amend the script, to allow for multiple lined text to appear in the appropriate fields please
