GetType(val) returns me values instead of #TABLE...

Report any Hollywood bugs here
Post Reply
Bugala
Posts: 856
Joined: Sun Feb 14, 2010 7:11 pm

GetType(val) returns me values instead of #TABLE...

Post by Bugala » Sun Dec 02, 2012 6:20 pm

Code: Select all

Function p_HighlightPackage(key, info)
	singlepackage = key
	type = GetType(singlepackage)
	DebugPrint(type) 
this piece of code in my code keeps returning me values of 2 and 3.

Is this supposed to work this way or is this a bug? For as far as i read from documentation about getval command, i understood that i should be getting values like #TABLE, #STRING from this.

I used Hollywood 5.2 Windows for this.

User avatar
airsoftsoftwair
Posts: 3441
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: GetType(val) returns me values instead of #TABLE...

Post by airsoftsoftwair » Mon Dec 03, 2012 3:14 pm

Um, you do know that #TABLE, #STRING, etc. are just constants? Try:

Code: Select all

DebugPrint(#TABLE, #STRING)

Bugala
Posts: 856
Joined: Sun Feb 14, 2010 7:11 pm

Re: GetType(val) returns me values instead of #TABLE...

Post by Bugala » Mon Dec 03, 2012 3:39 pm

ah. okay. That explains it. I Understood wrong from the documentation. Thought it would give them as #TABLE etc. instead of numbers.

Post Reply