Jump to content

turn a int into a string?


meshsmooth

Recommended Posts

ok well i whacked this code in a OT and an inline vop

re wrote it to be

input: intVal

output: intString

$intString = sprintf("vexGroup_%g" ,$intVal);

Now it works to a point.... it works displaying the new string with the number on the end if the number doesn

Link to comment
Share on other sites

In an inline vop I have this code

$intName = sprintf("intString_%g", $sum);

Hooked up to a print and all it outputs is non dynamic numbers

if I plug in "ptnum" it returns

intString_0
intString_0
intString_0
intString_0
intString_0
intString_0
intString_0

So is this as good as it gets?

I have added an example file

hopefully we can find an answer, or may label this as a bug.

vexString.zip

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