[mapguide-users] Need help with IF-statment in Tool Tip

Martin Morrison martin.morrison at edsi.com
Fri Nov 13 10:51:30 EST 2009


If the "empty" values are truly null, then check for null instead of checking the length. E.G

if($featureReader->IsNull('BILLING_ADD')){ 
	$billing_address = " "; 
	}


-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Kratz
Sent: Thursday, November 12, 2009 11:11 AM
To: mapguide-users at lists.osgeo.org
Subject: RE: [mapguide-users] Need help with IF-statment in Tool Tip


I cant understand how this If-statement works.... 

I thought the [condition] was integer based. ex Length(BYGGINV_1)>0 
But obviously not... 

Could someone help explain how this If-statement work or better up how I can
find out whether the atribute contains any text (string) or not! 

Ex of how my table looks like:
http://n2.nabble.com/file/n3993782/Tabel.bmp 
-- 
View this message in context: http://n2.nabble.com/Need-help-with-IF-statment-in-Tool-Tip-tp3985605p3993782.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users



More information about the mapguide-users mailing list