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

2009-11-13 Thread Martin Morrison
.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Kratz Sent: Thursday, November 12, 2009 11:11 AM To: mapguide-users@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 b

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

2009-11-12 Thread Kratz
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

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

2009-11-11 Thread Martin Morrison
11, 2009 8:41 AM To: mapguide-users@lists.osgeo.org Subject: SV: [mapguide-users] Need help with IF-statment in Tool Tip Here is the error message: The expression is invalid Error: Argument types for function 'If' are mismatched. Click here to move the cursor to the error (1)#1 Err

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

2009-11-11 Thread Kratz Fredrik - SBF
, 2009 8:41 AM To: mapguide-users@lists.osgeo.org Subject: SV: [mapguide-users] Need help with IF-statment in Tool Tip Here is the error message: The expression is invalid Error: Argument types for function 'If' are mismatched. Click here to move the cursor to the error (1)#1 Err

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

2009-11-11 Thread Martin Morrison
@lists.osgeo.org Subject: SV: [mapguide-users] Need help with IF-statment in Tool Tip Here is the error message: The expression is invalid Error: Argument types for function 'If' are mismatched. Click here to move the cursor to the error (1)#1 Error: Result types are mismatched: the

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

2009-11-11 Thread Kratz
org] [mailto:ml-node+3986117-1900696...@n2.nabble.com] Skickat: den 11 november 2009 13:31 Till: Kratz Fredrik - SBF Ämne: Re: [mapguide-users] Need help with IF-statment in Tool Tip What does the error say? It normally points to which bit is wrong. Is it the empty string? Try putti

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

2009-11-11 Thread JamesDudden
What does the error say? It normally points to which bit is wrong. Is it the empty string? Try putting a 0 instead like this: If ( LENGTH(BYGGINV_2) > 0, BYGGINV_2 , 0) Kratz wrote: > > Hi! > > I need help writing a correct string with an if-statement. > > Trying to determine whether a