Hello Giovanni, Wednesday, November 11, 2009, 3:58:42 PM, you wrote:
> Is it possible, in Harbour, to use arrays and vectors > with a string index, like PHP language? > Example v["dog"]="fuffy" or v["cat"]=1975 > Is it possible that? > Giovanni Di Maria Yes it is, using hash (associative) array`s as follow: *----------------- Function Main() *----------------- local v:= hb_hash() v["dog"]:="fuffy" v["cat"]:=1975 ? v["dog"] // -> fuffy ? v["cat"] // -> 1975 Return NIL -- Best regards, Jacek Kubica _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour