Help with UIObject Fields Needed 
Author Message
 Help with UIObject Fields Needed


Quote:
>    Can someone send me some example code that will
>    show me how to use a method to set the list values in
>    an unbound Field UIObject -

  I use the following 'approach' to the same problem:

  AField        - the unbound field object(drop-down edit or list)
  AField.theList- list object of the field

  place code e.g. in fields arrive method:
=====
method arrive(var eventInfo MoveEvent)
var
        ar      array[] String
        i       Smallint
endvar

doDefault

ar.addLast("Yes")
ar.addLast("No")

AField.theList.list.count=0             ; reset the list

for i from 1 to ar.size()
        AField.theList.list.selection=AField.theList.list.selection+1
        AField.theList.list.value=ar[i]
endFor

endmethod
===

  Hope this was what you were looking for...

  Veikko Vaataja



Tue, 23 Dec 1997 03:00:00 GMT
 Help with UIObject Fields Needed

    Can someone send me some example code that will
        show me how to use a method to set the list values in
        an unbound Field UIObject -

                I want to present a (changing) set of choices.
                in a questioniarre. General idea is to ask user
                to click on a "next question" button, which
                will set a field on the display form to hold , as a list,
                the set the text of set of possible answers (yes,no,...).

                When user clicks on the Field object, have its mouseClick
                method store the selected answer as a table.

                Problem is, I cannot find how to use Object PAL to
                 dynamically reset the list items in the field.

                 Any suggestions ?

                 thanks for your help  

                        Craig




Tue, 23 Dec 1997 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. HELP Needed with UIObject

2. Array of UIObject - Help Needed

3. Passing Field UIObject Parameter

4. Help! TCursor and UIObject

5. Help! TCursor and UIObject

6. Help labels for UIObjects on a form - helplbl.zip [01/01]

7. Help Help Need to copy a field from one table into another table

8. DATABASE..30 FIELDS NEEDED..HELP >>HELP

9. DATABASE..30 Fields Needed...HELP HELP

10. HELP!!! Need help with FoxPro memo fields

11. Question: Reuse of code and it's attachment to UIObjects

12. array of UIObjects?


 
Powered by phpBB® Forum Software