Changing an object's id

MisterX b.xavier at internet.lu
Mon Jun 20 17:30:09 EDT 2005


on mouseup
  get the long name of any control
  changecontroltonuid it, 50000
end mouseup

on changecontroltonuid acontrol, nuid
  repeat until it is myid is nuid
  clone acontrol
  if word 3 of it is not nuid then
    delete it
  else
    exit repeat
  end if
end repeat

Funny eh? ;) But it should work ;)
I think only ids of images can be change.
Otherwise, you can use the altid which will overide the id of a control if
queried.

hope it help, hope im not wrong again ;)
cheers
Xavier

> -----Original Message-----
> From: metacard-bounces at lists.runrev.com 
> [mailto:metacard-bounces at lists.runrev.com] On Behalf Of Shari
> Sent: Monday, June 20, 2005 16:05
> To: metacard at lists.runrev.com
> Subject: Changing an object's id
> 
> I know someone posted a way to do this, and I could have 
> sworn I saved the info.  But looking in my Metacard snippets 
> folder, and searching the archives, I couldn't find it.  Am I 
> losing my marbles?
> 
> Is there a way to change an object's id?  The actual id number?
> 
> If so, would you post it again?
> --
> Mac and Windows shareware games
> http://www.gypsyware.com
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
> 



More information about the metacard mailing list