﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Using Visual FoxPro free table with SF Controls</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 17:46:40 GMT</lastBuildDate><ttl>20</ttl><item><title>Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19480.aspx</link><description>Hi &lt;br&gt;
&lt;br&gt;
The last object I used was the BrowseDialog and sent me the next error referring to dbo not to the free table directory.&lt;br&gt;
&lt;br&gt;
SqlException&lt;br&gt;
  Invalid object name 'dbo.spmarcf0'.&lt;br&gt;
&lt;br&gt;
Source     : .Net SqlClient Data Provider&lt;br&gt;
&lt;br&gt;
Stack Trace: &lt;br&gt;
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)&lt;br&gt;
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)&lt;br&gt;
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)&lt;br&gt;
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)&lt;br&gt;
   at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()&lt;br&gt;
   at System.Data.SqlClient.SqlDataReader.get_MetaData()&lt;br&gt;
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)&lt;br&gt;
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)&lt;br&gt;
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)&lt;br&gt;
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)&lt;br&gt;
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)&lt;br&gt;
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)&lt;br&gt;
   at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)&lt;br&gt;
   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)&lt;br&gt;
   at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)&lt;br&gt;
   at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)&lt;br&gt;
   at MicroFour.StrataFrame.Data.DbDataSourceItem.GetDataTable(DbCommand Command, OnChangeEventHandler CallBack)&lt;br&gt;
   at MicroFour.StrataFrame.Data.SqlDataSourceItem.GetDataTable(DbCommand Command, OnChangeEventHandler CallBack)&lt;br&gt;
   at MicroFour.StrataFrame.Data.DbDataSourceItem.GetDataTable(QueryInformation QueryInfo, OnChangeEventHandler CallBack)&lt;br&gt;
   at MicroFour.StrataFrame.Data.DataLayer.GetDataTable(QueryInformation QueryInfo, Boolean RegisterNotification)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.FillDataTable(QueryInformation QueryInfo)&lt;br&gt;
   at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog&amp;#119;indow.Search(WhereStatementCollection WhereStatements)&lt;br&gt;
   at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog&amp;#119;indow.ExecuteSearch()&lt;br&gt;
   at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog&amp;#119;indow.ProcessCmdKey(Message&amp; msg, Keys keyData)&lt;br&gt;
   at System.Windows.Forms.Control.ProcessCmdKey(Message&amp; msg, Keys keyData)&lt;br&gt;
   at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message&amp; msg, Keys keyData)&lt;br&gt;
   at System.Windows.Forms.TextBoxBase.ProcessCmdKey(Message&amp; msg, Keys keyData)&lt;br&gt;
   at System.Windows.Forms.MaskedTextBox.ProcessCmdKey(Message&amp; msg, Keys keyData)&lt;br&gt;
   at System.Windows.Forms.Control.PreProcessMessage(Message&amp; msg)&lt;br&gt;
   at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message&amp; msg)&lt;br&gt;
   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG&amp; msg)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks SF&lt;br&gt;
&lt;br&gt;</description><pubDate>Tue, 23 Sep 2008 17:48:30 GMT</pubDate><dc:creator>Elio Reyes</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19653.aspx</link><description>Great, glad to hear that Pedro. :cool:</description><pubDate>Tue, 23 Sep 2008 17:48:30 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19652.aspx</link><description>Perfect ... all is working Excellent&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks a Lot&lt;br&gt;</description><pubDate>Tue, 23 Sep 2008 16:54:13 GMT</pubDate><dc:creator>Elio Reyes</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19651.aspx</link><description>Hey, don't worry Pedro! &lt;/P&gt;&lt;P&gt;Glad you got it going. ;)&lt;/P&gt;&lt;P&gt;Another thing, on your BuscarCigarros BrowseDialog, you may want to set the OrderBy property, since you are using an OLE DB connection.</description><pubDate>Tue, 23 Sep 2008 15:34:23 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19650.aspx</link><description>Sorry ... sorry sorry, I apologize we you, I misunderstood when you tell me to fill this property .. I put it in a wrong place.&lt;br&gt;
&lt;br&gt;
I send you a picture illustrating my mistake....&lt;br&gt;
&lt;br&gt;
I hope you can apologize me&lt;br&gt;
&lt;br&gt;
Thanks a Lot   &lt;br&gt;
&lt;br&gt;
Note: I never think is a SF error, just I don't knew where is my error.</description><pubDate>Tue, 23 Sep 2008 15:31:35 GMT</pubDate><dc:creator>Elio Reyes</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19647.aspx</link><description>Hi Pedro.&lt;/P&gt;&lt;P&gt;Open your Cigarro business object in the designer and have a look at the DataSourceKey property... you haven't set it to CigarrosII.</description><pubDate>Tue, 23 Sep 2008 15:13:28 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19643.aspx</link><description>Here's the project&lt;br&gt;
&lt;br&gt;
Thanks in advanced &lt;br&gt;</description><pubDate>Tue, 23 Sep 2008 13:04:06 GMT</pubDate><dc:creator>Elio Reyes</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19619.aspx</link><description>Just post it as an attachment.</description><pubDate>Tue, 23 Sep 2008 09:23:25 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19617.aspx</link><description>Sorry for my bad explanation, I would try to reproduce the error better, I suppose that I for better information a video is the better way.&lt;br&gt;
&lt;br&gt;
Tell me how to put it here .. o I can send you my project if you prefer.&lt;br&gt;
&lt;br&gt;
Please tell me.&lt;br&gt;
&lt;br&gt;
Thanks a Lot.</description><pubDate>Tue, 23 Sep 2008 09:14:30 GMT</pubDate><dc:creator>Elio Reyes</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19525.aspx</link><description>Pedro, I think that we are having a hard time undestanding your code as this is a very basic and simple process.&amp;nbsp; SO there is some piece of information that is being left out here which is making it difficult for us to help you diagnose your problem.&amp;nbsp; I think that this point it would be best for you to put together a simple sample reproducing your problem...and then we can go from there.</description><pubDate>Thu, 18 Sep 2008 15:36:29 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19520.aspx</link><description>No&lt;br&gt;
&lt;br&gt;
This works very nice ....&lt;br&gt;
&lt;br&gt;
If Me.Cigarro1.Seek("codmarc=" &amp; CodMarc.Text) Then&lt;br&gt;
   Me.DesMarc.Text = Me.Cigarro1.desmarc&lt;br&gt;
   Me.Refresh()&lt;br&gt;
Else&lt;br&gt;
   Me.DesMarc.Text = ""&lt;br&gt;
End If&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
But  combox, listbox, BrowDialog does not work ...&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description><pubDate>Thu, 18 Sep 2008 14:09:57 GMT</pubDate><dc:creator>Elio Reyes</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19513.aspx</link><description>In your BrowseDialog, did you set the OrderBy property?</description><pubDate>Thu, 18 Sep 2008 12:42:06 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19512.aspx</link><description>I used in that way but send me the same error, I know the connection is good, because if I use the command seek to find something, works very nice.&lt;br&gt;
&lt;br&gt;
Thanks SF</description><pubDate>Thu, 18 Sep 2008 11:50:29 GMT</pubDate><dc:creator>Elio Reyes</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19509.aspx</link><description>Hi Pedro.&lt;P&gt;Instead of using the Connection Manager, have you tried setting the data source manually, as I had showed you before?&lt;/P&gt;&lt;P&gt;[codesnippet]DataLayer.DataSources.Add(New VfpDataSourceItem("CigarrosII", "Provider=vfpoledb.1;Data Source="F:\IDBSIST\CIDAV";Collating Sequence=general;"))&lt;BR&gt;[/codesnippet]</description><pubDate>Thu, 18 Sep 2008 11:42:51 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19503.aspx</link><description>Yes, I Have</description><pubDate>Thu, 18 Sep 2008 11:18:00 GMT</pubDate><dc:creator>Elio Reyes</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19487.aspx</link><description>Do you have the DataSOurceKey on the BO set to "CigarrosII"?</description><pubDate>Wed, 17 Sep 2008 17:07:22 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19485.aspx</link><description>[b]This is the Conection creation code[/b]&lt;br&gt;
&lt;br&gt;
 ConnectionManager.AddRequiredDataSourceItem("CigarrosII", "2.-Conexión SPMARCF0", _&lt;br&gt;
            DataSourceTypeOptions.VisualFoxPro, "F:\IDBSIST\CIDAV\SPMARCF0.DBF", "Esta conexión se utiliza para las vitolas (SPMARCF0)")&lt;br&gt;</description><pubDate>Wed, 17 Sep 2008 16:50:20 GMT</pubDate><dc:creator>Elio Reyes</dc:creator></item><item><title>RE: Using Visual FoxPro free table with SF Controls</title><link>http://forum.strataframe.net/FindPost19481.aspx</link><description>Well, it thinks that you BO is a SQL database.&amp;nbsp; First, ensure that your DataSources are setup to use a VfpDataSourceItem within the SetDataSources method of the Appmain.&amp;nbsp; The BrowseDialog uses the data source to determine what type of query object to build...and it thinks that this is an SqlDataSourceItem...thus it is trying to use an SqlCommand.</description><pubDate>Wed, 17 Sep 2008 15:52:27 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>