This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 223
[Dictionary] print link to recordInput #7115
Merged
livecodepanos
merged 4 commits into
livecode:develop-9.0
from
livecodealice:dictionary_2_batch_13
Jun 28, 2019
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,19 +53,32 @@ The key of each element in the array is the property name. Use the | |
| following statements to obtain a list of the properties for a particular | ||
| object type: | ||
|
|
||
| local myArray | ||
| put the properties of field "My Field" into myArray | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could add a |
||
| put the keys of myArray | ||
|
|
||
| The value of each element in the array is the value of that property for | ||
| > the object. For example, use this statement (after the above example) | ||
| > to get the object's ID property: | ||
| the object. For example, use this statement (after the above example) | ||
| to get the object's ID property: | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly here, we could add a |
||
| put the properties of field "My Field" into myArray | ||
| put myArray["id"] | ||
|
|
||
| >*Note:* You can't use array notation with an expression, only with a | ||
| > variable, so you must put the <properties> of the object into a | ||
| > variable before you can access the individual elements of the array. | ||
| > If you want a list of properties and their values, use the | ||
| > combinecommand to create a list: | ||
| > <combine> command to create a list: | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly here, we could add a |
||
| local myArray | ||
| put the properties of field "My Field" into myArray | ||
| combine myArray using return and ": " | ||
| put myArray | ||
|
|
||
| If you set the <properties> of an object to an array that contains only | ||
| some of the properties, any properties that aren't in that array are not | ||
| changed. This means that you can select which properties to set with the | ||
| <properties> property . | ||
| <properties> property. | ||
|
|
||
| For example, suppose you want to set the <properties> of a field to the | ||
| <properties> of another field, except that you want to leave the first | ||
|
|
@@ -77,14 +90,9 @@ field's name unchanged: | |
| -- leaves name property unchanged | ||
|
|
||
|
|
||
| put the properties of field "My Field" into myArray | ||
| delete variable myArray[name] -- delete this element from the array | ||
| set the properties of field "New Field" to myArray | ||
| -- leaves name property unchanged | ||
|
|
||
|
|
||
| On storing the properties are set in the correct order to ensure correct | ||
| > recreation of the object. | ||
| recreation of the object. | ||
|
|
||
| >*Note:* When setting properties which contain both non-empty color and | ||
| > pattern properties of the same type, the color property will take | ||
| > precedence. | ||
|
|
@@ -95,9 +103,9 @@ fetching it returns the minimal set of properties of an object to allow | |
| it to be recreated exactly, it also returns unicode variants of | ||
| properties if, and only if, they are needed. | ||
|
|
||
| References: setProp (control structure), keys (function), | ||
| propertyNames (function), value (glossary), object (glossary), | ||
| properties (property), customProperties (property) | ||
| References: combine (command), setProp (control structure), | ||
| keys (function), propertyNames (function), value (glossary), | ||
| object (glossary), properties (property), customProperties (property) | ||
|
|
||
| Tags: properties | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could add a
local tResulthere, to make sure it compiles under strict mode