This is an example of FoxPro’s (both DOS and Windows) inconsistency and 
quirkiness.  Calculated columns in BROWSE, CHANGE, and EDIT commands must 
always be assigned to a new variable name.  Calculated columns in LIST and 
DISPLAY statements must NOT be assigned to a new variable.

Just to keep us on our toes, I suppose.

Mike


--------------------------------------------------------------------------------


From: Ted Roche 
Sent: Tuesday, March 31, 2015 3:10 PM
To: profoxt...@leafe.com 
Subject: Re: FoxPro/DOS 2 Lines per record in a browse?

Not sure the help is all that helpful when it comes to "everyone once
knew this."

Try:

change fields fred=fieldname1+'  '+fieldname2+" ", fieldname3

Essential, you're creating a calculated field, fred.

It doesn't have to be named that, but it always worked for me :)

On Wed, Mar 25, 2015 at 8:27 PM, American Sentry Systems, Inc.
<m...@americansentry.net> wrote:
> I tried:
> change fields fieldname1+'  '+fieldname2+" ", fieldname3
>
> "I got a unrecog phrase/keyword in cmd" error
>
> by the way, I am running 2.6 if that is material
>
> John
>
>
>
> On 03/25/2015 04:44 PM, Ted Roche wrote:
>>
>> I'd forgotten about CHANGE! I believe EDIT is a synonym.
>>
>> Clever work-around!
>>
>>
>> On Wed, Mar 25, 2015 at 7:15 PM, Michael Glassman
>> <mhglass...@pioneerdrama.com> wrote:
>>>
>>> John,
>>>
>>> I work with FoxPro for DOS v2.5, and a two-line BROWSE window isn’t
>>> possible.  You can, however, approximate this with a CHANGE window, in which
>>> all fields have their own line.  If you want just two lines, though, then
>>> concatenate the fields for the first line like this:
>>>
>>>      CHANGE FIELDS Ticket = Ticket_No + " | " + Account_No + " | " + Name
>>> + " | " + City, Comments
>>>
>>> Mike
>>>
>>>
>>>
>>> --------------------------------------------------------------------------------
>>>
>>> From: mailto:v...@optonline.net
>>> Sent: Wednesday, March 25, 2015 4:39 PM
>>> To: profoxt...@leafe.com
>>> Subject: Re: FoxPro/DOS 2 Lines per record in a browse?
>>>
>>> IDK - FPD - 2 lines in a Browse? It's old & probably not possible!
>>>
>>> -K-
>>>
>>> Sent from my iPhone
>>>
>>>> On Mar 25, 2015, at 6:31 PM, "John R. Sowden"
>>>> <jsow...@americansentry.net> wrote:
>>>>
>>>> I am trying to generate a browse window with thinks kine ticket #,
>>>> Account Number, Name, City on line one, and about a 70 char
>>>> field of text on line 2 in a browse window.  The help screen does not
>>>> reference this, in fact the word 'line' does not exist in the help for
>>>> browse.
>>>>
>>>> help?
>>>>
>>>> John
>>>>
>>>>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/80CF5BC7B6B24EACAFEA015AC98ACF8A@Studio17
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to