Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cant write .VCX file ?
Message
From
28/05/1999 05:28:17
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/05/1999 04:59:40
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00223832
Message ID:
00223853
Views:
24
Hi John,
How do you add the code ? Readmethod, writemethod ? If so writemethod works only at design (creation) time or you might have missed the quotes (I do:).
Writing directly to vcx and recompiling works. I do like this :
use some.vcx
locate the control (there are two lines with the same objname - the first one)
open methods and add, modify code.
use
compile classlib (libname)

At designtime (builders:) aselobj(), readmethod,writemethod() combination works well. I have a very little dirty grid builder that I never have a feeling to convert to vcx. It just replaces controls with classes I want :) I had posted the code in one of the threads and I'm sure there is "..dirty grid.." words in it if you want to search it :)
Cetin
>Cetin
>Thanks heaps for that, I tried what you said and it worked OK to the point that the subclass was saved and included new methods that I wanted using PROCEDURE - ENDPROC. However the code does not seem to be included eg
>PROCEDURE newMethod
>? "This is a New Method "
>ENDPROC
>when I go to modify class, I see the new method but not the code.What am I missing ?
>btw I am trying to implement a grid builder too. This is about my 5th improvement where as a final step I wanted to add a "bindData" method to the saved grid class that has the code to rebind the grid data columns whenever required.This code is auto generated and at present I have to go to modify the new class, create a bindData method and paste the code in.
>One other thing I tried, was to programatically, open the VCX table and add the new method in the Method memo field and then to recompile the VCX. I am wondering why that did not work.
>thanks again
>John
>
>>John,
>>Wish that could be done this way. As in help :
>>"Note You can use the SaveAsClass method only if the class originates from a >class library (.VCX)."
>>Create the form and container visually in designer and choose >file\saveasclass. Later you might change at runtime and call SaveAsClass (I do >that for grids to have layout as I want or generate multipl grids from >different SQL - except width).
>>Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform