Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Create Method suggesting wrong var types
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
1767 Posts

Posted - Feb 09 2020 :  08:00:42 AM  Show Profile  Reply with Quote
In the method below, all parameters are int (as correctly suggested by VS), also note the duplicate variable name suggested.







feline
Whole Tomato Software

United Kingdom
16353 Posts

Posted - Feb 10 2020 :  07:36:14 AM  Show Profile  Reply with Quote
Do you still have this example, or one like it, on hand?

If so, can you please place the caret into "ID" for the first two parameters, and see what VA is showing in it's Context and Definition fields. The type suggested should match the type VA thinks these parameters have, so this is a sensible place to start trying to understand the problem.

zen is the art of being at one with the two'ness
Go to Top of Page

Uniwares
Tomato Guru

Portugal
1767 Posts

Posted - Feb 10 2020 :  07:50:48 AM  Show Profile  Reply with Quote
Both perfectly correct. So VA obviously knows the type. Might it be because the type is defined in a partial class which is distributed over 3 files? Its a auto generated class from the database.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
16353 Posts

Posted - Feb 11 2020 :  2:29:08 PM  Show Profile  Reply with Quote
Is there any chance of getting a copy of just these 3 files, for testing purposes only? I appreciate this is often not possible, but worth asking on the off chance. I can then see if I can reproduce this odd behaviour here with the files.

If so, please send me the files via email:

support@wholetomato.com

including this thread ID or URL in the description, so we can match it up.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000