>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 RWITEMuse in tmp
select RWITEM
* rwitem is a Read/write Cursor with your define name 'RWITEM'
So, the syntax on code will be:
SET CLASSLIB TO 'C:\JIM\JIM.VCX' ADDITIVE
frmSearch = CREATEOBJECT('Searchform')
frmsearch.show
read events
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.