Perfect,thanks Marty. Pete lcSQL Software <http://www.lcsql.com>
On Thu, Mar 21, 2013 at 2:01 PM, Marty Knapp <[email protected]>wrote: > Hey Pete, > Why not create an image in the group you want, then use the "put URL" > method: > > create image in group "GroupName" of stack "StackName" > put it into tImageID --long id of image > put URL (binfile:" & tPathToImage) into image tImageID of group > "GroupName" of stack "StackName" > > > Marty Knapp > >> 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. >> >> Pete >> lcSQL Software <http://www.lcsql.com> >> >> ______________________________**_________________ >> use-livecode mailing list >> [email protected] >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode> >> > > > > ______________________________**_________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode> > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
