Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing a textbox in s grid- strange
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00133047
Message ID:
00133495
Vues:
13
>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
Fil
Voir

Click here to load this message in the networking platform