pete at lcsql.com
Thu Mar 21 16:03:50 CDT 2013
Well I guess neither of the methods I mentioned will work since the import
command does not give me the id of the image it creates, at least not in
the it variable or the result.
So I guess I'm back to using the create command which solves the issue of
getting the image into the correct place, along with setting the filename
of the image after I create it. But that ends with with a referenced
control, which I don't want.
I hope I'm missing something obvious.....
lcSQL Software <http://www.lcsql.com>
On Thu, Mar 21, 2013 at 1:52 PM, Peter Haworth <pete at lcsql.com> wrote:
> I want to use the import command in a script to import an image from a
> file of the user's choice. The catch is that I want the resulting image to
> end up in a group and, unlike the create command, the import command
> doesn't have a way to specify a group.
> In the past when I've run into this, I get the ids of the group's
> controls, ungroup the group, add the id of the new image to the list of
> group controls, then group them, or copy the control into the group and
> delete the original control.
> Both those methods seem somewhat clumsy so I'm wondering if there's a more
> elegant way to do this.
> lcSQL Software <http://www.lcsql.com>
More information about the use-livecode