Raybaudi Posted October 19, 2005 Posted October 19, 2005 Hi all friends this problem is related with the trick to change tab of a "Tab Control". I wish to have two fields, both editable, exactly the same(as if the field was duplicated), but with different names. It seems simple... With 7/8 you can define a field as an autoenter calc replace existing value; so I thought to solve with: Field1 : autoenter Field2 and Field2: autoenter Field1 but this didn't work (or worked partially). Any other attempt to solve was without resolution. (and I'm trying from two days) Has someone any ideas ?
SlimJim Posted October 20, 2005 Posted October 20, 2005 One method is to check if the other field is active and then copy its contents Field1 Auto-enter, replace If(Get(ActiveFieldName) = "Field2";Field2;Field1) and for Field2 the same but with 1 and 2 switched If(Get(ActiveFieldName) = "Field1";Field1;Field2)
LaRetta Posted October 20, 2005 Posted October 20, 2005 Hi Jim, Have you tested this? I haven't found it to be consistent. It seems that Get(Active...) can't respond within an Auto-Enter (Replace) calculation (or any calculation?) but I might be wrong; I frequently am. LaRetta
Raybaudi Posted October 20, 2005 Author Posted October 20, 2005 Hi, SlimJim many, many thanks...that works ! (if I think to the so much time vasted, I'll become mad !)
SlimJim Posted October 20, 2005 Posted October 20, 2005 LaRetta I have tested this in my own circumstances (single user not networked) and it works fine. I use it for modiying (and entering) net tax and gross calculations. I posted a tip about this a while back: http://fmforums.com/forum/showtopic.php?tid/169064/post/172567/hl//#172567 and as it says there I first saw it in a conversion calculation by Queue.
Recommended Posts
This topic is 7041 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now