Eugen, Could you simplify it, like:
put "body" into fld_name put 123 into field fld_name When you use "control", you need to provide either a name or a number, as in: put "123" into control 1 or put "123" into control "body" -- picks the first control named "body" It won't work if you also use the descriptor: put "123" into control field "body" -- This doesn't work So basically I'm saying that if you want to have the choice of where a variable or constant goes, and it is not always a field, you should (a) make sure your object names are unique, and ARE NOT NUMBERS (i.e. don't name a field: "1", etc.), and then (b) only pass the name of the object as a parameter, as in: on mouseUp PutStuff "123","body" end mouseUp on PutStuff pVar,pControl put pVar into control pControl end PutStuff Just my $0.02, Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "eugen helbling" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 06, 2001 6:37 AM Subject: can't find object <field 1> > Hi, > > in a stack script part I used following to put something into a field > > put "field " & quote & "body" & quote into fld_name > put 123 into control fld_name > > instead of the following returns error ( can't find object <field 1>) > > put "field 1" into fld_name > put 123 into control fld_name > > what is wrong in the second case ? > > regards > eugen > > > > _____________________________________________________________________ > > GINIT Technology GmbH [EMAIL PROTECTED] > Eugen Helbling www.ginit-technology.com > Emmy-Noether-Str. 11 phone: +49-721-96681-0 > D-76131 Karlsruhe fax: +49-721-96681-111 > _______________________________________________ > metacard mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/metacard > _______________________________________________ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
