11/26/02, David Vaughan wrote:
On Tuesday, Nov 26, 2002, at 13:01 Australia/Sydney, Oliver Hardt wrote:Oliver-- this function gets a tab-separated list of -- values (ppData) and a tab-separated list of -- keys (ppKeys). then an array is filled up -- with the ppData values and returnedfunction gF_LoadPPRec pData,pKeys put empty into lPPArray set the itemDelimiter to tab repeat with i = 1 to the number of items of pKeys put item i of pData into lPPArray[(item i of pKeys)] end repeat return lPPArray end gF_LoadPPRec
I wrote this:
on mouseUp
put 1 & tab & 2 & tab & 3 & tab & 4 into pKeys
put "Freddo" & tab & "Frog" & tab & "was" & tab & "here" into pData
get gf_LoadPPRec(pData,pKeys)
combine it with return and comma
put it into field "f2"
end mouseUp
function gF_LoadPPRec pData,pKeys
put empty into lPPArray
set the itemDelimiter to tab
repeat with i = 1 to the number of items of pKeys
put item i of pData into lPPArray[(item i of pKeys)]
end repeat
return lPPArray
end gF_LoadPPRec
which you can see includes your untouched function. It simply exercises it; and it worked perfectly, producing:
1,Freddo
2,Frog
3,was
4,here
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution