AgTalk Home
AgTalk Home
Search Forums | Classifieds | Skins | Language
You are logged in as a guest. ( logon | register )

FOXPRO, browse width window setting
View previous thread :: View next thread
   Forums List -> Computer TalkMessage format
 
Chris
Posted 4/26/2021 13:43 (#8974145)
Subject: FOXPRO, browse width window setting



East central Iowa

I've written thousands of lines of code in FOXPRO 2.6 and now I can't remember how to do one thing that's bugging me.

The browse command has a feature that lets you set the size of the column. 

For example, fname, lname, address, city could have fields sizes of 15,20,25,20 but you might only want to display lname in a column that was 1 character wide.

The normal command to browse might be:

browse fields fname,lname,city for fname = "Bob" 

but for whatever reason you don't want or need only a few letters of the city you would

browse fields fname,lname,city width 10 for fname = "Bob"     Only it makes all the fields only 10 characters. 

If I change it to browse fields city width 10,lname, fnaname for fname = "Bob"         I get and error message.

According to the documentation I should be able to just set one field to 10 and leave the rest whatever size they are in the database.

In the help file for the BROWSE command it lists [width  <expN4>]



Edited by Chris 4/26/2021 13:47




(foxpro (full).JPG)



Attachments
----------------
Attachments foxpro (full).JPG (55KB - 7 downloads)
Top of the page Bottom of the page


Jump to forum :
Search this forum
Printer friendly version
E-mail a link to this thread

(Delete all cookies set by this site)