Re: Problem with field references

2008-07-07 Thread François Chaplais

sorry I had to resend my msg


This is a pain that that goes back to HC, IIRC. The same issue  
appears with properties. It sems that, if a variabl's content is an  
objet name, transcript is not smart enough to understand it (mayby  
it just does not know what to decide).
Of course, there is the "do" command. Unfortunately (but not  
surprisingly), standalones only support a limited number of "do"  
command.
Could it be possible to define an object class of type "object  
name", in order to achieve some commands like

"put the long name of this stack into  object name foo"
Then further usage of "foo" treats it as an object name/reference  
and you don't have to use the "do" command.


Cheers from Paris
François






Le 7 juil. 08 à 17:41, Mikey a écrit :

I have had to use the "do" option.  The text and value tries  
didn't do it.

--
George Burns  - "Don't stay in bed, unless you can make money in  
bed."




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problem with field references

2008-07-07 Thread Mikey
I have had to use the "do" option.  The text and value tries didn't do it.
-- 
George Burns  - "Don't stay in bed, unless you can make money in bed."
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problem with field references

2008-07-07 Thread Jan Schenkel
--- Mikey <[EMAIL PROTECTED]> wrote:
> Jan,
> Sorry, I didn't see your post when you made it. 
> Yes, I can get the THERE IS
> A fieldname (where the first word of fieldname is
> the word field) to work,
> but I cannot then use fieldname with or without
> field on the front to get
> the contents of the field.  Once I have determined
> that the field exists I
> need to get the contents.
> 
> get fieldname doesn't work.
> 
> --
> EB White  - "Be obscure clearly."
> 

You can use the 'do' command:
##
do ("get" && tFieldLongId)
##

Or use the 'text' property:
##
get the text of tFieldLongId
##

Or even the 'value' function:
##
get value(tFieldLongId)
##

Hope this helped,

Jan Schenkel.

Quartam Reports & PDF Library for Revolution


=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)


  
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problem with field references

2008-07-07 Thread Mikey
Jan,
Sorry, I didn't see your post when you made it.  Yes, I can get the THERE IS
A fieldname (where the first word of fieldname is the word field) to work,
but I cannot then use fieldname with or without field on the front to get
the contents of the field.  Once I have determined that the field exists I
need to get the contents.

get fieldname doesn't work.

--
EB White  - "Be obscure clearly."
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problem with field references

2008-07-03 Thread Jan Schenkel
--- Mikey <[EMAIL PROTECTED]> wrote:
> This is a little weird.
> 
> I have two stacks.  we'll call them mainstack and
> substack.
> 
> In substack I want to build a fieldname from user
> input and check to see if
> it exists on mainstack.
> 
> The result of this is a variable fieldname that
> contains
> "Dept 14" of card "Dept Personnel" of stack
> "mainstack"
> 
> if I execute "if there is a field fieldname then"
> However, RR doesn't recognize the existence of field
> fieldname.
> 
> [snip]
> 
> So what newfangled way of doing remote field
> references should I be using
> instead of the old-timers HC way?
> -- 
> 

The problem here is that the word 'field' just in
front of your variable name, makes Revolution
interpret that variable as a field name, not a
complete reference.
So it effectively goes out to look for a field with
the name ["Dept 14" of card "Dept Personnel" of stack
"mainstack"]. Just prepend 'field' to your variable
and use [there is a] as your unary operator.

Jan Schenkel.


Quartam Reports & PDF Library for Revolution


=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)


  
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problem with field references

2008-07-03 Thread J. Landman Gay

Mikey wrote:


Next try, put "field" on the front, so we have
field "Dept 14" of card "Dept Personnel" of stack "mainstack"

and execute "if there is a fieldname"
which returns true.  Great!  Uh, maybe not.  Now I have to extract the
contents of this field


  put there is a fieldname
  get the text of fieldname

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problem with field references

2008-07-03 Thread Mark Schonewille

Mikey,

Try this:

  put the long name of field "Field Name" into myFld
  put the text of myFld

While running this syntax, make sure that you are aware of what is in  
the variable myFld, e.g. by changing the last line into


  put myFld & cr & the text of myFld

Good luck with this.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 3 jul 2008, at 22:55, Mikey wrote:


GAH!  OK, if I
put field fieldname

or put (there is a field fieldname) I get a failure.

However if I
do "put field "&&fieldname
or
do "put there is a field"&&fieldname

I get success.


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problem with field references

2008-07-03 Thread Jim Ault
Mikey, do you understand why Rev gave errors for...

put field fieldname
put (there is a field fieldname)

with the way you constructed the variable fieldname?

Jim Ault
Las Vegas
On 7/3/08 1:55 PM, "Mikey" <[EMAIL PROTECTED]> wrote:

> GAH!  OK, if I
> put field fieldname
> 
> or put (there is a field fieldname) I get a failure.
> 
> However if I
> do "put field "&&fieldname
> or
> do "put there is a field"&&fieldname
> 
> I get success.


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problem with field references

2008-07-03 Thread BNig

Mikey,

I have a stack with a field "f1" with some text in it
and a substack of this stack with a field "f2" and a button

the script of the button is

---
on mouseUp
put "field "& quote & "f1" & quote & "of  card 1 of  stack " & quote &
"s1" & quote into tcompleteReferenceVariable
if there is  tcompleteReferenceVariable then put "true" & return into
field "f2"
put the value of tcompleteReferenceVariable after field "f2"
end mouseUp

this works for me

I thought it was something like that you were trying to do

however, whatever works

regards

bernd



Mikey-3 wrote:
> 
> GAH!  OK, if I
> put field fieldname
> 
> or put (there is a field fieldname) I get a failure.
> 
> However if I
> do "put field "&&fieldname
> or
> do "put there is a field"&&fieldname
> 
> I get success.
> 
> -- 
> Will Rogers  - "I don't make jokes. I just watch the government and report
> the facts."
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-field-references-tp18267262p18268246.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problem with field references

2008-07-03 Thread Mikey
GAH!  OK, if I
put field fieldname

or put (there is a field fieldname) I get a failure.

However if I
do "put field "&&fieldname
or
do "put there is a field"&&fieldname

I get success.

-- 
Will Rogers  - "I don't make jokes. I just watch the government and report
the facts."
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problem with field references

2008-07-03 Thread Mikey
nope.  that didn't do it either.

in addition, if I do a put field fieldname I get the error, but of I do "put
field"&&fieldname, it works.
-- 
Bob Hope  - "Middle age is when your age starts to show around your middle."
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problem with field references

2008-07-03 Thread BNig

Hi Mikey-3

put the value of tcompleteReferenceVariable into field "xyz"

puts the content of the referenced field into field "xyz"

hth

Bernd



Mikey-3 wrote:
> 
> This is a little weird.
> 
> 
> 
> Next try, put "field" on the front, so we have
> field "Dept 14" of card "Dept Personnel" of stack "mainstack"
> 
> and execute "if there is a fieldname"
> which returns true.  Great!  Uh, maybe not.  Now I have to extract the
> contents of this field
> obviously put field fieldname into somevariable doesn't work. since
> fieldname evaluates to "field...", resulting in put field field...
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-field-references-tp18267262p18267722.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Problem with field references

2008-07-03 Thread Mikey
This is a little weird.

I have two stacks.  we'll call them mainstack and substack.

In substack I want to build a fieldname from user input and check to see if
it exists on mainstack.

The result of this is a variable fieldname that contains
"Dept 14" of card "Dept Personnel" of stack "mainstack"

if I execute "if there is a field fieldname then"
However, RR doesn't recognize the existence of field fieldname.

Next try, put "field" on the front, so we have
field "Dept 14" of card "Dept Personnel" of stack "mainstack"

and execute "if there is a fieldname"
which returns true.  Great!  Uh, maybe not.  Now I have to extract the
contents of this field
obviously put field fieldname into somevariable doesn't work. since
fieldname evaluates to "field...", resulting in put field field...

So instead I tried deleting the first word of fieldname, but RR can't find
the field again.

So what newfangled way of doing remote field references should I be using
instead of the old-timers HC way?
-- 
Rita Rudner  - "When I eventually met Mr. Right I had no idea that his first
name was Always."
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution