PDA

View Full Version : finding an unknown part of the name, etc. how can I do?


yunusbbayram
09-11-2011, 09:04 AM
secimname = $'Kontrol_yüz kontrol textsR001'.name as
stringstream
secimisim=#()
count=1

while
not eof secimname do
(
secimisim[count]=readchar
secimname
count +=1
)
atoplam
= secimisim.count -
22
askon=#()
askon[atoplam+1]=(secimisim[secimisim.count-2]
as integer)
askon[atoplam+2]=(secimisim[secimisim.count-1] as
integer)
askon[atoplam+3]=(secimisim[secimisim.count] as
integer)
for o in 1 to atoplam
do
(
askon[o]=(secimisim[o] as
string)
)

askontoplam=for i in 1
to atoplam collect askon[i] as
string

askona = ((askontoplam as
string)+"_yüz kontrol textsR" +( askon[atoplam+1]as string +askon[atoplam+2] as
string+askon[atoplam+3] as string))
askona


output : "#("K", "o", "n", "t", "r", "o", "l")_yüz kontrol textsR001"
but I want to like it: "Kontrol_yüz kontrol textsR001"

lo
09-11-2011, 10:14 AM
could you explain again what you are trying to do? which part of the string do you want to return?

yunusbbayram
09-11-2011, 11:51 AM
askontoplam array is not in this way: #("K", "o", "n", "t", "r", "o", "l")
I want to print the askontoplam array in this way: "Kontrol"

lo
09-11-2011, 12:11 PM
arr = #("W","o","r","d")
str = ""
for char in arr do str+=char
print str

You mean like this?

CGTalk Moderation
09-11-2011, 12:11 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.