Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code to debug
Message
De
20/07/1998 21:27:56
 
 
À
20/07/1998 16:53:35
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00119466
Message ID:
00119546
Vues:
13
>What is wrong with the code below? I am trying to call an existing class.
>
> SET CLASSLIB TO 'c:\Jim\Jim' ALIAS Searchform
> frmSearch = CREATEOBJECT('Searchform')
> frmsearch.show
> read events
>
>Thanks
>
>Jim



Ummm, First of all, All Set(), Set xxx command Should not have 'Alias'

Alias is used for short name for Open Table, a better word is for all 'cursor' including Self define cursor such as Select into Cursor!

e.g.
Select * from item into Cursor tmp && Read-only Cursor
use DBF('tmp') again in 0 ALIAS RWITEM
use in tmp
select RWITEM
* rwitem is a Read/write Cursor with your define name 'RWITEM'




So, the syntax on code will be:
&& additive because u may have more than one Classlib
SET CLASSLIB TO 'C:\JIM\JIM.VCX' ADDITIVE 
frmSearch = CREATEOBJECT('Searchform')
frmsearch.show
*Do MyMenu.mpr 
read events


**=============
*Remember to add code at SearchForm.Unload:
Clear Events
Good Luck! if wrong, tell me!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform