Do merge
Dom
mcdomi at free.fr
Sat Sep 6 06:27:19 EDT 2008
Thierry <00bioarchimed at free.fr> wrote:
> By the way, can someone show me an example of the
> merge() with the <? ... ?> options.
> Don't understand the Doc.
a little late, but:
<script>
get fld "fdate"
convert it from long system date to dateitems
put item 1 of it into tannee
put item 2 of it into tmois
if tmois <10 then put "0" before tmois
put item 3 of it into tjour
if tjour <10 then put "0" before tjour
put merge("Nous sommes le [[tjour]]/[[tmois]]/[[tannee]]") into
tmessage
put tmessage
</script>
assuming that the field "fdate" contains a regular date :-)
demo sample, after reading the more thorough study here:
"The Power of Merge
Create easy-read code using the Merge function
by Jan Schenkel"
in:
<http://www.runrev.com/newsletter/august/issue55/>
More information about the use-livecode
mailing list