Cardbox > Forums > Macros and Programming > "Macros and editing of records"
Macros and editing of records
Has anyone suggestions about how to make macros that do not run when somebody else is editing a record. |
Current user: [none] |
| Posted By | Post |
|---|---|
Charles Welling | 2-May-2005 14:08 I've made a macro that does some routine jobs and then writes the result to a record. This macro must not run when the record is already being edited. As far is I understand, the macro language is not able to report if someone else is already editing the record. |
bert | 5-May-2005 06:19 Charles, |
Charles Welling | 5-May-2005 19:12 Sorry Bert, but neither one works. The first one works, but only for the PC that's actually editing the record. So, for instance, when you're editing the record in Window#1 and you activate the macro in Window#2 (or vice versa). Editing done by another user is invisible to the macro. |
cardboss | 6-May-2005 19:16 There isn't a way of communicating with the server to ask it about the edit status of a record because it is impossible to get a response you can trust. A fraction of a second after the server has replied "not editing", someone else may start to edit the record... so that the "not editing" answer is untrue even before the questioner has received it. |
Charles Welling | 6-May-2005 20:09 Martin, I've fitted your macro into mine and it works perfectly. Thanks! I'm sure it will be of use to many others. |