Hi Silvia, SB> I'm realizing a script which needs to retrieve data from a mysql SB> database and a need to pass this data between different layouts. SB> Is it possible to do this? How can I pass values from a layout to SB> another?
Boleslav gave you an example of setting the value in another face, that may be all you need. I'll just add that the layout itself is just another face, so the concept of "passing data to a layout" implies that maybe you should think about defining an interface between the different parts of your program, so you can share data in a consistent manner. A simple way is to have COLLECT-DATA and DISPLAY-DATA functions for each layout, but you may also want to define a shared structure. Try to avoid referencing faces directly, in an unstructured manner, throughout your code; isolate the places where data is exchanged between faces and variables or the data store. In a small app, it won't hurt you too badly, but as your apps grow, it can make maintenance a lot easier. -- Gregg -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
