Marc, Better yet. Add a column to whatever table you use for your program defaults to store the themename you want to use. Then set your var to that and it's there for every form (with the property command of course).
Jan -----Original Message----- From: "Marc" <[EMAIL PROTECTED]> To: [email protected] (RBG7-L Mailing List) Date: Thu, 3 Nov 2005 07:35:49 -0600 Subject: [RBG7-L] - Re: R:Themes > Thanks Bill and Jan > > As Tony the Tiger would say > This is GREAT. > > Now the users can pick their own theme and > change it as they like. > > Thanks > Marc > > > ----- Original Message ----- > From: "Bill Downall" <[EMAIL PROTECTED]> > To: "RBG7-L Mailing List" <[email protected]> > Sent: Thursday, November 03, 2005 7:29 AM > Subject: [RBG7-L] - Re: R:Themes > > > > Marc, > > > > You could set a variable before the EDIT USING commands, and have the > > form's "on after start" eep check for the existence of the variable, > and > > apply the theme with a property command. > > > > -- copy table RThemes into your db from Razzak's RBThemes database > > -------------------- > > SET VAR vMyTheme TEXT > > CHOOSE vMyTheme FROM #VALUES FOR RTheme FROM RThemes > > EDIT USING formname WHERE whatever > > > > > > -- on after start eep > > SET VAR vMyTheme TEXT > > IF vMyTheme IS NOT NULL AND vMyTheme <> '[Esc]' THEN > > PROPERTY RBASE_FORM THEMENAME &vMyTheme > > ENDIF > > > > You might have to play with quotation marks and amper vs. dotted > > variables in the PROPERTY command, I haven't tried this yet. > > > > Bill > > > > Marc wrote: > > > Also, Is there a way to do this > > > EDIT USING form .....Themename RBase Rocks > > > > > > That way we can make a var to hold the Theme and > > > the user can choose a different theme as often as they > > > want. > > > > > > I am planning on doing this for Pause, Dialog, Choose > > > commands > > > > > > Marc > > > > > > ----- Original > > > > >
