Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.* 1 > Newsgroup comp.lang.xharbour

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-22-2008, 02:43 PM
p_uchman@poczta.onet.pl
Guest
 
Posts: n/a
Default Hash type return from function

Hi,

How to return properlu hash type from procedure / function without
warnings ?

Thanks
Pawel

Function Test()

Local hHash := {=>}

hHash := Test1()
? hHash['1']
Inkey(0)

Return .T.

Function Test1()

Local hHash := {=>}

hHash['1'] := 1

Return hHash

Warning! not an hash 009B4C68 [test1.Prg->TEST(5)]
Warning! not an hash 009B4C68 [test1.Prg->TEST(9)]
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 01-22-2008, 03:04 PM
Ella Stern
Guest
 
Posts: n/a
Default Re: Hash type return from function


This one works for me:

Function Test()

Local hHash

hHash := Test1()
? hHash['1']
Inkey(0)

Return .T.

Function Test1()

Local hHash := Hash()

hHash['1'] := 1

Return hHash




<p_uchman@poczta.onet.pl> wrote in message
news:ff0f1338-83fc-41f4-bf9e-145b6d0ced5d@c23g2000hsa.googlegroups.com...
> Hi,
>
> How to return properlu hash type from procedure / function without
> warnings ?
>
> Thanks
> Pawel
>
> Function Test()
>
> Local hHash := {=>}
>
> hHash := Test1()
> ? hHash['1']
> Inkey(0)
>
> Return .T.
>
> Function Test1()
>
> Local hHash := {=>}
>
> hHash['1'] := 1
>
> Return hHash
>
> Warning! not an hash 009B4C68 [test1.Prg->TEST(5)]
> Warning! not an hash 009B4C68 [test1.Prg->TEST(9)]



Reply With Quote
  #3 (permalink)  
Old 01-22-2008, 11:10 PM
Ron Pinkas
Guest
 
Posts: n/a
Default Re: Hash type return from function

> How to return properlu hash type from procedure / function without
> warnings ?


Please update your CVS to latest, and make sure to BUILD CLEAN, or better
yet use the latest official release.

Ron


Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Hash object (was Re: Dynamically created dataset using hash Dorfman, Paul Newsgroup comp.soft-sys.sas 0 08-28-2006 06:40 AM
Re: Function reference with versions ? Choate, Paul@DDS Newsgroup comp.soft-sys.sas 0 03-20-2006 04:59 PM
Re: Type I-IV Sum of squares with empty cells baogong jiang Newsgroup comp.soft-sys.sas 0 05-19-2005 03:35 PM
Re: Using Hash Object to count distinct number of values in an Paul M. Dorfman Newsgroup comp.soft-sys.sas 0 04-30-2005 06:04 PM



All times are GMT. The time now is 02:53 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.