Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid & Memo and other problems...
Message
De
09/06/1999 17:51:47
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00227549
Message ID:
00228169
Vues:
25
>Hi Dragan,
>>> Actually, we decide that the grid is ReadOnly, so I just want to display Yes instead of T I beleive there is a simple solution.
>
> I still didn't solve this simple problem :(( Is there a simple solution?

In this case I'd simply go with what Ed and Bruce told you - use IIf(table.logical_field, "Yes", "No ") as a controlsource. Ed seems to use some quotes around it - try out with or without them until you get it to work, but it's surely the way to go. Or use a checkbox (but then you need to set .sparse for the column).

> Yes, you're right. One little problem here - I need to use my own class textMemo because I create my grid on the "fly", I mean in Init method. So, I need to use AddObject(....), etc.

AddObject is my favorite for more special grids. Gives you more control, and actually allows you to discard the default textbox without much clicking around.

> Actually, right now I solved this problem another way, which satisfied my manager: I know the name of Memo field of my table - Notes, it's only one, so I didn't put it in Grid, I put editbox on my Form instead... - easy solution, but definetely not universal...

I've done that, and I'm planning to make it universal enough. I like it for a search grid class - the searchable columns are in the grid, and the details on the active row are in several controls (including Editboxes) in a container to the right. In AfterRowColChange I just check if I've moved to a new record, and refresh the controls in the container. Works like a charm.

> I have one more unrelated problem - I see 50 messages in my UniversalThread mailbox and don't see new messages. What do I need to do - delete all prev. messages? How can I keep them?

You should see the latest 50 replies to your messages. If you don't see the new ones (like this one)... call Michel :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform