Post Reply 
[PSP] [Sourcecode] RCO Editor v1.14d
Author Message
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #25
RE: [PSP] [Sourcecode] RCO Editor v1.14d
Ac_K Wrote:Your fonction return a 0x00 at the end of the string...
Strings typically end with a null byte.  Maybe my thing goes over one character...  should just change the GetTextData() function then.

Ac_K Wrote:So, I Resolve my problem by the simple function :

Code:
Left(GetTextData(intII, cboTextLang.ListIndex), Len(GetTextData(intII, cboTextLang.ListIndex)) - 1)

I don't recommend that, primarily because you're calling GetTextData() twice.  Something like this would work better:

Code:
Dim strTemp As String
strTemp = GetTextData(intII, cboTextLang.ListIndex)
Left$(strTemp, Len(strTemp) - 1)

Or, probably better:

Code:
Replace$(GetTextData(intII, cboTextLang.ListIndex), vbNullChar, vbNullString)


Good luck!

12/06/2007 09:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [PSP] [Sourcecode] RCO Editor v1.14d - ZiNgA BuRgA - 12/06/2007 09:09 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: