Information générale
Catégorie:
Codage, syntaxe et commandes
>I have a need to format a date field that I display in a grid in a special format (e.g Thu Sep 3, 1998). I can do this in a textbox that is not part of a grid by putting code in the REFRESH method to set the value of the textbox to the desired string. For example, if the field in the table is called StartDate, and I have a function FormatDate that does the proper formating, then in refresh, I put this.value=FormatDate(StartDate) and all is well. However, this does NOT seem to work in a textbox in a grid. In fact, the refresh method of the textbox does not appear to get called at all.
>HELP!
Sounds like you'll need to work with some of the .Dynamic column properties to get what you want. I've got a grid that has a container with an image and a textbox on the container in column 1. In order to figure out what what picture belongs in that image I've written a method for the grid called .WhatPicture().
The call to this is placed in the .DynamicCurrentControl for column 1. Works.
Steve
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement