PureBytes Links
Trading Reference Links
|
Salil,
AmiBroker uses c-style null-terminated strings so thereis no
hard-coded limit on length of the string.
You should be able to pass and display 50K text without
problem.
Please note however that output of the commentary is displayed
in the standard Windows
edit control. On older Windows versions edit controls are
limited to 64K see:
<A
href="">http://msdn.microsoft.com/library/default.asp?url="">
There is no such limit on Win NT/2000 and XP
Best regards,Tomasz
Janeczkoamibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Salil V
Gangal
To: <A title=amibroker@xxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, November 02, 2002 4:21
PM
Subject: [amibroker] Questions about
'string' in AFL
Tomasz,
Thanks.
Couple of additional quick questions.
What is the max size of a string variable in AFL ?
If I'm passing a very very long string from VB into
AFL, is there any limit on the size for VB to AFL transfer ?
Can I pass (say) a string of 50K from VB back to AFL and then output it
by WriteIf function ?
Regards,
- Salil V Gangal
Tomasz Janeczko <amibroker@xxxx> wrote:
<BLOCKQUOTE
>
Hello,
For simplicity Guru outputs all texts immediatelly without
need to Write.
For example you can write
"Hello World";
in the commentary window and it will be
displayed.
To disable this you should use EnableTextOutput( FALSE
);
or _N function
EnableTextOutput<FONT
face="Courier New">( FALSE<FONT
color=#000000> ) ;stringAFL =
"Hello World in
Variable"<FONT
color=#000000>;
<FONT face="Arial CE"
size=2>EnableTextOutput<FONT
color=#000000>( TRUE ) ;
WriteIF( 1 > 0, stringAFL,stringAFL);
or use
_N( stringAFL =
"Hello World in
Variable" )<FONT
color=#000000>;
WriteIF( 1 > 0,
stringAFL,stringAFL);
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Salil
V Gangal
To: <A
title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, November 02, 2002
4:00 PM
Subject: [amibroker] 'Hello World'
duplicate output in Guru
<FONT
size=2>
Friends,
Wrote a very simple script for Guru in AFL. I'm confused
about the duplicate output I'm getting. Following script produces
duplicate output in the Commentary for 'Hello World in Variable".
EnableTextOutput<FONT
face="Courier New">( <FONT
color=#ff00ff>1 ) ;<FONT
color=#000000>
string<FONT
face="Courier New">AFL = <FONT
color=#ff00ff>"Hello World in
Variable"<FONT
color=#000000>;
WriteIf<FONT
face="Courier New">(<FONT
color=#ff00ff>1><FONT
color=#ff00ff>0<FONT
color=#000000>,stringAFL,stringAFL);<FONT
color=#000000>
WriteIf<FONT
face="Courier New">(<FONT
color=#ff00ff>1><FONT
color=#ff00ff>0
<FONT
color=#ff00ff> <FONT
color=#000000>,"Hello World
HardCoded"
<FONT
color=#ff00ff> <FONT
color=#000000>,"Hello World<FONT
color=#ff00ff> HardCoded"
<FONT
color=#000000>);
Any input about why ? And how to stop this sort of duplicate output
?
Regards,
- Salil V
Gangal
<FONT
color=#000000>
Do you Yahoo!?<A
href="">HotJobs
- Search new jobs daily now Post AmiQuote-related messages
ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Do you Yahoo!?<A
href="">HotJobs
- Search new jobs daily now Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
|