Bogdan
29th October 2013, 18:45
Hi,

I want to print "[" character in BaaN IVc4 but if I use chr$(91) I got "<Ctrl>[" instead of "[" and if I am trying directly "[" I got Index out of dims error.

Does anybody know how to print this character ?

Thank you,
Bogdan

shah_bs
29th October 2013, 18:55
Did you try "\["?

Bogdan
29th October 2013, 19:00
The same situation, I got "\<Ctrl>[" :(

mark_h
29th October 2013, 19:35
Is this on a printer or on form?

bhushanchanda
29th October 2013, 19:39
Hi,

Have you tried chr$(091) or chr$(005B)/ B ?

Bogdan
29th October 2013, 19:41
In fact I am writing into a text file with seq.write.local.
For example:

string="Fields["
seq.write.local(string,len(string),file)

is returning Fileds<Ctrl>[ instead of Fields[

mark_h
29th October 2013, 19:41
Well I just put [] on a form and on a report(sending the report to the screen). Both worked just fine. So I must be missing something.

Bogdan
29th October 2013, 19:45
Into a report or form it's ok, but when trying to write it into a file it stick with <Ctrl>

chr$(091) is returning Index out of dims
chr$(005B) is not compiling, "b" not expected

mark_h
29th October 2013, 19:48
Since you are writing to the local client - did you open it with the t option? Going to give a whirl myself in a minute.

bhushanchanda
29th October 2013, 19:53
Hi,

Try this:-

It works for me, though I am on LN.

long i
i = seq.open("C:\temp\bhush123.txt","w")
test = chr$(91) & "Bhushan" & chr$(91)
seq.puts(test,i)
seq.close(i)

Bogdan
29th October 2013, 20:11
Hi bhushanchanda,

I tried, the point is into the file the view is correct, but there's a hidden <Ctrl> character before the "[".

Can you please in your test try also

message(test)

and tell me if you see the <Ctrl> character ?

Thank you very much,
Bogdan

bhushanchanda
29th October 2013, 20:24
Hi,

I tried message(test) and it displays the message correctly.

i.e. [Bhushan[

mark_h
29th October 2013, 20:53
That might be LN. I tried this on 4c4.

function test.local()
{
string some.str(30)
inputfile = seq.open.local("c:\\temp\\test.txt", "w", 0)
some.str = "fields["
if inputfile<>0 then
message(some.str)
seq.write.local(some.str,30,inputfile)
seq.close.local(inputfile)
endif
}

The text file that was created - opening in notepad I do not see any ctrl character. Nor do I see a control character if I use scite. BUT in the message statement I see fields<ctrl>[.