Hi folks,
I wonder if anyone out there can help me:
Progress 9.1d CHui.
Consider the two following snippets of code:
Would you expect the two pieces of code above to provide the same (or at least very similar) output?
What I am finding is that:
Assume myvar contained the value 'test text' (without any quotes around it)
snippet 1 would produce an output of "test text" (with quotes)
snippet 2 would produce an output of test text (without quotes).
Does anyone out there know how I could make snippet 1 work without producing the code round the text?
Please, this is driving me crazy!!
I wonder if anyone out there can help me:
Progress 9.1d CHui.
Consider the two following snippets of code:
Code:
/* Snippet 1 */
ASSIGN fmat = '"x(' + STRING(LENGTH(myvar)) + ')"'.
PUT STREAM mystream
myvar FORMAT fmat.
Code:
/* Snippet 2 */
PUT STREAM mystream
myvar FORMAT "x(50)".
What I am finding is that:
Assume myvar contained the value 'test text' (without any quotes around it)
snippet 1 would produce an output of "test text" (with quotes)
snippet 2 would produce an output of test text (without quotes).
Does anyone out there know how I could make snippet 1 work without producing the code round the text?
Please, this is driving me crazy!!