Author Topic: String Questions...  (Read 360 times)

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
String Questions...
« on: May 27, 2013, 03:29:32 am »


                
/insert        facepalm.jpg.....

I forgot the Any Number String...    like...   "*#" for example...


Secondly, could someone shoot me a custom function that can remove any spaces from a string?


Thanks for the help guys.. ':pinched:'
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
String Questions...
« Reply #1 on: May 27, 2013, 05:35:59 am »


               

_Guile wrote...

 
/insert        facepalm.jpg.....

I forgot the Any Number String...    like...   "*#" for example...


it is  "*n"



Secondly, could someone shoot me a custom function that can remove any spaces from a string?


Why not just use the one in x3_inc-Strings. 

Example: 

#include "x3_inc_string"
void main()
{
    string sSource =   " S P A C E D ";
    sSource = StringReplace( sSource, " ", "");
}
               
               

               


                     Modifié par Lightfoot8, 27 mai 2013 - 04:36 .
                     
                  


            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
String Questions...
« Reply #2 on: May 28, 2013, 12:41:31 am »


               Thanks Lightfoot8, you're a really great coder mate. =)
               
               

               


                     Modifié par _Guile, 27 mai 2013 - 11:43 .