oform=CREATEOBJECT('listfiles')
oform.show()
READ EVENTS
DEFINE CLASS listfiles AS FORM
Height = 250
Width = 439
DoCreate = .T.
Name = "ListFiles"
DIMENSION afiles[1,1]
ADD OBJECT list1 AS listbox WITH ;
RowSourceType = 5, ;
RowSource = "thisform.afiles", ;
Height = 170, ;
Left = 60, ;
Top = 48, ;
Width = 288, ;
Name = "List1"
PROCEDURE Init
=ADIR(thisform.afiles,"*.*")
thisform.list1.requery()
DODEFAULT()
ENDPROC
PROCEDURE UNLOAD
CLEAR EVENTS
DODEFAULT()
ENDPROC
ENDDEFINE
>Relatively new VFP programmer. Using VFP7.0 I have two questions:
>1. When using a list box with the row source type set to “files”(7) and the row source set to *.dbf or to *.*, no tables associated with a database (.dbc) are shown. Why? Is there a way to have them shown? How?
>2. Is there a setting to use when designing a form that causes the objects on it to be displayed “proportionately” so that when window state is set to “maximized” the objects are placed the way they were put on the form during design?
>Thanks, Barne Wheeler
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"