Jump to content

A string of characters


Recommended Posts

my mistake...

 

s@name = concat("s", itoa(@ptnum));

And one more question.

How can i slice the spring use VEX.

If i have a string attribute "piece88", how can i get the 88 .

 

Is any more comprehensive help page can i get some useful VEX expression.

Sometimes i was clueless when meet new problems.

Link to comment
Share on other sites

well.. you can try split function, but i`m not sure it will work:

  1. string[] split(string s)

  2. string[] split(string s, string separators)

 

 

try something like this(I did not tested it):

string sep = "piece";
string intValue[] = split("piece88",sep);
int id = atoi(intValue[0]);
Edited by rayman
Link to comment
Share on other sites

Is any more comprehensive help page can i get some useful VEX expression.

Sometimes i was clueless when meet new problems.

http://www.sidefx.com/docs/houdini13.0/vex/functions/

 

Just use doc page and use find command on your browser.

For example type "string" to search for string related functions.

Edited by rayman
  • Like 1
Link to comment
Share on other sites

 

well.. you can try split function, but i`m not sure it will work:

  1. string[] split(string s)

  2. string[] split(string s, string separators)

 

 

try something like this(I did not tested it):

string sep = "piece";

string intValue[] = split("piece88",sep);

int id = atoi(intValue[0]);

Thanks, i will have a try soon.

 

 

 

 

http://www.sidefx.com/docs/houdini13.0/vex/functions/

 

Just use doc page and use find command on your browser.

For example type "string" to search for string related functions.

 

Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...