From: Frank Stefani <EAD-Frank.Stefani@t-online.de>
>Internally (in XForms) there
>are pointers to the first and the last object of a form. My solution
>(before I started this thread here) was to search the linked pointers
>from FL_FORM->first to FL_FORM->last (see "forms.h"). I built a loop
>and 'switch'-ed all classes and (within the classes) all the types.
>So I could find any object in any form and identify it. The own
>thing missing was/is a possibility to distinguish:
> "is this the customer form's name field"
>or
> "is this the customer form's street field"
I think you are doing this the wrong way. Use the FD_ structures
emitted by fdesign where the object ID is the object itself
fd_myform->CustomerStreetField
fd_myform->CurstomerNameField
I think it beats defining another set of integers for the object ID.
With code generated with fesign in V0.84, you can find the FD_ structure
the object is on from any object as follows anyobj->form->fdui.
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/