Skip to content

Commit

Permalink
Merge pull request #368 from doc4d/main
Browse files Browse the repository at this point in the history
improvements 20 R7
  • Loading branch information
arnaud4d authored Oct 31, 2024
2 parents bd28382 + 4cbd178 commit 4675f79
Show file tree
Hide file tree
Showing 931 changed files with 12,921 additions and 6,061 deletions.
2 changes: 1 addition & 1 deletion docs/API/SessionClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The availability of properties and functions in the `Session` object depends on

:::note

This function does nothing and always returns **False** with remote client and stored procedure sessions.
This function does nothing and always returns **True** with remote client and stored procedure sessions.

:::

Expand Down
2 changes: 1 addition & 1 deletion docs/Concepts/operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ $x3/=2 // $x3=5
// Multiplication
$x2:=10
$x2*=5 // $x2=10
$x2*=5 // $x2=50
$t2:="Hello"
$t2*=2 // $t2="HelloHello"
Expand Down
4 changes: 2 additions & 2 deletions docs/Concepts/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Variables

Data in 4D is stored in two fundamentally different ways. **Fields** store data permanently on disk; **variables** store data temporarily in memory.

When you set up your 4D database, you specify the names and types of fields that you want to use. Variables are much the same—you also give them names and different types (see [Data types](Concepts/data-types.md)).
When you set up your 4D database, you specify the names and types of fields that you want to use. Variables are much the same—you also give them names and different types (see [Data types](data-types.md)).

Once created, you can use a variable wherever you need it in your application. For example, you might need to store a text variable in a field of same type:

Expand Down Expand Up @@ -252,7 +252,7 @@ In Client/Server, each machine (Client machines and Server machine) share the sa

The 4D language manages several **system variables**, which allow you to control the execution of different operations. You can test their values and use them as any variable. All system variables are [process variables](#process-variables).

System variables are used by [4D commands](commands.md). Refer to the "System variables and sets" paragraph in the description of a command to find out whether it affects a system variable.
System variables are used by [4D commands](../commands/command-index.md). Refer to the "System variables and sets" paragraph in the description of a command to find out whether it affects a system variable.


|System variable name|Type|Description|
Expand Down
2 changes: 1 addition & 1 deletion docs/FormObjects/listbox_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ Form events on list box or list box column objects may return the following addi



## List box columns
## List box columns {#list-box-columns}

A list box is made of one or more column object(s) which have specific properties. You can select a list box column in the Form editor by clicking on it when the list box object is selected:

Expand Down
4 changes: 2 additions & 2 deletions docs/FormObjects/properties_BackgroundAndBorder.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ You can also set this property using the [`LISTBOX SET PROPERTY`](https://doc.4d

---

## Border Line Style
## Border Line Style {#border-line-style}

Allows setting a standard style for the object border.

Expand All @@ -84,7 +84,7 @@ Allows setting a standard style for the object border.

---

## Dotted Line Type
## Dotted Line Type {#dotted-line-type}

Describes dotted line type as a sequence of black and white points.

Expand Down
1 change: 1 addition & 0 deletions docs/Notes/updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Read [**What’s new in 4D 20 R7**](https://blog.4d.com/en-whats-new-in-4d-v20-R

- Documentations for [4D Language](../commands/command-index.md) and [4D Write Pro Language](../WritePro/commands/command-index.md) are now fully available on developer.4d.com. Find out about all the new features and changes concerning these documentations in this release note.
- Compiler directive commands (`C_XXX`) are now deprecated and have been renamed `_O_C_XXX` (for example, `C_TEXT` has been renamed `_O_C_TEXT`).
- The [`File`](../commands/file.md) command (as well as [`4D.File.new()`](../API/FileClass.md#4dfilenew)) is stricter when it comes to checking the syntax of the *path* supplied as a parameter.


## 4D 20 R6
Expand Down
5 changes: 0 additions & 5 deletions docs/WebServer/qodly-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ Qodly Studio proposes a full-featured web UI, allowing you to:
- trigger 4D code by configuring events
- and much more.

:::info

The development with Qodly Studio for 4D requires at least a [4D Silver Partner license](https://us.4d.com/4d-partner-program). Qodly Studio options and menu items won't appear if the license is not activated.

:::

## Configuration

Expand Down
161 changes: 80 additions & 81 deletions docs/commands-legacy/compile-project.md

Large diffs are not rendered by default.

55 changes: 25 additions & 30 deletions docs/commands-legacy/set-channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ displayed_sidebar: docs
| --- | --- | --- | --- |
| port | Integer | → | Serial port number |
| settings | Integer | → | Serial port settings |
| SET CHANNEL ( operation ; document ) |
| Parameter | Type | Description |
| operation | Integer | → | Document operation to perform |
| document | Text | → | Document name |

Expand Down Expand Up @@ -97,34 +95,33 @@ If you want to use the COM 25 port with the RTS/CTS protocol, you need to use th

The *settings* parameter sets the speed, number of data bits, number of stop bits, and parity. You determine the value for *settings* by adding the speed, data bits, stop bits, and parity values as listed in the following table. For example, to set 1200 baud, 8 data bits, 1 stop bit, and no parity, you would add 94 + 3072 + 16384 + 0 = 19550\. You would then use 19550 as the value of the *setup* parameter.

| **Value to accumulate** | **Description** | |
| ------------------------- | --------------- | ---- |
| **in settings parameter** | | |
| Control |Value to accumulate in settings parameter | Description |
|------------------------ | --------------- | ---- |
| Speed | 380 | 300 |
| (in baud) | 189 | 600 |
| | 94 | 1200 | |
| | 62 | 1800 | |
| | 46 | 2400 | |
| | 30 | 3600 | |
| | 22 | 4800 | |
| | 14 | 7200 | |
| | 10 | 9600 | |
| | 4 | 19200 | |
| | 2 | 28800 | |
| | 1 | 38400 | |
| | 0 | 57600 | |
| | 1022 | 115200 | |
| | 1021 | 230400 | |
| | 94 | 1200 |
| | 62 | 1800 |
| | 46 | 2400 |
| | 30 | 3600 |
| | 22 | 4800 |
| | 14 | 7200 |
| | 10 | 9600 |
| | 4 | 19200 |
| | 2 | 28800 |
| | 1 | 38400 |
| | 0 | 57600 |
| | 1022 | 115200 |
| | 1021 | 230400 |
| Data bits | 0 | 5 |
| | 2048 | 6 | |
| 1024 | 7 | |
| 3072 | 8 | |
| | 2048 | 6 |
| | 1024 | 7 |
| | 3072 | 8 |
| Stop bits | 16384 | 1 |
| –32768 | 1.5 | |
| –16384 | 2 | |
| | –32768 | 1.5 |
| | –16384 | 2 |
| Parity | 0 | None |
| 4096 | Odd | |
| 12288 | Even | |
|| 4096 | Odd |
|| 12288 | Even |

**Tip:** The various numeric values to be accumulated and passed in *port* and *settings* (but not including the values for COM1...COM99) are available as predefined constants in the theme *Communications* within the Design environment Explorer windows. For COM1...COM99, use numeric literals.

Expand All @@ -142,10 +139,8 @@ For example, to display an Open File dialog box to open a text file, you would u

| **Operation** | **Document** | **Result** |
| ------------------------------------------------------------------ | ----------------- | ------------------------------------------------------------------------------------- |
| 10 | String | Opens the document specified by String. |
| If the document doesn’t exist, the document is opened and created. | | |
| 10 | "" (empty string) | Displays the Open File dialog box to open a file. |
| All file types are displayed. | | |
| 10 | String | Opens the document specified by String. If the document doesn’t exist, the document is opened and created. | | |
| 10 | "" (empty string) | Displays the Open File dialog box to open a file. All file types are displayed. | | |
| 11 | none | Closes an open file. |
| 12 | "" (empty string) | Displays the Save File dialog box to create a new file. |
| 13 | "" (empty string) | Displays the Open File dialog box to open a file. Only text file types are displayed. |
Expand All @@ -159,7 +154,7 @@ See examples for the [RECEIVE BUFFER](receive-buffer.md), [SET TIMEOUT](set-time
#### See also

[Append document](append-document.md)
*Communications*
[Communications](/category/commands/Communications)
[Create document](create-document.md)
[GET SERIAL PORT MAPPING](get-serial-port-mapping.md)
[Open document](open-document.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/commands/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ displayed_sidebar: docs
|Parameter|Type||Description|
|---------|--- |:---:|------|
|path|Text|→ |File path|
|fileConstant|→ |->|4D file constant|
|fileConstant|Integer|→|4D file constant|
|pathType|Integer|→ |`fk posix path` (default) or `fk platform path`|
|*|operator|→ |* to return file of host database|
|Result|4D.File|←|New file object|
Expand Down
2 changes: 1 addition & 1 deletion docs/commands/process-number.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ If the command is executed with the \* parameter from a process on the server ma
#### See also

[GET PROCESS VARIABLE](../commands-legacy/get-process-variable.md)
[Process state](./commands-legacy/process-state.md)
[Process state](../commands-legacy/process-state.md)
[SET PROCESS VARIABLE](../commands-legacy/set-process-variable.md)
3 changes: 3 additions & 0 deletions i18n/es/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -622,5 +622,8 @@
"theme.unlistedContent.message": {
"message": "Esta página no está en la lista. Los motores de búsqueda no lo indexarán, y sólo los usuarios que tengan un enlace directo pueden acceder a ella.",
"description": "The unlisted content banner message"
},
"Language": {
"message": "Lenguaje"
}
}
Loading

0 comments on commit 4675f79

Please sign in to comment.