Re: Go to card by its name?

2001-10-11 Thread Domi

Geoff Canyon ecrivait / wrote:

You can move the index-building code into another handler,
buildIndex for example.

Thanks for the idea, Geoff :-)
-- 
Regards,
Dominique

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Go to card by its name?

2001-10-11 Thread Domi

Geoff Canyon ecrivait / wrote:

You can move the index-building code into another handler,
buildIndex for example.

Thanks for the idea, Geoff :-)
-- 
Regards,
Dominique

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Go to card by its name?

2001-10-11 Thread Domi

Raymond E. Griffith ecrivait / wrote:

-- only use Calepin.mc if that is the actual name of the stack. Note also
that you may need to have the period to indicate the mc suffix.

OKay!
In fact, it is a calepin to hold data and personal remarks on ... MC!

I don't know exactly how MC deals with stack names without suffix 
(i.e. at the Desktop level) ... but that works for me :-)
-- 
Regards,
Dominique

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Go to card by its name?

2001-10-11 Thread Domi

Raymond E. Griffith ecrivait / wrote:

-- only use Calepin.mc if that is the actual name of the stack. Note also
that you may need to have the period to indicate the mc suffix.

OKay!
In fact, it is a calepin to hold data and personal remarks on ... MC!

I don't know exactly how MC deals with stack names without suffix 
(i.e. at the Desktop level) ... but that works for me :-)
-- 
Regards,
Dominique

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Go to card by its name? (was: Re: -- all this part will be easierwith 2.4. split variables...)

2001-10-11 Thread Domi

Sivakatirswami ecrivait / wrote:

Make sure the traversal of the button is off otherwise when you click the
button it will first deselect your text and so you are trying to find a
card with no name at all...

In fact, it is a list field.
Properties:
traversal on [had a hard time to understand what that term means ;-]
lock text
auto hilite
list behavior
shared text
-- 
Regards,
Dominique

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Go to card by its name? (was: Re: -- all this part will be easierwith 2.4. split variables...)

2001-10-11 Thread Domi

Sivakatirswami ecrivait / wrote:

Make sure the traversal of the button is off otherwise when you click the
button it will first deselect your text and so you are trying to find a
card with no name at all...

In fact, it is a list field.
Properties:
traversal on [had a hard time to understand what that term means ;-]
lock text
auto hilite
list behavior
shared text
-- 
Regards,
Dominique

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Go to card by its name?

2001-10-10 Thread Raymond E. Griffith

on Domi [EMAIL PROTECTED] on Tue, 9 Oct 2001 11:01:17 +0200 requested:
 
  go to card name  doesn't seem to function!
 MC 2.4b4
 
 I made sort of of Calepin (note pad) with MC notes.
 It is very simple, with a title field and a text field.
 I added an Index substack, in which I copy the titles, one by line.
 That works.
 
 Now I want to go back to the choosen card:
 if I want to go to a card by its name, it doesn't work.
 But that works if I go to a card by its number!
 The card is given a name on opencard, according to the title field.
 
 for instance, this works:
 
 on mouseUp
 put word 2 of the selectedline into lacarte
 go card lacarte of stack Calepin MC
 end mouseUp
 
 but not;
 
 on mouseUp
 put quote  the selectedtext  quote into lacarte
 go card lacarte of stack Calepin MC

go card(lacarte) of stack Calepin

-- only use Calepin.mc if that is the actual name of the stack. Note also
that you may need to have the period to indicate the mc suffix.

 end mouseup
 
 I added the quotes, but that didnt' helped
 
 QUID?
 -- 
 Regards,
 Dominique
 
Cheers!

Raymond


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Go to card by its name?

2001-10-09 Thread Domi

 go to card name  doesn't seem to function!
MC 2.4b4

I made sort of of Calepin (note pad) with MC notes.
It is very simple, with a title field and a text field.
I added an Index substack, in which I copy the titles, one by line.
That works.

Now I want to go back to the choosen card:
if I want to go to a card by its name, it doesn't work.
But that works if I go to a card by its number!
The card is given a name on opencard, according to the title field.

for instance, this works:

on mouseUp
   put word 2 of the selectedline into lacarte
   go card lacarte of stack Calepin MC
end mouseUp

but not;

on mouseUp
  put quote  the selectedtext  quote into lacarte
   go card lacarte of stack Calepin MC
end mouseup

I added the quotes, but that didnt' helped

QUID?
-- 
Regards,
Dominique

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Go to card by its name?

2001-10-09 Thread Dave Cragg

At 11:01 am +0200 9/10/01, Domi wrote:
 go to card name  doesn't seem to function!
MC 2.4b4

I made sort of of Calepin (note pad) with MC notes.
It is very simple, with a title field and a text field.
I added an Index substack, in which I copy the titles, one by line.
That works.

Now I want to go back to the choosen card:
if I want to go to a card by its name, it doesn't work.
But that works if I go to a card by its number!
The card is given a name on opencard, according to the title field.

for instance, this works:

on mouseUp
   put word 2 of the selectedline into lacarte
   go card lacarte of stack Calepin MC
end mouseUp

but not;

on mouseUp
  put quote  the selectedtext  quote into lacarte
   go card lacarte of stack Calepin MC
end mouseup

I added the quotes, but that didnt' helped

I don't think you want to add the quotes. But to check whether it's a 
navigation problem or a problem with getting the text from the index 
field, first see what is in the lacarte variable.

on mouseUp
  put quote  the selectedtext  quote into lacarte
  put lacarte ##DEBUG CHECK
end mouseup

If the message box doesn't show an appropriate card name, then 
there's something wrong with the way you're getting the text from the 
field. (Does the button you click on have the traversalOn property 
set? This would remove the selection from the field when you click on 
it. Try turning it off.)

If the text in the message box seems appropriate, then check that you 
haven't changed the card name somehow.

QUID?
Payment not necessary. U.K. joke. :)

Cheers

Dave Cragg

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Go to card by its name?

2001-10-09 Thread Klaus

Bonjour Domi,

...
 for instance, this works:
 
 on mouseUp
   put word 2 of the selectedline into lacarte
   go card lacarte of stack Calepin MC
 end mouseUp
 
 but not;
 
 on mouseUp
  put quote  the selectedtext  quote into lacarte
   go card lacarte of stack Calepin MC
 end mouseup

Try this: If the selectedtext is in a list-field, you should
add more info for MetaCard to make it work.

...
put the selectedtext of field le_list-field into lacarte
## some error-checking is always helpful...
if there is a card lacarte then
   go cd lacarte
else
   beep  ## to have some acoustic feedback :-)
   answer Merde alors!!! Cette carte n'existe pas du tout !!!
## optional ;-)
end if
...

No quotes necessary, definitively !!!

Now if it beeps, there is NO card with that name, definitively !!!

If the selectedtext is NOT in a list-field, check the answer of Dave.
In that case the selection may somehow be gone, so the selectedtext
will be empty !!!

...
 I don't think you want to add the quotes. But to check whether it's a
 navigation problem or a problem with getting the text from the index
 field, first see what is in the lacarte variable.
 
 on mouseUp
 put quote  the selectedtext  quote into lacarte
 put lacarte ##DEBUG CHECK
 end mouseup
 
!!! This is the important part 
 If the message box doesn't show an appropriate card name, then
 there's something wrong with the way you're getting the text from the
 field. (Does the button you click on have the traversalOn property
 set? This would remove the selection from the field when you click on
 it. Try turning it off.)
 
 If the text in the message box seems appropriate, then check that you
 haven't changed the card name somehow.
!!! This is the important part 
 
 QUID?
 Payment not necessary. U.K. joke. :)

In case you are not familiar with the dark, english humour:

QUID is bad english slang for one british pound ;-)

By the way, what do you want to express with QUID (quoi :-) ???


Hope this helps.
If not, feel free to ask more questions, until we solved your problem.

And be sure, we will  :-D


A bientot

Klaus Major [EMAIL PROTECTED]
MetaScape GmbH


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




RE: Go to card by its name?

2001-10-09 Thread xbury . cs

I usually do also a card check

on mouseup
put the selectedtext of fld index into x
if there is a card x then go to card x
else answer No such card
end mouseup

variations...

go to card x
if the result is not empty then answer it  return  card:  X




 -Original Message-
 From: Dave Cragg [mailto:[EMAIL PROTECTED]]
 Sent: 09 October 2001 12:37
 To: [EMAIL PROTECTED]
 Subject: Re: Go to card by its name?
 
 
 At 11:01 am +0200 9/10/01, Domi wrote:
  go to card name  doesn't seem to function!
 MC 2.4b4
 
 I made sort of of Calepin (note pad) with MC notes.
 It is very simple, with a title field and a text field.
 I added an Index substack, in which I copy the titles, one by line.
 That works.
 
 Now I want to go back to the choosen card:
 if I want to go to a card by its name, it doesn't work.
 But that works if I go to a card by its number!
 The card is given a name on opencard, according to the title field.
 
 for instance, this works:
 
 on mouseUp
put word 2 of the selectedline into lacarte
go card lacarte of stack Calepin MC
 end mouseUp
 
 but not;
 
 on mouseUp
   put quote  the selectedtext  quote into lacarte
go card lacarte of stack Calepin MC
 end mouseup
 
 I added the quotes, but that didnt' helped
 
 I don't think you want to add the quotes. But to check whether it's a 
 navigation problem or a problem with getting the text from the index 
 field, first see what is in the lacarte variable.
 
 on mouseUp
   put quote  the selectedtext  quote into lacarte
   put lacarte ##DEBUG CHECK
 end mouseup
 
 If the message box doesn't show an appropriate card name, then 
 there's something wrong with the way you're getting the text from the 
 field. (Does the button you click on have the traversalOn property 
 set? This would remove the selection from the field when you click on 
 it. Try turning it off.)
 
 If the text in the message box seems appropriate, then check that you 
 haven't changed the card name somehow.
 
 QUID?
 Payment not necessary. U.K. joke. :)
 
 Cheers
 
 Dave Cragg
 
 Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
 Info: http://www.xworlds.com/metacard/mailinglist.htm
 Please send bug reports to [EMAIL PROTECTED], not this list.
 


Visit us at http://www.clearstream.com   
  
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does not
accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally 
privileged. It is
intended solely for the addressee. If you are not the intended recipient, any 
disclosure,
copying, distribution or any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. Any views expressed in this e-mail are those of the
individual sender, except where the sender specifically states them to be the views of
Clearstream International or of any of its affiliates or subsidiaries.

END OF DISCLAIMER

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Go to card by its name?

2001-10-09 Thread PEChumbley
In a message dated 10/9/01 5:04:08 AM Central Daylight Time, [EMAIL PROTECTED] writes:


on mouseUp
 put word 2 of the selectedline into lacarte
 go card lacarte of stack "Calepin MC"
end mouseUp


the selectedLine function returns information of the order "line 2 of field 3." Thus when yoru example above did not call the card by it's name but rather by its number in the stack. For the example just given, your third statemnet above said 'go card 2 of stack "Calepin MC"'. What you should have had instead was:

on mouseUp
 put line (word 2 of the selectedLine) of me into lacarte
 go card lacarte of stack "Calepin MC"
end mouseUp


on mouseUp
 put quote  the selectedtext  quote into lacarte
 go card lacarte of stack "Calepin MC"
end mouseup


This example should read:

on mouseUp
 put the selectedText into lacarte
 go card lacarte of stack "Calepin MC"
end mouseUp

Hope this helps.

Regards,

Philip Chumbley


Re: Go to card by its name?

2001-10-09 Thread Domi
Title: Re: Go to card by its name?


Domi ecrivait / wrote:

if I want to go to a card by its name, it doesn't work.

Thanks to all of you!
That works now -- if I take into account the way my cards are
named ;-)

I noticed that the index is not
refreshed if its window stays opened...

A change in the title field or a new card
is not immediately acknowledged (I resort to opencard
;-))


Dave (and Klaus), I will henceforth pay attention to QUID
;-)

-- 
Regards,
Dominique



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.



Re: Go to card by its name?

2001-10-09 Thread Geoff Canyon

At 8:42 PM +0200 10/9/01, Domi wrote:
I noticed that the index is not refreshed if its window stays opened...

A change in the title field or a new card  is not immediately acknowledged (I resort 
to opencard ;-))

You can move the index-building code into another handler, buildIndex for example. 
Then put buildIndex into your openCard handler, and in the stack with the cards, 
insert a 'send buildIndex to stack indexStack' in the appropriate places to get 
the updates done.

regards,

gc


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.