Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Init. a New Property to work with a File Pointer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00134212
Message ID:
00135662
Vues:
13
>>>>How do I initalize a New property to work with a FILE Pointer from fcreate/fopen?
>>>>
>>>
>>>You can say Thisform.FilePointer=0, if you want, but it's unnecessary. It's enough to create it and later fire:
>>>Thisform.FilePointer=FCREATE("c:\temp\myfile.txt")
>>
>>This leads me to something my programmer asked me yesterday. Say, we can add new properties to classes at design time, and they become completely equal to the base properties. Right? Wrong. There's no way to have a file selector, color picker, listbox or whatever clickable in the PEM window for the custom properties. None that I know; I had to tell him to be satisfied with the comment available, it will at least give some hunch to anyone who uses the class as to what the property should represent. Still, I'd like to be able to declare the type of the property (numeric, integer, integer in the range 0-10, color integer, filename, picture filename, icon filename...).
>>
>>Is this possible to have in VFP?
>
>I guess that new Assign event allows to check and limit property value and datatype.

But that only works at run time. I think Dragan is talking about design time. If I added a property to a class and wanted the possible inputs to be 1,2,3,4,5 only. When I wanted to use that class I could drop on a form and in the PEM window for that propert a drop down would appear with 1,2,3,4,5 for me to select from.

Jeff

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform