put it into toParse
repeat with i = 1 to the number of lines of toParse
put item 1 of toParse into field "start date"
put item 2 of toParse into field "end date"
end repeat
ok, so gathering both echos - into one line - first, is a must ? ...
PS: Works perfectly, Tks again !!
On the other side if there is another way to dispatch them properly even when they are on two distinct lines ..i m still intereted
(thats the case for now)
then with LC just do the same thing as my other reply. Adding the comma will give LC something to use as a delimiter. There is probably another way, as usual with coding, but this should work
on mouseUp
-- get URL myPhp -- we would fetch the php data this way
get "Start date : 2018-02-09T12:18:49+01:00End date : 2018-02-09T12:18:49+01:00"
-- but we already know the data ;-)
put CR after char offset("End date :", it) -1 of it
put line 1 of it into fld "Start"
put line 2 of it into fld "End"
end mouseUp
All code published by me here was created with Community Editions of LC (thus is GPLv3).
If you use it in closed source projects, or for the Apple AppStore, or with XCode
you'll violate some license terms - read your relevant EULAs & Licenses!