Hi Shefalika,
Sorry, but as I know there doesn't exist a function like this. I think chdx is the right way. Maybe the following script can give you some ideas:
Dim iLineNo, intMyHandle, intMyText, sTextLine, iChNo
iChNo = Cno(ChannelName)
intMyHandle = TextFileOpen("d:\temp\NewText.txt",tfCreate OR tfWrite OR tfANSI)
For iLineNo = 1 To 20
sTextLine = chdx(iLineNo, iChNo)
if sTextLine > 0 then
sSign = "+"
else
sSign = "-"
end if
sTextLine = sSign & cstr(sTextLine)
intMyText= TextfileWriteLn(intMyHandle, sTextLine)
Next
intMyText = TextFileClose(intMyHandle)
Greetings
Walter