RE:Count and acces in Sub-fields in Multivalue Fld

  • emushaija
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 6 months ago #7514 by emushaija
Hello Good People

I want to count number of subfields in Multivalue fields .How is that achievable?

I know counting multivalue field is eg as in the FILE LD.SCHEDULE.DEFINE

DCOUNT(R.SD<LD.AMOUNT>,VM)

Now i want to count Multivalue field CYCLED.DATES which itself has sub-fields.

I will appreciate your support as usual

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
14 years 6 months ago #7534 by jpb
e.g.

MAX.VM = DCOUNT(R.SD<LD.SD.CYCLED.DATES>,VM)
FOR Index = 1 TO MAX.VM
DCOUNT(R.SD<LD.SD.CYCLED.DATES,Index>,SM)
...
NEXT Index

Please Log in or Create an account to join the conversation.

  • emushaija
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 6 months ago #7542 by emushaija
Thanks Jpb

As usual worked fine!

Regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.033 seconds