Re: Text not showing by Dan
Dan
Thu Feb 10 10:50:11 CST 2005
Your syntax error is because of a line feed after the = sign. Take that out.
Assignments (indeed all individual commands) must be on one line, or use the
line continuation character.
Dan
Carol Crow wrote:
> Wolfgang, I get to the edit window following your instructions and
> typed exactly
> this.value=
> " My very long text.... several paragraphs on..."
> this.readonly=.t.
> When I try to save it , I receive a syntax error with
> this.value=
> highlighted.
> Am I to type this.value= or should it be something else???
>
> "Wolfgang Schmale" wrote:
>
>> Hi Carol!
>>
>> Modify form myForm
>> Click on the editbox in which you want to display the text, go to the
>> property sheet on the Method tab. There are all methods of the
>> editbox listed. Doubleclick on the INIT-Method. Then a code edit
>> window will be opened. In this code edit window you should type
>> this.value="my very long text which should be displayed on the form
>> in a editbox"
>> this.readonly=.t. && otherwise the user may edit the text/value of
>> the editbox
>>
>> The value of an editbox = text to display and if the editbox has a
>> controlsource (field of a table) the contents of the table field
>>
>> --
>>
>>
>> ------------------------------
>>
>> Mit freundlichen Güßen aus der Zigarrenstadt
>>
>> Wolfgang Schmale
>>
>> ------------------------------------------------
>>
>> "Carol Crow" <CarolCrow@discussions.microsoft.com> schrieb im
>> Newsbeitrag
>> news:8114BD04-9BA8-4DCC-9500-640929F27863@microsoft.com...
>>> I know how to go to modi form, open the form, click on properties
>>> - and create a text box - It then shows Text1 but I don't know how
>>> to enter the text. I know the text is in the .prg but I can type
>>> it in directly to the box but how??. (A label is too small)
>>>
>>> "Wolfgang Schmale" wrote:
>>>
>>>> Hi Carol!
>>>> First you should add an editbox or a label to the form. In the
>>>> INIT-Method
>>>> of that control please write:
>>>>
>>>> ********************************************
>>>> * INIT of the Editbox
>>>> ********************************************
>>>> this.value= ;
>>>> "^ XXXXX XXXXXXXXXX# XXX: XXXXXXXXX-XXXX " +;
>>>> "XXXXXXXXX XXXXXXXXXX ^^" +;
>>>> WRAP("This xxxxxxxx requires multi-level " +;
>>>> "contractors to place job titles in the xxXXX " +;
>>>> "where the selection decision is made for " +;
>>>> "those jobs (Higher Level Plan) rather " +;
>>>> "than in the XXX where the jobs are " +;
>>>> "physically located (Lower Level Plan). ",104)
>>>> +'^^'+; WRAP("These job titles remain in the Workforce "
>>>> +; "Analysis of the Lower Level Plan but " +;
>>>> "are excluded from the Utilization Analysis " +;
>>>> "and Goals and Time Tables of the " +;
>>>> "Lower Level Plan.",104) +'^^'+;
>>>> "These xxx xxxxx are included in " +;
>>>> "BOTH the Workforce Analysis and Utilization " +;
>>>> "Analysis and Goals ^and Time Tables of the " +;
>>>> "Higher Level Plan.^^" +;
>>>> WRAP("The affected job titles are marked with an "+;
>>>> " * when they appear in both plans. " +;
>>>> " " +;
>>>> " ",104)
>>>> this.enabled=.f.
>>>>
>>>> If you take a label bear in mind that the caption must not longer
>>>> than 254
>>>> characters
>>>> *******************************************************
>>>> * Label INIT
>>>> ******************************************************
>>>> this.caption=left( ;
>>>> "^ XXXXX XXXXXXXXXX# XXX: XXXXXXXXX-XXXX " +;
>>>> "XXXXXXXXX XXXXXXXXXX ^^" +;
>>>> WRAP("This xxxxxxxx requires multi-level " +;
>>>> "contractors to place job titles in the xxXXX " +;
>>>> "where the selection decision is made for " +;
>>>> "those jobs (Higher Level Plan) rather " +;
>>>> "than in the XXX where the jobs are " +;
>>>> "physically located (Lower Level Plan). ",104)
>>>> +'^^'+; WRAP("These job titles remain in the Workforce "
>>>> +; "Analysis of the Lower Level Plan but " +;
>>>> "are excluded from the Utilization Analysis " +;
>>>> "and Goals and Time Tables of the " +;
>>>> "Lower Level Plan.",104) +'^^'+;
>>>> "These xxx xxxxx are included in " +;
>>>> "BOTH the Workforce Analysis and Utilization " +;
>>>> "Analysis and Goals ^and Time Tables of the " +;
>>>> "Higher Level Plan.^^" +;
>>>> WRAP("The affected job titles are marked with an "+;
>>>> " * when they appear in both plans. " +;
>>>> " " +;
>>>> " ",104),254)
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>> ------------------------------
>>>>
>>>> Mit freundlichen Güßen aus der Zigarrenstadt
>>>>
>>>> Wolfgang Schmale
>>>>
>>>> ------------------------------------------------
>>>> "Carol Crow" <CarolCrow@discussions.microsoft.com> schrieb im
>>>> Newsbeitrag
>>>> news:434C16A8-55BE-4F23-88D7-BD24ED15572B@microsoft.com...
>>>>> Upgrade Fox 2.6x to 9.0
>>>>> A screen contained text on upper portion and controls on lower
>>>>> portion. The
>>>>> screen contols work but the text doesn't appear.
>>>>>
>>>>> In a .prg reads
>>>>>
>>>>> cNotes = ;
>>>>> "^ XXXXX XXXXXXXXXX# XXX: XXXXXXXXX-XXXX " +;
>>>>> "XXXXXXXXX XXXXXXXXXX ^^" +;
>>>>> WRAP("This xxxxxxxx requires multi-level " +;
>>>>> "contractors to place job titles in the xxXXX " +;
>>>>> "where the selection decision is made for " +;
>>>>> "those jobs (Higher Level Plan) rather " +;
>>>>> "than in the XXX where the jobs are " +;
>>>>> "physically located (Lower Level Plan). ",104)
>>>>> +'^^'+; WRAP("These job titles remain in the Workforce "
>>>>> +; "Analysis of the Lower Level Plan but " +;
>>>>> "are excluded from the Utilization Analysis " +;
>>>>> "and Goals and Time Tables of the " +;
>>>>> "Lower Level Plan.",104) +'^^'+;
>>>>> "These xxx xxxxx are included in " +;
>>>>> "BOTH the Workforce Analysis and Utilization " +;
>>>>> "Analysis and Goals ^and Time Tables of the " +;
>>>>> "Higher Level Plan.^^" +;
>>>>> WRAP("The affected job titles are marked with an "+;
>>>>> " * when they appear in both plans. " +;
>>>>> " " +;
>>>>> " ",104)
>>>>>
>>>>> This is info only - how can I get it to show on the screen?
>>>>> Thanks.