November 22, 201015 yr I am trying to use the top of one window to move the top of another window to the same spot. I set a global variable using Get(WindowTop) then call a script in the second window with a resize step and set the top field to "$$top" - it doesn't work..... Can one use global variables in the resize dialogue?
November 22, 201015 yr When you call the script for the second window is it part of the same database or is it in a second file? Global variables can be passed from one script to another in a single database but not to a script in an external database. Otherwise a global variable should work fine to resize or move a window.
November 22, 201015 yr Author different file ok so why cant the resize look up a field in the original database ? thanks for the input
November 22, 201015 yr Variables are not passed between files. However, you can pass a variable as a Script Parameter between files. RW
November 22, 201015 yr Author Im going to see what I can do with script parameters but in the meantime I accomplished what i wanted to copy and pasting from field in DB1 using scripts in DB2 and then picking up those pasted values in the resize dialogue - its pretty clumsy and I dont want to keep doing it for every file in the solution.
November 22, 201015 yr ok so why cant the resize look up a field in the original database ? I'm not sure how you would do that. Get(WindowTop) only applies to the current window. Instead of using a global variable save the results of Get(WindowTop) to a global field in the external database. Then call the external script, open the new window and use the global field in a move/resize step.
November 22, 201015 yr different file ok so why cant the resize look up a field in the original database ? It can. And even more easily if it is a global field. Also note that you do not need to call a script in window 2. Scripts in window 1 can move the windows for file window 2. WMove.zip Edited November 22, 201015 yr by Guest
November 22, 201015 yr Author hmmmmmm-this is what I was trying to do - I will need to see where I was going wrong Thanks for the effort
Create an account or sign in to comment