Jump to content

VOP/VEX array query question


depelos

Recommended Posts

Hello,

I'm a bit stuck in such (i guess simple) situation:

In my test vopsop i have two inline vops - first creates simple array of integers and second tries to query individual array element.

Unfortunately - without success. It seems that only some garbage data is returned.

First inline vop code:


{
int $test_list[] = { 458, 2, 300, 4, 554455455, 11 };
}
[/CODE]

And second:

[CODE]
{
int $out = $test_list[3];
}
[/CODE]

Im attaching example file too. What i'm doing wrong here?

vop_vex_array_test.hipnc

Link to comment
Share on other sites

Guest mantragora

Check the file.

1) Don't use as output name variable that you created in inlineVOP.

2) After you created variable in first inlineVOp and send it to output, to get it in second inlineVOP use name of the input (it's name of the output of first inlineVOP) not the variable name.

vop_vex_array_test_FIX.hipnc

Edited by mantragora
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...