Aller au contenu

Photo

String Questions...


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
_Guile

_Guile
  • Members
  • 685 messages
 
/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:

#2
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages

_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 .


#3
_Guile

_Guile
  • Members
  • 685 messages
Thanks Lightfoot8, you're a really great coder mate. =)

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