Hi, the following sample returns error for hash parameter with default 
parameter (fourth test)

PROCEDURE Main

      LOCAL nChoice, hHash

      nChoice := 2
      ? HB_Decode( nChoice, 1, "COM1", 2, "COM2", 3, "COM3", "NUL" )     // 
result: COM2

      nChoice := 4
      ? HB_Decode( nChoice, 1, "COM1", 2, "COM2", 3, "COM3", "NUL" )     // 
result: NUL

      hHash := { 0 =>  "Yesterday", ;
                 1 =>  "Today"    , ;
                 2 =>  "Tomorrow"   }

      nChoice := 0
      ? HB_Decode( nChoice, hHash  )  // result: yesterday

      nChoice := 0
      ? HB_Decode( nChoice, hHash, "Never" )  // result: error

   RETURN

Thanks,
FabioNery




---
Este email foi escaneado pelo Avast antivĂ­rus.
https://www.avast.com/antivirus



------------------------------------------------------------------------------
Full-scale, agent-less Infrastructure Monitoring from a single dashboard
Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
Physical-Virtual-Cloud Infrastructure monitoring from one console
Real user monitoring with APM Insights and performance trend reports 
Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to