Take the following method:

method "GetSiteFromItem"($inFldPtr)
                                
        Read Only(*)
        
        C_Text($Sitetext)
        $Sitetext := ""

        RELATE ONE([Items]site id)
QUERY([Concordance];[Concordance]Unique Identifier;=;[Site]Place Name Value)
                                
        write to console('inptr=`$inFldPtr->`')
        If ([Items]Stein site no#"")
                $Sitetext:='`$inFldPtr->` (`[Items]Stein site no`)'
        Else
                $Sitetext:=$inFldPtr->
        End if
                                
        $recnum := A4D__GetSiteItemRecNum($inFldPtr->)
        write to console('recnum=$recnum')

        UNLOAD RECORD([Site])
        REDUCE SELECTION([Site];0)
        REDUCE SELECTION([Concordance];0)

        return ($Sitetext)
                
end method

It is called via a rowset column method. The problem is the line

        $recnum := A4D__GetSiteItemRecNum($inFldPtr->)

as although the 4D Method get called, it never receives the parameter (i.e $1 in the method = "")

If I call the GetSiteFromItem directly (not from within a rowset) then everything including the 4D Method executes correctly.

What am I missing here?

Regards, Michael.
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to