Unable to execute function.
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 47
- Joined: Wed Apr 12, 2006 12:13 pm
Unable to execute function.
Hi All,
This is my first post. I am new to DS. I have the following function.
Iconv(Trim(UpCase(Input.Link)),"MY")
Now it is good when input is just character. But it doesn't work when I have any alpha character in there.
Also anyone can suggest any idea to convert the link character by character.
Thanks.
Sylvan
This is my first post. I am new to DS. I have the following function.
Iconv(Trim(UpCase(Input.Link)),"MY")
Now it is good when input is just character. But it doesn't work when I have any alpha character in there.
Also anyone can suggest any idea to convert the link character by character.
Thanks.
Sylvan
sylvan rydes
Welcome to DSXchange, Sylvan.
Could you tell us what the data is that comes in and what you want output? The conversion looks a bit too complicated.
Could you tell us what the data is that comes in and what you want output? The conversion looks a bit too complicated.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 47
- Joined: Wed Apr 12, 2006 12:13 pm
Hi Arnd,
Thank you. Well as I have said the function already. The link value may look like V@O.45. Now I need to convert it character by character to ASCII. So it should look like 866470465253. Well I am trying otherwise look for some other code generation.
It would be great if you caould write the function.
Sylvan
Thank you. Well as I have said the function already. The link value may look like V@O.45. Now I need to convert it character by character to ASCII. So it should look like 866470465253. Well I am trying otherwise look for some other code generation.
It would be great if you caould write the function.
Sylvan
sylvan rydes
It is not clear to me from what format to what format are you trying to convert. But the eg that you gave. That tells me that your changing from ascii to its code value.
User the seq() function. That will get you what you want.
User the seq() function. That will get you what you want.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 47
- Joined: Wed Apr 12, 2006 12:13 pm
No, write a DS function to do the work on a passed string. Something like this should work:
Code: Select all
StrLen=LEN(Arg1)
Ans = ""
For i=1 to StrLen
Ans := SEQ(Arg1[i,1])
Next i
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Write a routine
I played with it , heres what i got
This should work
I played with it , heres what i got
Code: Select all
x = ''
LnX = 0
Val=''
Curr = ''
num = 0
x = trimB(Arg1)
LnX = Len(x)
For n = 1 To LnX
Curr = x[n,1]
Val := Seq(Curr)
Next n
Ans = Val
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 47
- Joined: Wed Apr 12, 2006 12:13 pm