I have some problems with the use of custom functions in the selected
expressions of a select.
For instance :
Table XYZ contains the Fields SPAN as Float and OTHER as Float
Declare Function my_func (ByVal X as Float) as Float
Function my_func (ByVal X as Float) as Float
If X > 15 Then my_func = X + 15 Else my_func = 0. End If
End Function
Select * From XYZ Where my_func(SPAN) > 40 ===> works
Update XYZ Set OTHER = my_func(SPAN) ===> works
Select SPAN, my_func(SPAN) ===> works not, gives
empty field in col2
This last seems in contradiction with MapBasic 5.0 on-line help for
"Function ...End Function"
under sub-chapter "Availability of Custom Functions" 1st paragraph
Who can help me ?
Thank you,
eng. Gilles Labeeuw
Minist�re F�d�ral des Federaal Ministerie
Communications et Infrastructure van Verkeer en Infrastructuur
Direction Routes: Directie Wegen:
normes et banques de donn�es normen en databanken
Residence Palace Rue de la Loi 155 Residence Palace Wetstraat 155
B 1040 Bruxelles B 1040 Brussel
Tel. +31 (2) 287.31.63
Fax. +31 (2) 287.31.80
e-mail [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]