libURL: feature request
David Bovill
david at openpartnership.net
Wed Aug 27 10:08:21 EDT 2008
Could we have:
function libUrlGetLogField
> return lvLogField
> end libUrlGetLogField
>
As libURL uses local variables like "lvLogField" there is AFAIK no way to
get at them - I want to ensure a checkbox shows whether a custom logfield is
set and at the moment I have to track it manually which is error prone? It
complements "libUrlSetLogField" but is a bit shorter :)
on libUrlSetLogField pField
> local tField
>
> if word 1 of pField is "field" then
> put pField into tField
> else
> if pField is a number then
> put "field" && pField into tField
> else
> if word 1 of pField is "id" then
> put "field" && pField into tField
> else
> put "field" && quote & pField & quote into tField
> end if
> end if
> end if
> if exists(tField) then
> put the long id of tField into tField##standardise
> put tField into lvLogField
> else
> put empty into lvLogField
> end if
> end libUrlSetLogField
>
More information about the use-livecode
mailing list