![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
This is the situation: 3 fields (type= text) [field1] (type=date) [field2] (type=date) [field_to_set] (type=text) In this example [field_to_set] contains the value "field1", which is done using a script: GotoField([field1]) SetField([field_to_set]; Status(CurrentFieldName)) After a few user-actions, I'd like to update the field contained by [field_to_set] with a new date. Problem is: How do I convert the value of [field_to_set] back to a fieldname, to execute the command SetField([field1], Today()) Thanx for your help. Twan |
#3
| |||
| |||
|
|
This is the situation: 3 fields (type= text) [field1] (type=date) [field2] (type=date) [field_to_set] (type=text) In this example [field_to_set] contains the value "field1", which is done using a script: GotoField([field1]) SetField([field_to_set]; Status(CurrentFieldName)) After a few user-actions, I'd like to update the field contained by [field_to_set] with a new date. Problem is: How do I convert the value of [field_to_set] back to a fieldname, to execute the command SetField([field1], Today()) Thanx for your help. Twan |
#4
| |||
| |||
|
|
On Feb 15, 4:42 am, "Twan Kennis" <compu... (AT) skb (DOT) nl> wrote: This is the situation: 3 fields (type= text) [field1] (type=date) [field2] (type=date) [field_to_set] (type=text) In this example [field_to_set] contains the value "field1", which is done using a script: GotoField([field1]) SetField([field_to_set]; Status(CurrentFieldName)) After a few user-actions, I'd like to update the field contained by [field_to_set] with a new date. Problem is: How do I convert the value of [field_to_set] back to a fieldname, to execute the command SetField([field1], Today()) You can't. Not directly. You don't mention what version of Filemaker you're using, but Set Field must be hard coded. There are some ways around this but you need to specify what version of FM (the easiest way only works in 8.5) and what you're trying to actually accomplish (there may be ways of doing it via calculation). |
)
#5
| |||
| |||
|
|
This is the situation: 3 fields (type= text) [field1] (type=date) [field2] (type=date) [field_to_set] (type=text) In this example [field_to_set] contains the value "field1", which is done using a script: GotoField([field1]) SetField([field_to_set]; Status(CurrentFieldName)) |
|
After a few user-actions, I'd like to update the field contained by [field_to_set] with a new date. Problem is: How do I convert the value of [field_to_set] back to a fieldname, to execute the command SetField([field1], Today()) |
#6
| |||
| |||
|
|
In article <1171563103.461925.67640 (AT) p10g2000cwp (DOT) googlegroups.com>, "Grip" <grip (AT) cybermesa (DOT) com> wrote: On Feb 15, 4:42 am, "Twan Kennis" <compu... (AT) skb (DOT) nl> wrote: This is the situation: 3 fields (type= text) [field1] (type=date) [field2] (type=date) [field_to_set] (type=text) In this example [field_to_set] contains the value "field1", which is done using a script: GotoField([field1]) SetField([field_to_set]; Status(CurrentFieldName)) After a few user-actions, I'd like to update the field contained by [field_to_set] with a new date. Problem is: How do I convert the value of [field_to_set] back to a fieldname, to execute the command SetField([field1], Today()) You can't. Not directly. You don't mention what version of Filemaker you're using, but Set Field must be hard coded. There are some ways around this but you need to specify what version of FM (the easiest way only works in 8.5) and what you're trying to actually accomplish (there may be ways of doing it via calculation). Twan is using the Status function, so that would mean a version of FileMaker before version 7. )Helpful Harry Hopefully helping harassed humans happily handle handiwork hardships ;o) |
![]() |
| Thread Tools | |
| Display Modes | |
| |