From c646cd38cc21f4b74f191e648aa6dc47612c5c37 Mon Sep 17 00:00:00 2001 From: Lutz Date: Fri, 24 Jun 2022 10:20:27 +0200 Subject: [PATCH 01/20] ControlSource property fixed #1 --- .../dv_foxhelp/html/76c0d810-a6e4-4076-aa91-0763a6dfe03b.htm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/dv_foxhelp/html/76c0d810-a6e4-4076-aa91-0763a6dfe03b.htm b/sources/dv_foxhelp/html/76c0d810-a6e4-4076-aa91-0763a6dfe03b.htm index 0edaf7a..4139d41 100644 --- a/sources/dv_foxhelp/html/76c0d810-a6e4-4076-aa91-0763a6dfe03b.htm +++ b/sources/dv_foxhelp/html/76c0d810-a6e4-4076-aa91-0763a6dfe03b.htm @@ -120,6 +120,8 @@

For TextBox controls, cName is typically a field.

In a Grid control, if you do not specify a ControlSource setting for a column, the column displays the next available undisplayed field of the grid's record source.

If a Column's Bound property is set to True (.T.), the Column's ControlSource property setting applies to the column and any controls contained in it. If you attempt to set the contained control's ControlSource property, an error occurs. If a Column's Bound property is set to False (.F.), you can set the ControlSource property of a contained control directly. If you subsequently set the ControlSource setting of the Column, it overrides the ControlSource setting of the contained control.

+

The maximum length of the value is 255 characters.

+

Expand imageSee Also

Restricted Visual FoxPro Files

Visual FoxPro installs files on your computer that are restricted and cannot be reproduced or distributed, including:

@@ -262,8 +262,6 @@

Restricted Visual FoxPro Features

Distributable Visual FoxPro Files

Pursuant to the Microsoft License Agreement you received with this product, you must distribute files in conjunction with a corresponding application. The following guidelines apply to distributable files.

@@ -293,7 +291,7 @@

ActiveX Controls

Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08
Send feedback on this topic to the VFPX Help file project team.
-2009-2017 Placed under Creative Commons licensing by Microsoft Corporation. +2009-2022 Placed under Creative Commons licensing by Microsoft Corporation.
From b422e4d0fd2da4def3bd30fb4327019e0ea996c5 Mon Sep 17 00:00:00 2001 From: Lutz Date: Fri, 24 Jun 2022 12:16:07 +0200 Subject: [PATCH 05/20] TTOC() SET SECONDS (etc) vs TTOC() / DTOC() working #9 TTOC() example fixing #23 --- .../2854910f-6bc3-40a8-a32d-ad799b045205.htm | 38 ++++++++++++++++--- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/sources/dv_foxhelp/html/2854910f-6bc3-40a8-a32d-ad799b045205.htm b/sources/dv_foxhelp/html/2854910f-6bc3-40a8-a32d-ad799b045205.htm index 1ee9ff9..7ae74e1 100644 --- a/sources/dv_foxhelp/html/2854910f-6bc3-40a8-a32d-ad799b045205.htm +++ b/sources/dv_foxhelp/html/2854910f-6bc3-40a8-a32d-ad799b045205.htm @@ -112,15 +112,32 @@

Specifies a DateTime expression to convert into a character string.

If tExpression contains only a time, Visual FoxPro adds the default date of 12/30/1899 to tExpression. If tExpression contains only a date, Visual FoxPro adds a default time of 12:00:00 AM (if SET HOURS is 12) or 00:00:00 (if SET HOURS is 24) to tExpression to produce a valid DateTime value.

+
No second parameter
+

Returns tExpression as a character string in a (general) date format respecting the SET commands dealing with date and time, just like the output of ?DATETIME().

+

For more information, see + SET CENTURY, + SET DATE, + SET HOURS, + SET MARK TO, + SET SECONDS and + SET SYSFORMATS.

1
-

Returns tExpression as a character string in a format suitable for indexing. The character string returned has a 14-character format, yyyymmddhhmmss, that is not affected by the SET CENTURY, the SET HOURS, or SET SECONDS commands. For more information, see SET CENTURY, SET HOURS, and SET SECONDS.

+

Returns tExpression as a character string in a format suitable for indexing. The character string returned has a 14-character format, yyyymmddhhmmss, that is not affected by the SET CENTURY, the SET HOURS, or SET SECONDS commands.

+

For more information, see + SET CENTURY, + SET HOURS,and + SET SECONDS.

2

Returns tExpression as a character string containing only the time portion of tExpression.

-

To control whether to include the seconds of the time portion in the character string, set the SET SECONDS and SET DATE commands. The SET HOURS command determines if AM or PM is appended to the time portion returned.

-

For more information, see SET DATE and SET HOURS.

+

To control whether to include the seconds of the time portion in the character string, set the SET SECONDS command.

+

The SET HOURS command determines if AM or PM is appended to the time portion

returned.

+

For more information, see + SET DATE and + SET HOURS.

NoteNote

If SET DATE is set to LONG or SHORT, the format of the time setting in the Windows Control Panel determines the format of the character string.

+
3

Returns tExpression as a character string with the XML DateTime format. The character string returned has a 19-character yyyy-mm-ddThh:mm:ss format that is not affected by the settings of the SET CENTURY, SET HOURS, or SET SECONDS commands.

@@ -139,14 +156,25 @@

Expand imageExample

Expand imageSee Also

+

Expand imageSee Also

@@ -186,7 +186,7 @@

Other Resources

Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08
Send feedback on this topic to the VFPX Help file project team.
-2009-2017 Placed under Creative Commons licensing by Microsoft Corporation. +2009-2022 Placed under Creative Commons licensing by Microsoft Corporation. From 16ee5359fd8b6e3e34cc150aadad865f86f4c843 Mon Sep 17 00:00:00 2001 From: Lutz Date: Fri, 24 Jun 2022 12:49:11 +0200 Subject: [PATCH 07/20] Add Method (Collection Class) - GetKey fixed #10 --- .../html/4e2a6885-35a8-405b-ad03-c8ebac844f57.htm | 12 ++++++------ .../html/ae38d57a-8fb2-42e2-be17-bdddb8e732da.htm | 12 +++++++++--- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/sources/dv_foxhelp/html/4e2a6885-35a8-405b-ad03-c8ebac844f57.htm b/sources/dv_foxhelp/html/4e2a6885-35a8-405b-ad03-c8ebac844f57.htm index 6049d5c..0a5f0e0 100644 --- a/sources/dv_foxhelp/html/4e2a6885-35a8-405b-ad03-c8ebac844f57.htm +++ b/sources/dv_foxhelp/html/4e2a6885-35a8-405b-ad03-c8ebac844f57.htm @@ -1,4 +1,4 @@ - + @@ -74,7 +74,7 @@ - See Also  + See Also  Example @@ -91,7 +91,7 @@  
+   @@ -162,11 +162,11 @@

 CopyCode imageCopy Code
RETURN DODEFAULT( eIndex )
+
 CopyCode imageCopy Code
RETURN DODEFAULT( eIndex )

If you do not want to return the value, use the RETURN command without the DODEFAULT() function.

  • To determine if keys were specified when items were added to the collection, you can use the statement GetKey(1) and the EMPTY() function to check for an empty return value as follows:

    -
     CopyCode imageCopy Code
    ? !EMPTY(Collection.GetKey(1))
    +
     CopyCode imageCopy Code
    ? !EMPTY(Collection.GetKey(1))
  • To derive the index or key from an item in a collection from within a FOR EACH loop, use a normal FOR loop instead of a FOR EACH loop.

  • @@ -184,7 +184,7 @@

     CopyCode imageCopy Code
    CLEAR
    +    
     CopyCode imageCopy Code
    CLEAR
     LOCAL oItems AS Collection
     oItems = NEWOBJECT("Collection")
     oItems.Add("Daffodils", "flower2")
    diff --git a/sources/dv_foxhelp/html/ae38d57a-8fb2-42e2-be17-bdddb8e732da.htm b/sources/dv_foxhelp/html/ae38d57a-8fb2-42e2-be17-bdddb8e732da.htm
    index f035413..774019d 100644
    --- a/sources/dv_foxhelp/html/ae38d57a-8fb2-42e2-be17-bdddb8e732da.htm
    +++ b/sources/dv_foxhelp/html/ae38d57a-8fb2-42e2-be17-bdddb8e732da.htm
    @@ -118,7 +118,7 @@
               

    Specifies an optional, unique, alphanumeric (character type) expression that represents a key string, instead of a positional index, that can be used to access a member of the collection.

    For collections using keys, cKey is a case-sensitive parameter and cannot be empty or have a null value (.NULL.).

    Either all items added to the collection must have the cKey parameter specified for them or not specified because of performance reasons. The first item added determines the behavior for the collection. You can test for the presence of keys in a collection by using the following code:

    -

    GetKey(1)

    +

    Collection.GetKey(cKey)

    If the key already exists for a member in the collection, an error occurs. However, because cKey is case-sensitive, no duplication error occurs if the same keys with different case are added. A key includes any trailing spaces present in cKey.

    [, [ eBefore|, eAfter]]

    Specifies an optional expression that represents a position where a new member is to be inserted before or after another item in the collection.

    @@ -185,7 +185,13 @@

    -

    Expand imageSee Also

    +

    Expand imageSee Also

    Parameters

    ClassName @@ -122,6 +122,7 @@

    If you omit AS cBaseClassName, the class definition is based on the Visual FoxPro FormSet base class.

    FROM ClassLibraryName2

    Specifies the name of the .vcx visual class library containing the user-defined class specified with cBaseClassName.

    +
    METHOD MethodName

    Specifies an event or method for which the Code window is opened in the Class Designer. The METHOD clause makes it possible for you to immediately begin editing event or method code in the Class Designer.

    @@ -129,6 +130,12 @@

     CopyCode imageCopy Code
    MODIFY CLASS MyClass OF MyClassLibrary METHOD txtFirstName.Click

    If you only include an event or method name in the METHOD clause, the Code window is opened for the class's event or method. For example, to immediately edit the Click event code for a class named MyClass in a visual class library named MyClassLibrary, use the following command:

     CopyCode imageCopy Code
    MODIFY CLASS MyClass OF MyClassLibrary METHOD Click
    + +
    METHOD MethodName, Line_No
    +

    Opens the method at line number Line_No.

    +

    If no number is given, the last postion determined from ressource, or line 1.

    +

    A number greater then the last line goes to the last line of the method.

    +
    NOWAIT

    Continues program execution after the Class Designer is opened. The program doesn't wait for the Class Designer to be closed, but continues execution on the program line immediately following the line that contains MODIFY CLASS NOWAIT. If you omit NOWAIT when MODIFY CLASS is issued in a program, the Class Designer is opened and program execution pauses until the Class Designer is closed.

    NOWAIT is effective only from within a program. It has no effect on MODIFY CLASS when issued from the Command window. If NOWAIT is included with the METHOD clause, be sure to place NOWAIT before the METHOD clause or NOWAIT will be ignored.

    @@ -152,7 +159,7 @@

    Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08
    Send feedback on this topic to the VFPX Help file project team.
    -2009-2017 Placed under Creative Commons licensing by Microsoft Corporation. +2009-2022 Placed under Creative Commons licensing by Microsoft Corporation. From 7977f6f6c0e0b2039f7de0c663691b09e66695b4 Mon Sep 17 00:00:00 2001 From: Lutz Date: Fri, 24 Jun 2022 14:28:30 +0200 Subject: [PATCH 10/20] SYS(2014) - File search fixed #13 --- .../89cb7df0-784b-4675-95f8-76e51cd20a61.htm | 30 +++++++++++++++++-- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/sources/dv_foxhelp/html/89cb7df0-784b-4675-95f8-76e51cd20a61.htm b/sources/dv_foxhelp/html/89cb7df0-784b-4675-95f8-76e51cd20a61.htm index 4de83b4..1d6912d 100644 --- a/sources/dv_foxhelp/html/89cb7df0-784b-4675-95f8-76e51cd20a61.htm +++ b/sources/dv_foxhelp/html/89cb7df0-784b-4675-95f8-76e51cd20a61.htm @@ -123,9 +123,33 @@

    Expand imageRemarks

    Expand imageSee Also

    +

    SYS(2014) is in some cases respecting the internal search order of VFP.

    + +

    The following example shows the how SET PATH TO works with SYS(2014)

    + +
     CopyCode imageCopy Code
    clear
    +Mkdir  C:\MyDir1
    +Mkdir  C:\MyDir2
    +
    +Set Path To C:\MyDir1
    +Cd C:\MyDir2
    +
    +Strtofile('','C:\MyDir1\Text1.txt')
    +
    +Strtofile('','C:\MyDir2\A.txt')
    +Strtofile('','C:\MyDir2\Text2.txt')
    +
    +*file does exist: 
    +?Sys(2014,'Text2.txt','C:\MyDir2\A.txt')	&& Output: TEXT2.TXT
    +*file does not exist: 
    +?Sys(2014,'Text3.txt','C:\MyDir2\A.txt')	&& Output: TEXT3.TXT
    +*will find Text1.txt along the path
    +?Sys(2014,'Text1.txt','C:\MyDir2\A.txt')	&& Output: ..\MYDIR1\X\TEXT1.TXT
    + + +

    Expand imageSee Also

    cDelimiters
    -

    Optional. Specifies one or more optional characters used to separate words in cString. The default delimiters are space, tab, carriage return, and line feed. Note that GetWordNum( ) uses each of the characters in cDelimiters as individual delimiters, not the entire string as a single delimiter.

    +

    Optional. Specifies one or more optional characters used to separate words in cString. The default delimiters are space, tab, and line feed.

    +

    Note that GetWordNum( ) uses each of the characters in cDelimiters as individual delimiters, not the entire string as a single delimiter.

    +

    Note, that carriage return is not a default delimiter.

    Expand imageReturn Value

    diff --git a/sources/dv_foxhelp/html/71e9ccd9-930a-48f8-90d2-44df34ad4c54.htm b/sources/dv_foxhelp/html/71e9ccd9-930a-48f8-90d2-44df34ad4c54.htm index 1dd093d..dd1d32d 100644 --- a/sources/dv_foxhelp/html/71e9ccd9-930a-48f8-90d2-44df34ad4c54.htm +++ b/sources/dv_foxhelp/html/71e9ccd9-930a-48f8-90d2-44df34ad4c54.htm @@ -114,7 +114,9 @@
    cDelimiters
    -

    Optional. Specifies one or more optional characters used to separate words in cString. The default delimiters are space, tab, carriage return, and line feed. Note that GetWordCount( ) uses each of the characters in cDelimiters as individual delimiters, not the entire string as a single delimiter.

    +

    Optional. Specifies one or more optional characters used to separate words in cString. The default delimiters are space, tab, and line feed.

    +

    Note that GetWordCount( ) uses each of the characters in cDelimiters as individual delimiters, not the entire string as a single delimiter.

    +

    Note, that carriage return is not a default delimiter.

    Expand imageReturn Value

    From 97bbc2b850d902ecb7246458bba7c7fea6969651 Mon Sep 17 00:00:00 2001 From: Lutz Date: Fri, 24 Jun 2022 14:50:11 +0200 Subject: [PATCH 14/20] SCATTER NAME fixed #20 --- .../dv_foxhelp/html/e5d1e608-a184-4cfb-8a06-f83ab8a6c50c.htm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/dv_foxhelp/html/e5d1e608-a184-4cfb-8a06-f83ab8a6c50c.htm b/sources/dv_foxhelp/html/e5d1e608-a184-4cfb-8a06-f83ab8a6c50c.htm index 0684c28..f808874 100644 --- a/sources/dv_foxhelp/html/e5d1e608-a184-4cfb-8a06-f83ab8a6c50c.htm +++ b/sources/dv_foxhelp/html/e5d1e608-a184-4cfb-8a06-f83ab8a6c50c.htm @@ -158,7 +158,7 @@

     CopyCode imageCopy Code
    USE Customer
     SCATTER NAME Customer
     ? Customer.Company  && Returns the table value
    @@ -212,7 +212,7 @@ 

    Example 3

    Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08
    Send feedback on this topic to the VFPX Help file project team.
    -2009-2017 Placed under Creative Commons licensing by Microsoft Corporation. +2009-2022 Placed under Creative Commons licensing by Microsoft Corporation.
    From 4c344b379b64bd6eb1cb7cd2c90f3523f42f0406 Mon Sep 17 00:00:00 2001 From: Lutz Date: Fri, 24 Jun 2022 14:58:17 +0200 Subject: [PATCH 15/20] ERROR 1545 fixed #22 --- .../dv_foxhelp/html/ea2e9f15-b24a-45ab-96da-decf3a1ba6c1.htm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/dv_foxhelp/html/ea2e9f15-b24a-45ab-96da-decf3a1ba6c1.htm b/sources/dv_foxhelp/html/ea2e9f15-b24a-45ab-96da-decf3a1ba6c1.htm index d4d6edf..82567d8 100644 --- a/sources/dv_foxhelp/html/ea2e9f15-b24a-45ab-96da-decf3a1ba6c1.htm +++ b/sources/dv_foxhelp/html/ea2e9f15-b24a-45ab-96da-decf3a1ba6c1.htm @@ -72,6 +72,7 @@

    The named cursor has a modified table buffer, so changes must be explicitly committed using TABLEUPDATE( ) or discarded using TABLEREVERT( ) before either closing the cursor or changing the buffering mode.

    +

    Note: There are cases where USE or CLOSE TABLES do not raise the error. Closing a buffered cursor with pending changes REVERTS all changes before closing the cursor.

    Expand imageSee Also

    +

    Expand imageSee Also

    -

    Expand imageSee Also

    +? X = Z && Displays true (.T.)
    +

    Note: The relational string operators <; >; =; <>; #; !=; <=; >= change there behaviour if SET COLLATE TO "MACHINE" is active or not. The string comparison == is not affected.

    + +

    Expand imageSee Also

    Parameters

    + [RENAME COLUMN FieldName4 TO FieldName5] + [NOVALIDATE]

    Parameters

    ALTER TABLE TableName1

    Modifies the structure of a table. The TableName1 parameter specifies the name of the table to be modified.

    @@ -177,7 +181,7 @@

    N

    -

    –

    +

    –

    @@ -188,10 +192,10 @@

    Y, Currency

    -

    –

    +

    –

    -

    –

    +

    –

    @@ -203,10 +207,10 @@

    D, Date

    -

    –

    +

    –

    -

    –

    +

    –

    @@ -218,10 +222,10 @@

    T, DateTime

    -

    –

    +

    –

    -

    –

    +

    –

    @@ -233,7 +237,7 @@

    B, Double

    -

    –

    +

    –

    D

    @@ -248,10 +252,10 @@

    G, General

    -

    –

    +

    –

    -

    –

    +

    –

    @@ -263,10 +267,10 @@

    I, Int, Interger

    -

    –

    +

    –

    -

    –

    +

    –

    @@ -278,10 +282,10 @@

    L, Logical

    -

    –

    +

    –

    -

    –

    +

    –

    @@ -293,10 +297,10 @@

    M, Memo

    -

    –

    +

    –

    -

    –

    +

    –

    @@ -414,28 +418,30 @@

    Specifies an error message for the table validation rule in lExpression3. Visual FoxPro displays this message when the table validation rule generates an error. The message displays only when data is changed within a Browse window or Edit window.

    DROP CHECK

    Removes the table validation rule.

    -
    ADD PRIMARY KEY eExpression3[FOR lExpression4] TAG TagName2
    +
    ADD PRIMARY KEY eExpression3 [FOR lExpression4] TAG TagName2

    Adds a primary index to the table. The eExpression3 specifies the primary index key expression.

    You can use lExpression4 to specify a filter expression where only records that satisfy the condition are available for display and access. Primary index keys are created in the index file just for those records that match the filter expression. You should avoid using the FOR clause to create a primary index; the uniqueness of a primary key is enforced only for those records that match the condition specified in the FOR clause. Instead, use the INDEX command with a FOR clause to create a filtered index.

    -

    Rushmore Query Optimization optimizes an ALTER TABLE ... FOR lExpression4 command if the lExpression4 expression can be optimized. For the best performance, use an optimizable expression in the FOR clause. For more information, see SET OPTIMIZE Command and Using Rushmore Query Optimization to Speed Data Access.

    -

    The TagName2 parameter specifies the name of the primary index tag. Index tag names can contain up to 10 characters. If you omit TAG TagName2, and eExpression3 is a single field, the primary index tag has the same name as the field specified in eExpression3.

    +

    Rushmore Query Optimization optimizes an ALTER TABLE?...?FOR?lExpression4 command if the lExpression4 expression can be optimized. For the best performance, use an optimizable expression in the FOR clause. For more information, see SET OPTIMIZE Command and Using Rushmore Query Optimization to Speed Data Access.

    +

    The TagName2 parameter specifies the name of the primary index tag. Index tag names can contain up to 10 characters. If you omit TAG?TagName2, and eExpression3 is a single field, the primary index tag has the same name as the field specified in eExpression3.

    DROP PRIMARY KEY

    Removes the primary index and its index tag. A table can have only one primary key, so you do not need to specify the name of the primary key. Removing the primary index also deletes any persistent relations based on the primary key.

    -
    ADD UNIQUE eExpression4[TAG TagName3[FOR lExpression5]]
    +
    ADD UNIQUE eExpression4 [TAG TagName3 [FOR lExpression5]]

    Adds a candidate index to the table. The eExpression4 parameter specifies the candidate index key expression. The TagName3 parameter specifies the name of the candidate index tag. Index tag names can contain up to 10 characters. If you omit TAG TagName3, and if eExpression4 is a single field, the candidate index tag has the same name as the field specified in eExpression4.

    You can use the lExpression5 parameter to specify a filter expression where only records that satisfy the condition are available for display and access. Candidate index keys are created in the index file just for those records that match the filter expression.

    -

    Rushmore optimizes an ALTER TABLE ... FOR lExpression5 command if the lExpression5 expression can be optimized. For the best performance, use an optimizable expression in the FOR clause. For more information, see SET OPTIMIZE Command and Using Rushmore Query Optimization to Speed Data Access.

    +

    Rushmore optimizes an ALTER TABLE?...?FOR ?lExpression5 command if the lExpression5 expression can be optimized. For the best performance, use an optimizable expression in the FOR clause. For more information, see SET OPTIMIZE Command and Using Rushmore Query Optimization to Speed Data Access.

    DROP UNIQUE TAG TagName4

    Removes the candidate index and its index tag. A table can have multiple candidate keys, so you must specify the name of the candidate index tag.

    -
    ADD FOREIGN KEY [ eExpression5] TAG TagName4[FOR lExpression6]
    +
    ADD FOREIGN KEY [ eExpression5] TAG TagName4 [FOR lExpression6] REFERENCES TableName2 [TAG TagName5]

    Adds a foreign (non-primary) index to the table. The eExpression5 parameter specifies the foreign index key expression. The TagName4 parameter specifies the name of the foreign index tag. Index tag names can contain up to 10 characters.

    You can use the lExpression6 parameter to specify a filter expression where only records that satisfy the condition are available for display and access. Foreign index keys are created in the index file just for those records that match the filter expression.

    -

    Rushmore optimizes an ALTER TABLE ... FOR lExpression6 command if the lExpression6 expression can be optimized. For the best performance, use an optimizable expression in the FOR clause. For more information, see SET OPTIMIZE Command and Using Rushmore Query Optimization to Speed Data Access.

    -
    REFERENCES TableName2[TAG TagName5]
    +

    Rushmore optimizes an ALTER TABLE ... FOR lExpression6 command if the lExpression6 expression can be optimized. For the best performance, use an optimizable expression in the FOR clause. For more information, see SET OPTIMIZE Command and Using Rushmore Query Optimization to Speed Data Access.

    +
    REFERENCES TableName2 [TAG TagName5]

    Specifies the parent table to which a persistent relationship is established. You can use the TAG TagName5 clause to establish a relationship based on an existing index tag for the parent table. Index tag names can contain up to 10 characters. If you omit the TAG clause, Visual FoxPro establishes the relationship using the parent table's primary index tag.

    -
    DROP FOREIGN KEY TAG TagName6[SAVE]
    +

    TagName5 must be a primary or candidate key of TableName2

    +
    +
    DROP FOREIGN KEY TAG TagName6 [SAVE]

    Deletes a foreign key whose index tag is TagName6. You can use SAVE to keep the index tag in the structural index. If you omit SAVE, the index tag is deleted from the structural index.

    -
    RENAME COLUMN FieldName4TO FieldName5
    +
    RENAME COLUMN FieldName4 TO FieldName5

    Makes it possible for you to change the name of a field in the table. The FieldName4 parameter specifies the name of the field to be renamed. The FieldName5 paramter specifies the new name of the field.

    Caution noteCaution

    Exercise care when renaming table fields because index expressions, field and table validation rules, commands, functions, and so on might refer to the original field names.

    @@ -459,7 +465,7 @@

    NoteNote
    -

    Candidate indexes, created by including the UNIQUE option (provided for ANSI compatibility) in CREATE TABLE – SQL or ALTER TABLE – SQL commands, are not the same as indexes created in the INDEX command with the UNIQUE option. An index created in the INDEX command using the UNIQUE option allows duplicate index keys; candidate indexes do not allow duplicate index keys. For more information about the UNIQUE option in the INDEX command, see INDEX Command. The term CANDIDATE is a synonym of UNIQUE and can be used instead if you choose.

    +

    Candidate indexes, created by including the UNIQUE option (provided for ANSI compatibility) in CREATE TABLE ? SQL or ALTER TABLE ? SQL commands, are not the same as indexes created in the INDEX command with the UNIQUE option. An index created in the INDEX command using the UNIQUE option allows duplicate index keys; candidate indexes do not allow duplicate index keys. For more information about the UNIQUE option in the INDEX command, see INDEX Command. The term CANDIDATE is a synonym of UNIQUE and can be used instead if you choose.

    If you modify an existing field, and the primary index expression or candidate index expression consists of fields in the table, Visual FoxPro checks the fields to see if they contain null values or duplicate records. If they do, Visual FoxPro generates an error and the table is not altered.

    If the table is converted to another code page, the fields for which NOCPTRANS has been specified are not translated.

    @@ -474,7 +480,7 @@

     CopyCode imageCopy Code
    * Example 1
    +        
    ?CopyCode imageCopy Code
    * Example 1
     SET PATH TO (HOME(2) + 'Data\')     && Sets path to table.
     ALTER TABLE Customer ADD COLUMN Fax c(20) NULL
     * Example 2
    @@ -513,7 +519,7 @@ 

    Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08
    Send feedback on this topic to the VFPX Help file project team.
    -2009-2017 Placed under Creative Commons licensing by Microsoft Corporation. +2009-2022 Placed under Creative Commons licensing by Microsoft Corporation. From 8a32180d6db5903bb00afaa2eb92d31e5fe3be22 Mon Sep 17 00:00:00 2001 From: Lutz Date: Sat, 25 Jun 2022 12:18:55 +0200 Subject: [PATCH 18/20] Wrong clause order for Set Classlib fixed #7 --- .../dv_foxhelp/html/11fd4c12-260a-4937-b389-ed0667429d6b.htm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/dv_foxhelp/html/11fd4c12-260a-4937-b389-ed0667429d6b.htm b/sources/dv_foxhelp/html/11fd4c12-260a-4937-b389-ed0667429d6b.htm index 01eabca..dd204dd 100644 --- a/sources/dv_foxhelp/html/11fd4c12-260a-4937-b389-ed0667429d6b.htm +++ b/sources/dv_foxhelp/html/11fd4c12-260a-4937-b389-ed0667429d6b.htm @@ -106,7 +106,7 @@

    Opens a .vcx visual class library containing class definitions.

     SET CLASSLIB TO ClassLibraryName [IN APPFileName | EXEFileName]
    -   [ADDITIVE] [ALIAS AliasName]

    Parameters

    + [ALIAS AliasName] [ADDITIVE]

    Parameters

    TO ClassLibraryName

    Specifies the name of the .vcx visual class library to open. If ClassLibraryName does not include a fully qualified path, Visual FoxPro first searches for the visual class library in the default Visual FoxPro directory, and then in the directories in the Visual FoxPro path. The default Visual FoxPro directory is specified with SET DEFAULT, and the Visual FoxPro search path is specified with SET PATH.

    @@ -162,7 +162,7 @@

    Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08
    Send feedback on this topic to the VFPX Help file project team.
    -2009-2017 Placed under Creative Commons licensing by Microsoft Corporation. +2009-2022 Placed under Creative Commons licensing by Microsoft Corporation. From d3f76f7ace204e37a05e741f5e82918f6b7b7160 Mon Sep 17 00:00:00 2001 From: Lutz Date: Sat, 25 Jun 2022 12:31:47 +0200 Subject: [PATCH 19/20] Wrong clause order for Set Classlib Reworked Remarks section fixed #7 --- .../html/11fd4c12-260a-4937-b389-ed0667429d6b.htm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sources/dv_foxhelp/html/11fd4c12-260a-4937-b389-ed0667429d6b.htm b/sources/dv_foxhelp/html/11fd4c12-260a-4937-b389-ed0667429d6b.htm index dd204dd..04f2424 100644 --- a/sources/dv_foxhelp/html/11fd4c12-260a-4937-b389-ed0667429d6b.htm +++ b/sources/dv_foxhelp/html/11fd4c12-260a-4937-b389-ed0667429d6b.htm @@ -113,12 +113,14 @@

    Issuing SET CLASSLIB TO without ClassLibraryName closes all open visual class libraries. Use RELEASE CLASSLIB to close an individual visual class library.

    IN APPFileName| EXEFileName

    Specifies a Visual FoxPro application file (.app) or executable file (.exe) containing the visual class library.

    -
    ADDITIVE
    -

    Opens the .vcx visual class library without closing any currently open .vcx visual class libraries. If this clause is omitted, all open .vcx visual class libraries are closed.

    +
    ALIAS AliasName

    Specifies an alias for the visual class library. The visual class library can be referenced by its alias. For example, the following commands open a .vcx visual class library named MyClass, assign it the alias MyCntrls, and then create a control named MyButton.

    -
     CopyCode imageCopy Code
    SET CLASSLIB TO MyClass ALIAS MyCntrls
    +          
     CopyCode imageCopy Code
    +
    SET CLASSLIB TO MyClass ALIAS MyCntrls
     mMyButton = CREATEOBJ('MyCntrls.MyButton')
    +
    ADDITIVE
    +

    Opens the .vcx visual class library without closing any currently open .vcx visual class libraries. If this clause is omitted, all open .vcx visual class libraries are closed.

    Expand imageRemarks