Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid & Memo and other problems...
Message
 
 
À
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:
00228177
Vues:
21
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).

(I try checkbox before and I don't like it).

I tried and tried and tried ... - and tried on the test form - just greed with all fields and what I finally see in my column (I use quotations, because without them I have an error message):

iif(bldMstr1.ADCDesc,'Y','N') - In the whole column :)) or :(((((((((
instead of Y or N

So, I found something weird here and can not win...

As for my actual form - I put the quotations and still have blank grid...

So, may be I'll continue my fight tomorrow, but may be not - because only I want to find "istina" here (forgot this word in English right now) and my manager doesn's care ...

>
>> 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.

Yes, you're right. One little problem here - we work as a team and use predefined set of classes, and I am not a person, who can change our classes.

Sure, I can design my own and use it in my app, but don't want...

>> 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.

May be you can send me a sample? (nnosonov@thewarrengroup.com)

>> 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 :).

Yes, you right again. But if I have 50 I can not say by number if I received new messages or not, I have to check them. So, now I have 45 and if tomorrow I'd have more it means I got something :)

Thanks all of you for your patience and responses.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform