Oh my god, THAT easy? Ooops :) Thank you Thomasz.
I had this (info for dingo): if(LastValue(Hour())< 10) hh = "0" + NumToStr(Hour(), 2.0); else hh = NumToStr(Hour(), 2.0); And i still dont know why it doesn't work this way. Where do i find more info about these formatting things? I see this Note 1 in AFL reference for StrFormat but it doesn't tell all about how to use this stuff: Note 1: for numbers always use %f, %e or %g formatting, %d or %x will not work because there are no integers in AFL. Regards Robert (very happy :) ) --- In amibroker@yahoogroups.com, "Tomasz Janeczko" <[EMAIL PROTECTED]> wrote: > > StrFormat("%02.0f", Hour()); > > Best regards, > Tomasz Janeczko > amibroker.com > ----- Original Message ----- > From: "rhoemke" <[EMAIL PROTECTED]> > To: <amibroker@yahoogroups.com> > Sent: Wednesday, August 23, 2006 5:38 PM > Subject: [amibroker] two digit hour > > > > Hello, > > > > i need to get a string with actual hour always in two digits to put it > > into GAT Orders. > > Maybe i am too stupid today, but i don't get it done. > > Someone who got a solution? > > > > > > > > > > > > > > > > > > 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/