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
 List of Current Methods not accurate
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

downeytim
New Member

USA
4 Posts

Posted - Jan 21 2005 :  10:11:09 AM  Show Profile
Here is the code for the method causing the problem

Protected Sub NextStep(ByVal sender As Object, ByVal args As NextEventArgs)

' move to the RESULT tab
uTabImport.SelectedTab = uTabPgResult.Tab
uTabImport.SelectedTab.Enabled = True
uTabImport.Select()
_ucValidateUpload.GetData(args.InitData)

End Sub

The List of methods drop down will now contain in accurate list of the methods. The uTabImport.Select() statement seems to be causing a problem with parsing the methods.

List of methods should show this:

frmImport.New
frmImport.NextStep
frmImport.GetData
frmImport.Initialize

Here is what it actually shows.

frmImport.New
frmImport.NextStep
frmImport.NextStep.GetData
frmImport.NextStep.Initialize

If you comment out the uTabImport.Select() statement the List of Methods displays as it should.

Any ideas?

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jan 24 2005 :  1:50:59 PM  Show Profile
initially just a question. this looks like VB, something i have not used in *many* years

is there anything i need to know before trying to work out how to try and reproduce this? i don't think i even have VB installed at the moment, since we don't get a lot of bug reports with it and VAX.

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

downeytim
New Member

USA
4 Posts

Posted - Jan 24 2005 :  2:00:46 PM  Show Profile
Sorry I should have detailed this. The code is VB.Net in Visual Studio 2003.

VAX version.
VA_X.dll file version 10.1.1293.0

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jan 27 2005 :  4:46:37 PM  Show Profile
i have just installed VB .NET under .NET 2003, using VAX 1287

since i don't have any VB code lying around i created a new VB windows application. double clicking on the form gets me to the underlying code.

next i copy and pasted your method in at the bottom of the file, just above the "End Class" line. alt_m is showing me the correct list of methods for this file, with or without this line of code.

at a guess this problem is triggered by something specific in the file you are editing *sigh*

do you have the time to try the same experiment i have just described, and to see how much of the code from your file you need to insert to reproduce this problem?

if it is acceptable to share the single vb file that has this problem you could email it to me, so i can try to reproduce this effect here. once we can reproduce this on demand, presuming we can, i will raise a case for it. it is always tricky when the problem cannot easily be reproduced.

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

downeytim
New Member

USA
4 Posts

Posted - Jan 28 2005 :  08:09:30 AM  Show Profile
Here is one that creates the problem every time. It is a single line IF statement. I have written three functions, the first has the single line if statement. When you open the list of current methods drop down you see the following.

Class1.Func1
Class1.Func1.Func2
Class1.Func1.Func3

If you restructure the If statement to a multi line statement with an endif then you will see the three functions in the drop down correctly.

Here is the code to use.

Public Class Class1

Public Overridable Function Func1() As String

If 1 = 1 Then Return ""

End Function

Public Overridable Function Func2() As String

Return "String Return of Func2"
End Function

Public Overridable Function Func3() As String


Return "String Return of Func2"

End Function
End Class
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jan 29 2005 :  2:42:58 PM  Show Profile
i am seeing the same thing

case=494

thank you for producing such a clear example, it makes things a lot easier for me

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