S
Suresh Jeevanandam
Guest
Hi all,
I am trying to create rod object inside a cellview. I would like to
have its name start with string ( just to be descriptive.)
Right now I am doing this way,
procedure(MYgetUnusedRodName(start cvId)
prog((name)
for(i 1 1000
;Max of 1000 attempts
sprintf(name "%s%d" start i)
when(rodIsFigNameUnused(name cvId)
return(name)
)
)
error("XXLgetRodName :: Tried 1000 times, could not get a unique
rod name.")
)
)
Is there any other elegant way of doing this?
Is it possible to implement this without using return()
regards,
Suresh
I am trying to create rod object inside a cellview. I would like to
have its name start with string ( just to be descriptive.)
Right now I am doing this way,
procedure(MYgetUnusedRodName(start cvId)
prog((name)
for(i 1 1000
;Max of 1000 attempts
sprintf(name "%s%d" start i)
when(rodIsFigNameUnused(name cvId)
return(name)
)
)
error("XXLgetRodName :: Tried 1000 times, could not get a unique
rod name.")
)
)
Is there any other elegant way of doing this?
Is it possible to implement this without using return()
regards,
Suresh