Article ID: 130146
Article Last Modified on 2/9/2000
#DEFINE FIELDLENGTH 100
cText = "This is how it works in 2.x. You can't see the entire field. The ;
new way - pay attention to the 'BROWSE NAME' clause. You can now use the ;
BROWSE as a Visual FoxPro 3.0 object and introduce a control into a long ;
field so that the data is easier to view."
CREATE CURSOR issues (topic C(20), long_desc C(254))
INSERT INTO issues VALUES ('Horizontal Scrolling', cText)
BROWSE TITLE "Close this Window to see what you can do with Visual FoxPro!"
BROWSE NAME oIssues NOWAIT TITLE 'Issues'
LOCAL nColumn, oRef
FOR nColumn = 1 TO FCOUNT()
IF FSIZE(FIELD(m.nColumn)) >= FIELDLENGTH
oRef = EVAL('oIssues.Column'+LTRIM(STR(nColumn)))
oRef.AddObject('edit1','editbox') && Add edit box.
oRef.edit1.Visible = .t.
oRef.Sparse = .f.
oRef.CurrentControl = 'edit1'
oRef.Width = 150
oRef.edit1.ScrollBars = 2
ENDIF
ENDFOR
oIssues.RowHeight = 60 && Change the row height for the browse object.
Additional query words: VFoxWin
Keywords: kbcode KB130146