ctarton1
1st April 2007, 23:24
The configurator define the features (f_feature) as not external variables. I have try to use the function get.var(pid, "f_feature", variable) but does not work.
Is possible to have the value of a variable not defined as external?

Thanks in advance.

george7a
3rd April 2007, 15:16
Hi,

When you use get.var the variable must be declared as extern. Check the example in the following link:
http://www.baanboard.com/programmers_manual_baanerp_help_functions_variables_interprocess_transfer_get_var

I hope it helps,

- George

ctarton1
3rd April 2007, 16:08
Hi,

I was changed in the script of session tipcf2201m000 the definition of the variables of the features to extern. With this solution works fine.
Please, anybody knows if that change could give me bad consecuences?

dilipk.pandey
6th April 2007, 12:03
Dear Friend,

Don't worry it will work fine, but its better to check the initialization of that variable once...where and whether its initialzed or not else it may lead to unwanted results because when you declare a variable as external then You can use them in all functions that occur after the variable declaration, and also in other programs (for example, forms, reports, and runtime expressions),so you should be aware of where the value that particular variable is being used or modified...(but remember that if a local variable has the same name as an external variable, the local variable is used within the function. The external variable is not affected.)...

All the very best!!!
Regards,
Dilip.

Andreas
11th April 2007, 10:28
The configurator define the features (f_feature) as not external variables. I have try to use the function get.var(pid, "f_feature", variable) but does not work.
Is possible to have the value of a variable not defined as external?

If you are already using a dll, then why don't just read the pcf tables here. By doing it this way you don't have to modify the original code.

regards,
Andreas