I know this sounds strange for you, as a vb programmer and developer, this functions makes me so mad because i never know when this works or not.
Let put this on parts:
- Trim : removes empaty spaces or white spaces in a String and return that already removed.
SO if i code like this:
Dim strMEM() As String = txtMemArray.Lines For Each s In strMEM '* s=string ; strMEM= String array s = Trim(s) '* this should return every string in the string array without spaces and it doesnt :s compiler.PutInMem(BP, s) '* you don't need to know but this str is copied to BP addrress (base pointer) of the memory that I'm simulating ;)/>/> Next
So, any ideas why? in my code i use a lot of this, but almost all the times it works, and now im stuck on this part.
Where "Trim" functions actualy works and how?
dim str As String = "Hello I'm From Portugal " msgbox(Trim(str)) '* the msgbox should be like: "HelloI'mFromPortugal" '* and it works... easy code xD
thank you ! />/>
This post has been edited by b mitsai: 04 July 2013 - 10:31 AM