Help for this page

Select Code to Download


  1. or download this
    use Win32::OLE;
    my $dict = Win32::OLE->CreateObject("Scripting.Dictionary");
    $dict->Count();      # how many Items
    $dict->Add( $key, $value);
    my $val =  $dict->Item($key);
    
  2. or download this
    use Win32::OLE;
    use MooseX::Declare;
    ...
    
    my $dict = Dictionary->new(Win32::OLE->CreateObject("Scripting.Diction
    +ary"));
    $dict->Add($key, $value);
    
  3. or download this
    package MyOleTypeLib;
    
    ...
      has '_DictObj' => ( 
           isa      => 'Dictionary',
      ...
    
  4. or download this
    class Dictionary {
    ...
    ...
     method set_text (Str $newtext) {
        return _DictObj->SetFile(1, $newtext);
     }
    
  5. or download this
    my $text = $moose_dict->text;
    $moose_dict->text($newtext);