Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.Net 2.0 Slower than Foxpro
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01080435
Message ID:
01082156
Views:
20
I wanted to point out one thing from the .net code


Sub LoadMemberData(ByVal Memberid As Integer)
Me.FormEditMode = enuFormMode.EditMode

Dim oMember As DataRow() = Me.oMemberData.Tables("members").Select("memberid = " + Memberid.ToString)
If oMember.Length > 0 Then
Me.txtMemberID.Text = CStr(oMember(0).Item("memberid"))
Me.txtMemberName.Text = oMember(0).Item("membername")
Me.ddlCountry.SelectedValue = oMember(0).Item("countryid")
Me.txtNotes.Text = oMember(0).Item("MemberNote")
End If
End Sub

This code selects the member data from the local data store. The .Select() function gives devlopers the ability to subselect records from a datatable.
This is how I have implemented the equiv of seek. Even the bruteforce way of iterating through the records would be just as fast.
Rod Paddock
Editor in Chief CoDe Magazine
President Dash Point Software, Inc.
VP Red Matrix Technologies,Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform