The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: oex on July 06, 2010, 01:38:49 AM

Title: missing right parenthesis.... buggy hell
Post by: oex on July 06, 2010, 01:38:49 AM
mov esi, chr$("chr$(""Name""), chr$(""")

OK this is silly.... it's not hard what am I missing? I want main chr$("") to hold:

chr$("Name"), chr$("

(ending in " ready for next line to combine with register string ie)

chr$("Name"), chr$("Variable Name

")

I get "error A2157: missing right parenthesis".... Is there a pre-char I can add like "" works?


EDIT: OK sorry fixed it.... For the record I used:

chr$("chr$(""Name""), chr$",40,34)
Title: Re: missing right parenthesis.... buggy hell
Post by: dedndave on July 06, 2010, 03:59:10 AM
put it in as a decimal (or even hex, i suppose)

print chr$('hello world'),13,10

i use 13 and 10 because i can't put the literals there
same dealeo

also - i don't think you need all that nesting of "chr$"
print chr$('hello world',13,10,'new line'),13,10
Title: Re: missing right parenthesis.... buggy hell
Post by: oex on July 06, 2010, 05:21:01 AM
:lol yeah I did it was for code output
Title: Re: missing right parenthesis.... buggy hell
Post by: dedndave on July 06, 2010, 03:35:32 PM
i see that, now - they are part of the text - you got me   :lol