title: Delphi Converting Array Variant to String
body: <p>In my delphi program I am communication with a webservice.</p>
  
  <p>On WSDL import I got the following function created-</p>
  
  <pre><code>    function  call(const sessionId: WideString; const resourcePath: WideString;
   const args: Variant): Variant; stdcall;
  </code></pre>
  
  <p>now when I call this inside my code , I want to see what is the returned value</p>
  
  <pre><code>var
  p:WideString;
  v:variant;
  VarArray:variant;
  begin
  
     //varArray := VarArrayCreate([0,50],varVariant);
  
     v := (httprio1 as  Mtest).call(a,'giftgit.gift', '28184');
  
  
     //p := VarArrayget(V,[1] ) ;
     p := vartostr(v[1]);
  </code></pre>
  
  <p>I get this error in the last line</p>
  
  <p>Could not convert variant of type (Array Variant) into type (String)</p>
  
  <p>I tried with varArray but same problem.
  how can I solve this ?</p>
  
  <p>Thank you</p>