Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query HELP how to present unique result in textboxes in
Message
From
18/10/2005 16:52:55
 
 
To
18/10/2005 16:46:49
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01060041
Message ID:
01060046
Views:
15
>I am trying to make a query, that when found a specific type of record, I want to present all fields in textboxes... Some guy suggested to use the Scatter Function, but I dont know how to use it. Plz I will be very grateful for some help.
>
>I have someghing like this.. but does not work:
>
>Select * from proyecto ;
>where tipomed = m.type_p ;
>and numero = m.numero ;
>Into cursor ResultSet
>Scatter Name to
>m.tipomed
>m.numero
>m.descripcion
>m.resumen
>m.resumen2
>
>it gives me this errors:
>numero is not an object
>descripcion is not an object
>bla bla bla
>
>att. Juan

If you just want to store the values of the fields in textboxes:
Select * from proyecto ;
      where tipomed = m.type_p and numero = m.numero ;
Into cursor ResultSet

thisfirm.text1.Value = ResultSet.Field1
thisfirm.text2.Value = ResultSet.Field2
etc.
Is that what you want?

By the way see SCATTER in help, you can use it:
SCATTER NAME oFields
? oFields.Field1 && The name of the field must be in place of Field1
? oFields.Field2
etc.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform