[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Problems with Begin/End-Document



I did discover that my variable names were too long, just as you suggested.
 It seems that would be a good 'feature' to include in the documentation,
wouldn't you think?

Thx much
Carolyn

At 09:17 AM 3/9/01 +0800, you wrote:
>Hi Carolyn,
>
>On your first code, SQR interprets the variable as $newyr. and not as
$newyr  .
>(the period became part of the variable name). This explains why spaces were
>printed instead of the actual content of the variable. With regards to the
second
>code, it seems to me that the additional spaces were caused by the number of
>characters you used in naming your variable $curryr. Since you are
expecting a 4
>character year, try using a variable name with only 4 characters say $cyr
instead
>of $curryr. This looks weird to me but it works.
>
>Hope this helps.
>
>--
>Best Regards,
>Emil
>RDC
>
>
>Carolyn Woods wrote:
>
>> I am trying to create a document using the begin/end-document feature, but
>> I seem to be having some minor technical difficulties.
>>
>> This method works fine for straight text, but variables don't seem to fare
>> well.  Notice the $newyr variable in the code, then notice the absence of
>> data in the output.  Additionally, the punctuation following the variable
>> is missing.
>>
>> Code:
>> begin-document (1,1)
>> DO NOT USE this form to make changes for the next benefit year, $newyr. The
>> necessary forms for this use may be obtained from the Human Resources
Office.
>> .
>> .
>> end-document
>>
>> Output:
>> DO NOT USE this form to make changes for the next benefit year,         The
>> necessary forms for this use may be obtained from the Human Resources
Office.
>>
>> In the second occurrence, the year prints but there are added spaces after
>> the variable.
>>
>> SQR:
>> The information given below reflects the benefit/personal data we currently
>> have for you and/or your dependents as submitted on your $curryr Benefit
>> .
>> .
>> end-document
>>
>> Output:
>> The information given below reflects the benefit/personal data we currently
>> have for you and/or your dependents as submitted on your 2001    Benefit
>>
>> Any ideas?
>>
>> Thanks
>> Carolyn Woods
>> MiraCosta College
>> Oceanside, CA
>
>