BOB: Business Objects Board
Not endorsed by or affiliated with SAP

Register | Login 

Want to sponsor BOB? 
Want to sponsor BOB? (Opens a new window)  

General Notice: BOB is going to retire...please see details here.
General Notice: No events within the next 45 days.

Function with Count()


 
Search this topic... | Search General Discussion... | Search Box
Register or Login to Post    Forum Index -> General Discussion  Previous TopicPrint TopicNext Topic
Author Message
Sam85
Forum Member
Forum Member



Joined: 20 Sep 2018

Posts: 3



PostPosted: Thu Jun 27, 2019 1:58 am 
Post subject: Function with Count()

Good Morning,

I have a short Question. I try to use this function but I get in Err while using Count(fldCnt) that a field is missing. What Field is meant? I thought I declared it in the Function Header already? Can somebody help?

Kind regards Sam

Code:

    Function SelectPosition ( _
                                fldHID as String, _
                                strHID as String, _
                                fldRZP as Number, _
                                intRZP as Number, _
                                fldCnt as Number) as Boolean
   
        Dim cnt as Number
            cnt = Count(fldCnt)

            Select Case cnt
                Case 1
                    SelectPosition = False
                Case 2
                    If fldHID = strHID Or fldRZP = intRZP Then
                        SelectPosition = True
                    Else
                        SelectPosition = False
                    End If
                Case Else
                    If cnt = 1 And (fldHID = strHID Or fldRZP = intRZP) Then
                        SelectPosition = True
                    Else
                        SelectPosition = False
                    End If
            End Select
    End Function
Back to top
Display posts from previous:   
Register or Login to Post    Forum Index -> General Discussion  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT - 5 Hours
 
Jump to:  

Index | About | FAQ | RAG | Privacy | Search |  Register |  Login 

Get community updates via Twitter:

Not endorsed by or affiliated with SAP
Powered by phpBB © phpBB Group
Generated in 0.0265 seconds using 17 queries. (SQL 0.0025 Parse 0.0008 Other 0.0232)
CCBot/2.0 (https://commoncrawl.org/faq/)
Hosted by ForumTopics.com | Terms of Service
phpBB Customizations by the phpBBDoctor.com
Shameless plug for MomentsOfLight.com Moments of Light Logo