exactly. Thank you Terry. Regards Robert
--- In [email protected], "Terry" <[EMAIL PROTECTED]> wrote: > > Try this link at Microsoft > <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore > 98/HTML/_crt_format_specification_fields_.2d_.printf_and_wprintf_functio > ns.asp> . > > -- > > Terry > > > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of rhoemke > Sent: Wednesday, August 23, 2006 14:49 > To: [email protected] > Subject: [amibroker] Re: two digit hour > > > > 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 [email protected], "Tomasz Janeczko" <groups@> wrote: > > > > > > StrFormat("%02.0f", Hour()); > > > > > > Best regards, > > > Tomasz Janeczko > > > amibroker.com > > > ----- Original Message ----- > > > From: "rhoemke" <robert@> > > > To: <[email protected]> > > > 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 > > > > http://groups.yahoo.com/group/amibroker/ > > > > [EMAIL PROTECTED] > > > > http://docs.yahoo.com/info/terms/ > 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/
