Tyr Posted November 22, 2008 Author Share Posted November 22, 2008 Hi all :)I found it always so annoying that when peoples make VERY long sentences in the game that the chat bubbles where "bugged" (not really but ya) and that the text took in a huge place on the map…Suddenly i had a "perfect" idea to fix this... when the text is longer then 17 chars, delete ALL the chars after the 17 and add "..." (of course only on the map, not in the textbox)so what i basically did was this```Sub MapMsg2(ByVal MapNum As Long, ByVal Msg As String, ByVal Index As Long) If Len(Msg) > 17 Then``` WHAT NOW``` End If Call SendDataToMap(MapNum, "MAPMSG2" & SEP_CHAR & Msg & SEP_CHAR & Index & END_CHAR)End Sub```so when the text is longer then 17 then it should happen, but i have no idea to do it. I know how to add the "…" **but i don't know how to remove all the characters BEHIND 17 and to keep the rest**you guys got any idea? would be very helpful! thx.- Tyr Link to comment Share on other sites More sharing options...
Robin Posted November 23, 2008 Share Posted November 23, 2008 ```If Len(msg) > 17 thenmsg = mid(msg, 1, 17)end if``` Link to comment Share on other sites More sharing options...
Tyr Posted November 23, 2008 Author Share Posted November 23, 2008 Thanks alot robin :)i just added Msg = msg + " …" and its perfectly what i wanted ^^- Tyr Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now