Title: Printing

Hi All

 

I have almost cracked it but need help

I have a MBX that uses an info tool button to open up a dialog screen of Rural Water Tank info

There is a field called material

 

The materials are

              Concrete

              Plastic

              Tin

              Fiberglas

             

I have a popupmenu in the dialog screen that the user can use the change the tank’s material type

So for example if tank 123 is queried using the info tool, the default popupmenu for material is Concrete, Concrete being the first in the popupmenu list

The problem here is, when the OK button is pressed, the material is changed to Concrete from say Plastic BUT needs to be left as Plastic

What I want to achieve, is code that will set the popupmenu list to Plastic for this example, or what ever material type that the field material has in it

 

 

The code below is where I think the problem is

 

Fetch First From lut_Ruraltanks

       Do While Not EOT(lut_Ruraltanks)

          i = i + 1

          p_string(i)  =   lut_Ruraltanks.Material_type

   Fetch Next From lut_Ruraltanks

       Loop

 

 

 

Control popupmenu  

                Title From Variable p_string

                Width  60

                Height 12

                 Value 1                        ‘I think this is where to fix it value 1 is concrete but I want to use the value ‘for plastic in this example

                 ID 6

                 Position 225, 60

                 Into I_material                ‘ I_material is use to up date the material field

 

 

Thanks for looking at this

I can supply all code if need be of what I have done so far

 

 

Regards

 

Andrew Hare

GIS Administrator

Waimate District Council

P.O Box 122

Waimate

New Zealand

Ph:  +64 3 689 8079

Fax: +64 3 689 8075

 

 

_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to