<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Classes and Methods Usage - vb.net</title><link>https://www.aras.com/community/f/development/3945/classes-and-methods-usage---vb-net</link><description>Hello all,

Can you please tell me the steps and the syntax for creating a class that I can call from a method? this is similar to this post &amp;#160;but I am unable to make what I would expect the equivalent vb code to work.

What I have done so far is to create</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Classes and Methods Usage - vb.net</title><link>https://www.aras.com/community/thread/2072?ContentTypeID=1</link><pubDate>Thu, 04 Oct 2018 02:55:37 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:1228d9b0-cf36-44d3-b3b1-5d5b095a5a3e</guid><dc:creator>Former Member</dc:creator><description>Are there any thoughts on this?

I have been able to do the equivalent in JavaScript client side, just not able to replicate it vb server side...

Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Classes and Methods Usage - vb.net</title><link>https://www.aras.com/community/thread/2071?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 04:42:54 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:1a19d70d-5c76-4fca-a17c-bdaf80daf197</guid><dc:creator>Former Member</dc:creator><description>Thank you for your response AJ, I understand the principle of what you&amp;#39;re demonstrating.

So I changed my test program to something slightly more practical as follows (I created a github account to try and replicate your code presentation, but failed to find where I can actually write the code, but that&amp;#39;s for another time!) :

dim newPart as item
dim test as new Foo

&amp;#39;newPart = Me.getInnovator.newResult(test.BlankPart)
newPart = test.BlankPart

End Sub

Public Class Foo

Function BlankPart() as item

dim inv as innovator = me.GetInnovator
dim itemToReturn as item = inv.newitem(&amp;quot;Part&amp;quot;, get)

Return itemToReturn

End Function

End Class

Function helper() as string
Return &amp;quot;test&amp;quot;

It errored when compiled though. (as another aside the error does not show what the issue, but triggers a pop up where it can&amp;#39;t find a dll file whose names changes all the time, so apologies with being vague with the error response)

By commenting out the lines to find out where it breaks, if I simply do this:

dim newPart as item &amp;#39;--No problems

end sub &amp;#39;--This causes a problem

So there must be something not set or defined in the application...? or what have I missed?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>