![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
FMP 10 Advanced: in the script step "set variable", the only option to define the variable name is to hardcode it. Is there a way to use a calculation to define the variable name, as in set field by name? |
#3
| |||
| |||
|
|
you can set the repetition number by calc, which is useful for creating something like an array. |
#4
| |||
| |||
|
|
FMP 10 Advanced: in the script step "set variable", the only option to define the variable name is to hardcode it. Is there a way to use a calculation to define the variable name, as in set field by name? |
#5
| |||
| |||
|
|
Like this? http://www.supportgroup.com/explore/...ng-a-variable/ |
#6
| |||
| |||
|
|
Howard Schlossberg <howard (AT) nospam (DOT) fmprosolutions.com> wrote: you can set the repetition number by calc, which is useful for creating something like an array. It did cross my mind; I decided against it because I'd had to prepare for very huge repetition numbers - not because I need so many, but because they would have to match account numbers that have 6 digits or more. Now I created an array in a global variable with a loop and use a custom function to extract value #2 of a given line depending on value #1. |
)
#7
| |||
| |||
|
|
It did cross my mind; I decided against it because I'd had to prepare for very huge repetition numbers - not because I need so many, but because they would have to match account numbers that have 6 digits or more. Now I created an array in a global variable with a loop and use a custom function to extract value #2 of a given line depending on value #1. |
#8
| |||
| |||
|
|
Sounds more like you need a new Table and use the Relationship link to "extract value #2". |
#9
| |||
| |||
|
|
Repetition numbers are practically infinite, and so useful for applications like storing and referencing data in large numbers of them. If you have data in rep # 12345678, and more data in rep #98765432 (to match different account numbers), the intervening reps take up no memory and so don't contribute to the overhead of the solution, or the speed of access to the reps. Just something else to know about variable repetitions. Might be useful someday. |
![]() |
| Thread Tools | |
| Display Modes | |
| |