How can I read source code generated by wizard in VFP5

How can I read source code generated by wizard in VFP5

Post by Sirius Won » Tue, 01 Apr 1997 04:00:00



Is that possibe to view or edit the code of objects, which are
generated by the form wizard in VFP5?

        It seems all the method of these objects are default. Also, I open the
class in wizstyle and do not see any code in the method.

        May anyone tell me how?

--
      ,---.__________________________         ============   .
    /'                               \     |  \        I_  O  _I_,==.:
   |   Sirius                         >----|===`------'I `---' I |  |:


   |  ,---.________________________/    (_    O    __)       \_      :
   |/'                                 (_______)          (_)

 
 
 

How can I read source code generated by wizard in VFP5

Post by Westsho » Tue, 01 Apr 1997 04:00:00


Try looking at the base classes code.  They are stored in the
c:\vfp\wizards.wizstyle.vcx class.  This is for VFP 3.0 but I assume it's
similiar for VFP 5.  You can even alter the code in the base classes if
your feeling brave.



 
 
 

1. Error in Wizard generated code

80040e14

If fNeedRecordset Then
    Set Company = Server.CreateObject("ADODB.Connection")
    Company.ConnectionTimeout = Session("Company_ConnectionTimeout")
    Company.CommandTimeout = Session("Company_CommandTimeout")
    Company.Open Session("Company_ConnectionString"),
Session("Company_RuntimeUserName"), Session("Company_RuntimePassword")
    Set cmdTemp = Server.CreateObject("ADODB.Command")
    Set rsPCompanyContact = Server.CreateObject("ADODB.Recordset")
    cmdTemp.CommandText = "SELECT ""ContactID"", ""Title"",
""Forename"", ""MiddleName"", ""Surname"", ""Salutation"",
""Position"", ""Telephone"", ""Alternate"", ""Home"", ""Mobile"",
""Pager"", ""Fax"", ""Minicom"", ""EMailWork"", ""EMailPersonal"",
""Homepage"", ""LastUsed"", ""LastContact"" FROM dbo.""Contact"""
    cmdTemp.CommandType = 1
    Set cmdTemp.ActiveConnection = Company
    rsPCompanyContact.Open cmdTemp, , 1, 3
End If

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect
syntax near 'Contact'.

/Money/PCompanyList.asp, line 299

The line is second from bottom i.e.

    rsPCompanyContact.Open cmdTemp, , 1, 3

This is the list view from the generated code - the form view gives
exactly the same error.  In the list view however I see all of the
field names in the database table (SQL Server 6.5)

Any help will be appreciated

Terry Murphy

2. Oracle nextval returned to Access97 through ODBC

3. Accessing wizard generated code

4. Approach Users Mailing List FAQ

5. Where to find information on Wizard-generated code

6. NT RAS problem

7. Form Wizard generated Code VFP3 ?

8. test

9. help--need to understand VFP3 Form Wizard generated code

10. New data form wizard source code for VB5

11. Source code for VB's Data Form Wizard

12. WWW Internet Search Wizard source code?

13. Visual Basic source-code to C++ source-code