Skip to Content
0
Jul 22, 2016 at 10:31 AM

How to display Global variable

54 Views

Hi

Here am trying to display TOC page no , in my content page i created the formula field to get the page no its working fine for your reference i mention below

global stringvar strTOC1;

global stringvar strTOC2;

local stringvar strTemp;

if not InRepeatedGroupHeader then

( strTemp := {DataTable1.Objectivies} + chr(10) ;

if len(strTemp) + len(strToc1) <= 254 then

( strToc1 := StrToc1 + strTemp;

strToc2 := totext(PageNumber,0)))

to display that page i've created the another new formula , for your reference

whileprintingrecords;

global stringvar strTOC2;

strToc2

above mention formula is not working it not showing error but it's not get the value from global variable ... is there i did make any mistake pls let me know ...

thanks