probably the solution is easy, but I can't find it.
I have this:
Code: Select all
on myfunction tday,tMonth,tYear
end myfunction
Code: Select all
put "30,12,2015" into temp
put myFunction(temp)
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on myfunction tday,tMonth,tYear
end myfunction
Code: Select all
put "30,12,2015" into temp
put myFunction(temp)
Code: Select all
on mouseUp
put myFunction( "30,12,2015" ) &cr& \
myFunction( 27, 5, 2016)
end mouseUp
Code: Select all
function myFunction tDay,tMonth,tYear
local saveItemDelimiter
if paramCount() is 1 then
put the itemdelimiter into saveItemDelimiter
put item 2 of param(1) into tMonth
put item 3 of param(1) into tYear
put item 1 of param(1) into tDay
set the itemdelimiter to saveItemDelimiter
end if
// whatever...
return format("Y: %s M: %s D: %s", tYear, tMonth, tDay)
end myFunction