Passing Arrays to a .NET COM object from Visual FoxPro

Posted by: Rick Strahls WebLog, on 07 Jun 2005 | View original | Bookmarked: 0 time(s)

A number of people have asked me about passing arrays to .NET functions from Visual FoxPro applications. The problem here is that Visual FoxPro arrays are not formatted the right way to just be called to a .NET COM object by default. VFP arrays are 1 based while in general COM objects expect arrays to be 0 based so you need to fix up arrays to make this happen. .NET arrays are always 0 based unless explicitly declared otherwise.   Assume you have a method in a .NET COM object that looks like...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: VB.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1848 | Hits: 211

Similar Posts

  • Welcome the WebUI Test Studio v2.0! more
  • Introducing Recurring Appointments for Web.UI Scheduler ASP.NET AJAX more
  • Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series) more
  • Video: CodeRush Metric Shader Plugin more
  • What is Softwaremaker doing now ? more
  • Come meet the new MSDN more
  • My ASP.NET MVC stack and why I chosen it more
  • My History of Visual Studio (Part 6) more
  • The Telerik CAB Enabling Kit and SCSF - Tutorial 5: The RadPanelBar UIExtensionSite more
  • Save 30% - 70% person-month more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD