can't find object <field 1>
Ken Ray
kray at sonsothunder.com
Thu Dec 6 13:29:17 EST 2001
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: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
----- Original Message -----
From: "eugen helbling" <eugen.helbling at ginit-technology.com>
To: <metacard at lists.runrev.com>
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 eugen.helbling at ginit-technology.com
> 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
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
>
More information about the metacard
mailing list