Skip to content

Commit

Permalink
updated sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud4d committed Oct 30, 2024
1 parent 54b0fb1 commit 18f17ca
Show file tree
Hide file tree
Showing 9 changed files with 1,325 additions and 228 deletions.
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/commands-legacy/compile-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The *options* parameter is an object. Here are the available compilation options
| defaultTypeForButtons || Integer | Possible value: Is real or Is longint |
| defaultTypeForNumerics || Integer | Possible value: Is real or Is longint |
| generateSymbols || Boolean | True to generate symbol information in the .symbols returned object |
| generateSyntaxFile | |Boolean | True to generate a [syntax file for code completion](..settings/general.md#generate-syntax-file-for-code-completion-when-compiled) in the \\Resources\\en.lproj folder of the project |
| generateSyntaxFile | |Boolean | True to generate a [syntax file for code completion](../settings/general.md).md#generate-syntax-file-for-code-completion-when-compiled) in the \\Resources\\en.lproj folder of the project |
| generateTypingMethods || String | "reset" or "append" to generate typing methods. If value is "append", existing variable declarations won't be modified (compiler window behavior). If value is "reset" existing variable declarations are removed beforehand. |
| plugins || 4D.Folder object | Plug-ins folder to be used instead of the [Plugins folder of the current project](../Project/architecture.md#plugins). This property is only available with the *projectFile* syntax. |
| targets || Collection of strings | Possible values: "x86_64_generic", "arm64_macOS_lib". Pass an empty collection to execute syntax check only |
Expand Down
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/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)
Loading

0 comments on commit 18f17ca

Please sign in to comment.