Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code to debug
Message
From
20/07/1998 21:27:56
 
 
To
20/07/1998 16:53:35
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00119466
Message ID:
00119546
Views:
14
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform