[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] How to append to a TITLE ?



PureBytes Links

Trading Reference Links

Title needsw a string to start with, like using name()
If you do not want the symbol first then use this
Title = ""+VarGet("BuyT"+bar);
or this works as well
Title = NumToStr(VarGet("BuyT"+bar),1);

Did you have the VarGet( "Title" + ident )  correct?

--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


On 1/5/06, Steve Dugas <sjdugas@xxxxxxxxxxx> wrote:
> Hello TJ,
>
> Using VarGet when Title is not previously defined, I get a "type mismatch"
> error when the new Title includes a string. For example:
>
> Title = VarGet( "Title" ) + "a string";  // type mismatch error if Title not
> defined.
>
> I tried to fix it by wrapping VarGet inside NumToStr
>
> Title = NumToStr( VarGet( "Title" ) ) + "a string";
>
> but now "{EMPTY}" is included in the title. I tried several different
> workarounds to get rid of it, but can't seem to find a way that works. Would
> you happen to know any way around this?
>
> Thanks very much!
>
> Steve
>
> ----- Original Message -----
> From: "Tomasz Janeczko" <amibroker@xxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Monday, November 28, 2005 1:58 PM
> Subject: Re: [amibroker] How to append to a TITLE ?
>
>
> > Hello,
> >
> > You can use VarGet - it won't bomb out if variable is undefined.
> >
> > http://www.amibroker.com/f?varget
> >
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> > ----- Original Message -----
> > From: "ckinsey2003" <ckinsey2003@xxxxxxxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Monday, November 28, 2005 7:25 PM
> > Subject: [amibroker] How to append to a TITLE ?
> >
> >
> >> If a TITLE exist TITLE = TITLE + "\nAppended text" works fine.
> >>
> >> But if no "TITLE" exist it bombs off since TITLE undefined.
> >>
> >> Checking for a "TITLE" ie  IIF(TITLE = NULL causes the same problem.
> >>
> >> TIA,   Jack Kinsey
> >>
> >>
> >>
> >>
> >>
> >>
> >> Please note that this group is for discussion between users only.
> >>
> >> To get support from AmiBroker please send an e-mail directly to
> >> SUPPORT {at} amibroker.com
> >>
> >> For other support material please check also:
> >> http://www.amibroker.com/support.html
> >>
> >>
> >> Yahoo! Groups Links
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> > Please note that this group is for discussion between users only.
> >
> > To get support from AmiBroker please send an e-mail directly to
> > SUPPORT {at} amibroker.com
> >
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/