Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Init. a New Property to work with a File Pointer
Message
From
13/09/1998 05:40:00
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00134212
Message ID:
00135926
Views:
10
>>>>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?
>
>Yea, that would be nice! I could not come up with a good way of doing it in 5. I think by using the project hooks in 6 you could do it. Only thing is you would have to write you own PEM window and extend the scx file, other that that it would be a snap.

Sure, but then there'd be another thing - to redefine the rightclick in the form designer to open my PEM sheet instead of the standard one for my classes... needs some surgery, and would sure need to cut deep into VFP, if ever we knew where to start. Or project hooks really allow for all this? I'll have to study it thoroughly.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform