 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; Public Function</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/public-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 15:43:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Conversion of function VB into VB.NET</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/conversion-of-function-vb-into-vbnet/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/conversion-of-function-vb-into-vbnet/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 08:22:48 +0000</pubDate>
		<dc:creator>9322319124</dc:creator>
				<category><![CDATA[Public Function]]></category>
		<category><![CDATA[Source code conversion]]></category>
		<category><![CDATA[VB Functions]]></category>
		<category><![CDATA[VB migration]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Visual Basic .NET]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[how i can convert below vb function into vb.net Public Function FChkUserLoggedIn(LoginId As Long) As Boolean Dim rs As ADODB.RecordSet, strsql As String Set rs = New ADODB.RecordSet &#8216;strSql = &#8220;select msession from log where msession in (select msession from log where loginid = &#8221; &#038; LoginId &#038; &#8221; and form = &#8216;menu&#8217; and active) [...]]]></description>
				<content:encoded><![CDATA[<p>how i can convert below vb function into vb.net<br />
Public Function FChkUserLoggedIn(LoginId As Long) As Boolean<br />
    Dim rs As ADODB.RecordSet, strsql As String<br />
    Set rs = New ADODB.RecordSet<br />
    &#8216;strSql = &#8220;select msession from log where msession in (select msession from log where loginid = &#8221; &#038; LoginId &#038; &#8221; and form = &#8216;menu&#8217; and active) and msession not in (select msession from log where loginid = &#8221; &#038; LoginId &#038; &#8221; and form = &#8216;menu&#8217; and not active)&#8221;<br />
    strsql = &#8220;select * from log where form=&#8217;menu&#8217; and active and loginid = &#8221; &#038; LoginId<br />
    If rs.State = 1 Then rs.Close<br />
    rs.open strsql, cnComp, adOpenStatic, adLockReadOnly<br />
        If rs.EOF Then<br />
            FChkUserLoggedIn = False<br />
        Else<br />
            FChkUserLoggedIn = True<br />
        End If<br />
    If rs.State = 1 Then rs.Close<br />
    Set rs = Nothing<br />
End Function</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/conversion-of-function-vb-into-vbnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/14 queries in 0.017 seconds using memcached
Object Caching 328/345 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 22:07:09 -->