HOME  FORUM  LINKS

Site Menu

Development

Director

Hosting Support

Quick Links

V720 Director Lists

{-----------------------------------------------------------------------------
 Unit Name: v72Unit
 Author: Tony Domigan
 Purpose: Test DXLIB receiving and returning of Director lists
 History: 09May02
-----------------------------------------------------------------------------}

Unit v72Unit;

Interface

Uses DXClasses, Windows;

Type
  Tv72=Class(TDXScript)
  Protected
    Procedure ExecuteFunction(FunctionIndex:Cardinal; Const ArgList:IDXArgList;
      Const Result:IDXValue); override;
  Public
    Class Procedure GetScriptInfo(Var ScriptInfo:TDXScriptInfo); override;
    Class Procedure InitializeClass(Const Info:TDXInitializeClassInfo); override;
  End;

Implementation

Const
  CLSID_Script:TGUID='{52C58061-6335-11D6-9137-004F4900150E}';

Class Procedure Tv72.GetScriptInfo(Var ScriptInfo:TDXScriptInfo);
Begin
  ScriptInfo.MessageTable:='xtra v72'#10+
    // Add method declerations here
    '* myListMethod inputList String'#10+
    '* myDelphiList'#10+
    '* mylinearListMethod inputList String'#10;
End;

Class Procedure Tv72.InitializeClass(Const Info:TDXInitializeClassInfo);
Begin
End;

Procedure Tv72.ExecuteFunction(FunctionIndex:Cardinal;
  Const ArgList:IDXArgList; Const Result:IDXValue);
Procedure myListMethod(inputList : String);
Begin
  // do something to it and return it to Director
  inputList:='[#a:"1",#b:"2",#c:"3",#d:"FOUR"]';
  Result.Text:=inputList;
End;
Procedure myDelphiList;
Begin
Result.Text:='[#a:"1",#b:"TWO",#c:"3"]';
End;
Procedure myLinearListMethod(inputList : String);
Begin
  // I will just return a dummy result
  Result.Text:='[9,8,7,6]';
End;
Begin
  Case FunctionIndex Of
  0: myListMethod(argList[0].Text);
  1: myDelphiList;
  2: myLinearListMethod(argList[0].Text);
  End;
End;

Initialization
  RegisterDXClass(Tv72,CLSID_Script);
End.
 
//Generated 09May02 by DOMAJ

 

 

 

 

Recent Topics

The latest topics from the forum.

  1. k-director.com: Post Updates
  2. A blog about Adobe Director
  3. Centerstage
  4. Custom Cursor...Why It Does Not Work?
  5. Director Game!
  6. cross platform
  7. database xtra for both mac and windows
  8. from windows to MAC
  9. SLIDER POSITION...
  10. Bullet points in text member
  11. Any VideoOut plugin / xtras for director mx ??
  12. Activex component install
  13. quiz
  14. how to export embedded flash swf?
  15. A BIG PROBLEM...
  16. Spining a model on a touchscreen
  17. 3D Fountain trail to avoid the Cursor
  18. HTTP
  19. SHOCKWAVE VIDEO
  20. Deleting Lines Comparing Time...I Have No Idea...
  21. Property not found error
  22. SHOCKWAVE PROBLEM
  23. PROBLEM SHOCKWAVE
  24. text field focus
  25. ExitLock CloseRequest Quit Close Gadget
  26. convert read only
  27. F10 Key Code Does Not Work
  28. Director Game Development Survey
  29. baPrintFile()
  30. How do check if a printer is printing??

Useful Links

Google Translate
AltaVista Translate
Google Glossary

Google
Web www.domaj.com