[ ]
I have the following bit of cut & pasted code I am using. It works well. However to my way of thinking it is convoluted. Is there a better way of doing this?
[blue]
IF ALLTRIM(m.tablename) $ z
ELSE
DELETE TAG ALL
z = z + ALLTRIM(m.tablename) + ','
ENDIF
[/blue]
I know that I could do this, but to me it is no improvement:
[blue]
DO CASE
CASE ALLTRIM(m.tablename) $ z
OTHERWISE
DELETE TAG ALL
z = z + ALLTRIM(m.tablename) + ','
ENDCASE
[/blue]
mmerlinn
"We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding. Answering questions for careless and sloppy thinkers is not rewarding." - Eric Steven Raymond
I have the following bit of cut & pasted code I am using. It works well. However to my way of thinking it is convoluted. Is there a better way of doing this?
[blue]
IF ALLTRIM(m.tablename) $ z
ELSE
DELETE TAG ALL
z = z + ALLTRIM(m.tablename) + ','
ENDIF
[/blue]
I know that I could do this, but to me it is no improvement:
[blue]
DO CASE
CASE ALLTRIM(m.tablename) $ z
OTHERWISE
DELETE TAG ALL
z = z + ALLTRIM(m.tablename) + ','
ENDCASE
[/blue]
mmerlinn
"We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding. Answering questions for careless and sloppy thinkers is not rewarding." - Eric Steven Raymond