dbTalk Databases Forums  

REMMs in macros in case select list is active

comp.databases.pick comp.databases.pick


Discuss REMMs in macros in case select list is active in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Frank Winans
 
Posts: n/a

Default REMMs in macros in case select list is active - 04-07-2011 , 11:35 PM






I often test macros by disabling the tail end of a sselect line, as in
001 N
002 sselect myfile with a3 # "tree" and with a4 = "0"
003 sort myfile (p
getting tweaked to be
001 N
002 sselect myfile with a3 # "tree"
003 REM and with a4 = "0"
004 sort myfile (p

But unlike the PROC "C"omment line feature, the REM verb eats
the select list. So the SORT would show all items, due to the REM

A small PROC " REMM" will work ok, though;

000 REMM
001 PQ
002 C Use remm instead of rem in macro remarks lines to
presererve active list
002 IF #S X
003 HSAVE-LIST REMM@PIB
004 PH
005 HGET-LIST REMM@PIB
006 PH

Similarly, a DISPLAYY proc could save-list foo / display whatever /
get-list foo
note: remember to put space after y of hdisplay
a\(10,999)
p
Frank

Reply With Quote
  #2  
Old   
Frank Winans
 
Posts: n/a

Default Re: REMMs in macros in case select list is active - 04-07-2011 , 11:44 PM






Actually, just an empty proc will work fine, too...
Quote:
000 REMM
001 PQ

So why'd RD go to the trouble of building up a verb "REM",
was it just to be backwards compatible with R83 or something?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.