Re: [MyMacros] Syntax problem in %For

2003-11-08 Thread Alexander Leschinsky
Hello Thomas,

   On Fri, 7 Nov 2003 22:32:23 +0100 (08.11.2003 02:32 my local time)
   you wrote about [MyMacros] Syntax problem in %For
   at least in part:

TW I think it's a syntax problem in the %for loop. Can someone take a
TW look?
Well, I suppose, For can (and really) work. I grab example from Andrey's
page and tested for with you message
 
 %_Ncb=%OTEXT%-
 %For(1,%CountLines('%_Ncb'),Ncbc,%-
 %%TextBar(' ','%%_Ncbc','','4')   %-
 %%GetLine('%%_Ncbc','%%_Ncb')
 )
produced (sorry for full long output) such correct results

   1   Hello
   2   
   3   I'm searching for a workaround for my special leading spaces problem
   4   and I tested the MyMacro 1.07 plugin with following syntax:
   5   
   6   %_lnCount=%CountLines('%TEXT')%-
   7   %For(1,%_lnCount,forCount,%TRIM(`%GetLine('%%_forCount','%TEXT')`))%-
   8   
   9   The result is always  .
  10   
  11   I think it's a syntax problem in the %for loop. Can someone take a
  12   look?
  13   
  14   -- 
  15   Thomas.
  16   
  17   
  18   
  19   
  20   
  21   
  22   
  23   http://www.silverstones.com/thebat/TBUDLInfo.html
  24   

I think, you doesn't grok meaning of %Eval macro, which used
(internally) for processing last parameter of For macro

Anyway, my modification works as requested :-)
-8-- from WinClipboard
%_Src=%OTEXT%-
%_lnCount=%CountLines('%_Src')%-
%For(1,%_lnCount,forCount,%%Trim([%%GetLine('%%_forCount','%%_Src')])%%Chr('13')%%Chr('10'))
-8

-- 
Best regards,
 Alexander Leschinsky

- MOTD:
Aristotle was famous for knowing everything. He taught that the brain exists merely to 
cool the blood and is not involved in the process of thinking. This is true only of 
certain persons.
Will Cuppy





http://www.silverstones.com/thebat/TBUDLInfo.html


HTML Mailto: syntax question

2003-11-08 Thread Dan Grunberg
I'd like to include e-mail feedback on our community organization's
Web page. To simplify things, I'd like to the feedback message's
subject and a small bit of the text to be generated automatically.


I found a document on WebMonkey that tells how to generate the subject:

a href=mailto:[EMAIL PROTECTED] YESYES indeed/a


And it works. 

I'd like to include a short bit of canned text. I tried:

a href=mailto:[EMAIL PROTECTED] YES?text=canned textYES indeed/a

And it screwed up the subject without generating anything in the text. 


Help, please.





Using The Bat! v1.62r 
on Windows 2000 5.0 Build 2195Service Pack 4



-- 

Daniel A. Grunberg   Kensington, Maryland, USA
homepage: www.nyx.net/~dgrunber/




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: HTML Mailto: syntax question

2003-11-08 Thread Dierk Haasis
Hello Dan!

On Saturday, November 8, 2003 at 3:51:20 PM you wrote:

 a href=mailto:[EMAIL PROTECTED]
 YES?text=canned textYES indeed/a

I am not an expert, but ... you won't need the HTML tag as mailto:;
is defined as a link (only AOL users may have trouble without HTML
tag).

And what you want belongs into the body of the mail, I guess; the
correct label, I think, is body (without quotation marks).



-- 
Dierk Haasis

The Bat 2.01.26 on Windows XP 5.1 2600Service Pack 1

Everybody loves a winner, but when you lose, you lose alone. (William
Bell)






http://www.silverstones.com/thebat/TBUDLInfo.html


Re: HTML Mailto: syntax question

2003-11-08 Thread Peter Meyns
Hi Dan,

on Sat, 8 Nov 2003 09:51:20 -0500GMT (which was 08.11.03, 15:51 +0100GMT
where I live), you wrote in mid:[EMAIL PROTECTED] :

DG I'd like to include e-mail feedback on our community organization's
DG Web page. To simplify things, I'd like to the feedback message's
DG subject and a small bit of the text to be generated automatically.

DG I'd like to include a short bit of canned text. I tried:

DG a href=mailto:[EMAIL PROTECTED]
DG YES?text=canned textYES indeed/a

Additional entries are started with  instead of ? , and you should use
%20 for a space:

mailto:[EMAIL PROTECTED]body=canned%20text

-- 
Cheers
Peter

Winamp currently playing: Charlatans UK - The Belle And The Butterfly





http://www.silverstones.com/thebat/TBUDLInfo.html