Results 1 to 5 of 5

Thread: Format a date or string in MSHFlexGrid

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2001
    Location
    Anywhere
    Posts
    136

    Wink Format a date or string in MSHFlexGrid

    Hi Guys,
    can you please tell me how to Format a date or string in cols in a MSHFlexGrid (dd/mm/yyyy)

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    How does the date get put into MSFlexGrid?

    I'm thinking that if you are populating the MSFlexGrid based on the return of a recordset, you could format the recordset element containing the date before the grid gets populated.

    If the date is being input via a Text box, then, again, you can format it before the code you have to place it on the grid.

  3. #3
    New Member
    Join Date
    Aug 2001
    Posts
    13

    Talking

    MSHFlexGrid.TextMatrix(YourRow, YourCol) = Format$(MSHFlexGrid.TextMatrix(YourRow, YourCol) ,"mm/dd/yy")

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2001
    Location
    Anywhere
    Posts
    136

    Smile Thanks guys

    sethindeed, can't i just format a whole col instaed of every cell ?

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2001
    Location
    Anywhere
    Posts
    136

    Thanks Hack

    I don't know why but Sethindeed method didn't work.
    Can you telle me Hack how to format the recordset element containing the date before the grid gets populated.

    Thanks for your time

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width