Variable order

Status
Not open for further replies.

SWSDEV

Forum User
Joined
Feb 23, 2008
Messages
256
Reaction score
0
When passing in variables to a .net library, how does it determine the order of the variables?

I have 5 variables in a code component, and I have them in the same order in my vad component and with the same names, but they're getting passed in to the function in a different order.
 
Looks like variables are actually passed in, inreverse order.
 
Hi,

Variables are passed to the library in the same order specified in the configuration of the component. Can you send me the callflow file to review it? I have tested this here and works, so maybe there is something wrong in the configuration...

Thanks,
 
What I did was I attached the Visual Studio debugger to the IIS worker process and the variables always came in the opposite order that they were specified in the VAD designer.

However it only did this for is one component, which is odd.

I will send you the files so you can take a look.

Should I just attach it here to a private message?
 
Yes, please attach it to a private message, so I can take a look at it.
Also, can you send me the generated ASPX output for the component? That way I can see if variable order is right in code, or if it has been changed there...
Thanks.
 
OK, I will get this to you later this evening.
 
Hi Shahzad,

I've been looking at the files you sent me, and doing some testing with the VAD, and it seems that variables are passed to the external component in alphabetical order. This is a bug in the VAD that we'll fix as soon as possible.

Until we release this fix, something you can do to avoid having this problem is renaming the parameters, for example adding a prefix in alphabetical order ("p01_", "p02_", etc.). This way, parameters will be passed in the order you need.

Thanks for reporting this error, we'll work on a fix and maybe in a couple of weeks we can release a new version...
 
Thank you
 
Status
Not open for further replies.

Forum statistics

Threads
112,320
Messages
591,865
Members
165,463
Latest member
ICTSupport@bedfordgirlssc