General information
Category:
Coding, syntax & commands
>'field' phrase is not found
>Online microsoft provides no help, the msdn/BOL provide the answer as referencing the fields wrong on a rowsource of 6.
>
>I am opening a search form, it has 1 test box and 1 list box. the text box is displaying fine (it's content is created by a variable that is passed to it as part of the paramaters of opening the form), however the list box does not display fine.
>
>The code that calls the form:
> searchstr = 'riskexp.rsk_title'
> nm2show = 'Default File Name :'
> name2get = 'rsk_title'
>
> EXTERNAL PROC SRCHDFLT.SCX
> DO FORM "SRCHDFLT.SCX" NAME _0CH0J0IXK LINKED WITH searchstr, nm2show, name2get
>
>The List Box's Settings:
> FontName = "Arial"
> FontSize = 8
> RowSourceType = 6
> RowSource = "&searchstr"
> Value = (" ")
> ControlSource = "m.osrch"
> Enabled = .T.
> Height = 98
> Left = 22
> SpecialEffect = 1
> TerminateRead = .F.
> Top = 33
> Width = 443
> ReleaseErase = .F.
> ColorSource = 4
> ItemBackColor = 255,255,255
> DisabledItemBackColor = 255,255,255
> BoundTo = .F.
> Name = "lstOsrch2"
>
Kevin,
This is due to one of your fields on the form looking for a certain field (rowsource / controlsource) but it's unable to find it. Seems like it may be your rowsource. I think you may need to omit the quotes from Rowsource="&searchstr". Otherwise, try to replace "&searchstring" with a field you know exists to start with and then work from there.
René
>The Error:
> 'field' phrase is not found
>
>I was given this project to convert from 2.6 to 6.0, and have been on it for only 2 weeks and don't really have a firm understanding of why it was programmed the way it was, or a high level of foxpro understanding.
>
>kevin.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only