Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM Server does not take parameters
Message
From
06/09/2000 15:10:02
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
COM Server does not take parameters
Miscellaneous
Thread ID:
00413156
Message ID:
00413156
Views:
46
I have the following class & init:
Define Class myClass As Custom OLEPublic

  myFile=""
  Proc Init
    Parameters cFile
    If Not Empty(cFile) Then
      This.myFile=cFile
      MessageBox("The file is " + cFile, 64, "Parameters")
    Else
      MessageBox("Required parameter missing.", 48, "Parameters")
      Return .F.
    Endif
    *-- more code goes here
  EndProc

  *-- more procs go here.

EndDefine
When I do CreateObject('myexe.myClass','c:\temp\test.xml') it always branches to the "required parameter missing". What gives? TIA
Next
Reply
Map
View

Click here to load this message in the networking platform