Normal Topic format date on a printstring command (Read 730 times)
debmckee
Full Member
***
Offline



Posts: 123
Joined: Oct 5th, 2011
format date on a printstring command
Mar 1st, 2012 at 3:31pm
Print Post Print Post  
I am trying to format my date as Mar 1, 2012........
on a printstring command.  It is coming up as 2012/03/01
I tried putting in the command

FormatDate (orderdate) but it gives me an error starting at formatDate.

Is there a different command I can use ?
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: format date on a printstring command
Reply #1 - Mar 1st, 2012 at 3:56pm
Print Post Print Post  
Hello Deb,

In the GlobalCode section of Sesame seasons you will see the function FormatDate() copy and paste that into your GlobalCode section.

Alternatively you can use the @AsFormattedByLE() sbasic command.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
debmckee
Full Member
***
Offline



Posts: 123
Joined: Oct 5th, 2011
Re: format date on a printstring command
Reply #2 - Mar 1st, 2012 at 4:48pm
Print Post Print Post  
Thanks Ray,

Second question, can I enter a vertical line by the same command as a horizontal line by adjusting the width and height? Or is there a specific command for a horizontal line.



I am not finding a lot of printstring examples in the manual.
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: format date on a printstring command
Reply #3 - Mar 1st, 2012 at 5:34pm
Print Post Print Post  
Hello Deb,

You can use PrintBox() to create both vertical and horizontal lines. The code below will draw a black vertical line 2 units wide by 300 tall.

Code
Select All
PrintRGBColor(0, 0, 1)
PrintBox(1, 50, 50, 2, 300) 



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
debmckee
Full Member
***
Offline



Posts: 123
Joined: Oct 5th, 2011
Re: format date on a printstring command
Reply #4 - Mar 1st, 2012 at 7:06pm
Print Post Print Post  
ONE more question...........

How do I do bold and Italic??  I can make it do either.......but not both.

I have tried BI before the font name and IB before the font name
Thanks again.
  
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: format date on a printstring command
Reply #5 - Mar 2nd, 2012 at 1:44am
Print Post Print Post  
Use "b" for Bold, use "i" for italics, and use "p" for both bold and italics together, like "pArial".

It is best to always use the "b" for bold vs relying on a bold font name.  Some of the bold fonts may not always work as expected, so add the "b" at the front, like "bArial Bold".

You should also insert a space in front of the font name to make sure that no enhancements occur, like " Arial" vs. "Arial".
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
magicfish
Member
*
Offline



Posts: 47
Joined: Mar 18th, 2011
Re: format date on a printstring command
Reply #6 - Mar 2nd, 2012 at 11:15am
Print Post Print Post  
Bob_Hansen wrote on Mar 2nd, 2012 at 1:44am:
You should also insert a space in front of the font name to make sure that no enhancements occur, like " Arial" vs. "Arial".


Please explain the reason for your caution a little further.

  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: format date on a printstring command
Reply #7 - Mar 2nd, 2012 at 3:42pm
Print Post Print Post  
magicfish wrote on Mar 2nd, 2012 at 11:15am:
Bob_Hansen wrote on Mar 2nd, 2012 at 1:44am:
You should also insert a space in front of the font name to make sure that no enhancements occur, like " Arial" vs. "Arial".


Please explain the reason for your caution a little further.


It's just a quirk of the underlying toolkit.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged