Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cant write .VCX file ?
Message
De
28/05/1999 04:07:57
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
28/05/1999 03:33:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00223832
Message ID:
00223835
Vues:
22
>Hi all
>
>Need help with error message from code below
>I get error message - "One of the members of this class is based on a non visual Class.cannot write .VCX file"
>the same thing happens with any class I define.
>
>I expected to define a class, place it on a form and the save that class
>
>Code.....
>oOb = createObject("form")
>With oOb
>.visible = .T.
>.addobject("testCont1","testCont")
>
>with .testCont1
>.visible = .T.
>wait
>.SaveAsClass("c:\myClasses\Test" ,"testCont1" )
>endwith
>Endwith
>
>Define CLASS testCont AS container
>procedure click
>? "clicked"
>endproc
>Enddefine
>
>Return
>
>tia
>John Harriss
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform