String manipulation

Guest
All,

I am in the process of making a skill program(snippet of code below)
and realized I need to take the instance from schematic, such as I15
(letter i15) and add |I15(pipe) in front of it. Below the variable
EFinstance is used. How do take, in the example "I15" and add the
pipe, "|I15"?

Thank you in advance,
Eric



procedure(EFCreateNetForm()

let((EFNetsBox EFTermsOrNet )

cv=geGetEditCellView()
EFNet_list=nil
when(cv
foreach( inst cv~>instances
EFInstance=inst~>name
EFCellname=inst~>master~>cellName
foreach( instTerm inst~>instTerms
Term=instTerm~>name
Net=instTerm~>net~>name
printf(EFInstance)
printf(".")
printf(EFCellname)
printf(".")
printf(Term)
printf(" - ")
printf(Net)
printf("\n")
EFNet_list=append(EFNet_list list(strcat(EFInstance "."
EFCellname "." Term " - " Net )))
);foreach
);foreach
);when
t
);let

;sort the output
EFNet_list=sort(EFNet_list nil)
 

Welcome to EDABoard.com

Sponsor

Back
Top