how can i prevent window popup after accessing controls vals

i have a window called “SetttingsWindow” that keeps popping up when i access controls or textfields within that window.

if i access a text field from the main window
ex: dim var as String = SettingsWindow.textfield1.text
the settings window pops up … how may i access control values, textfield vals in another window without it popping up.

also in VB i could do this.

with Window .textfield1.text .textfield2.text end With

the . was substituted with the “Window” name using the “with” command.
is there a equivalent to the VB “with” command ?

Please Advise.

Why did you start a new thread? You’re already getting answers here:

https://forum.xojo.com/38972-access-textfield-val-without-the-window-opening