Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: One more C# WPF to Cobol

$
0
0

E-mailing me directly with product problems is not the correct way to receive product support.

Please post the problems directly to the Community Site forum so that everyone can see them or open up a support incident with Customer Care.

That being said, yes I have looked at them and there appears to be a bug in the new handling of initializing properties directly in a constructor when setting the property to another object.

It works correctly if you set the property to a string like "test" but not when setting it to a data item defined as a string.

I will rpi this problem.

As a workaround you can set the properties after the object has been instantiated.

Note that I am using the TrimEnd method to set the property as when you are using pic x data items they will be padded with spaces out to the maximum length and I don't believe that it what you want.

You should do the same thing when setting the header text in your grid or else each column will be 256 bytes wide.

     *            set GZ to new WPFGridZeilen(
     *                              property GrSpalte01 = SPStr01
     *                              property GrSpalte02 = SPStr02  
     *                              property GrSpalte03 = SPStr03
     *                              property GrSpalte04 = SPStr04
     *                              property GrSpalte05 = SPStr05
     *                              property GrSpalte06 = SPStr06
     *                              property GrSpalte07 = SPStr07
     *                              property GrSpalte08 = SPStr08
     *                              property GrSpalte09 = SPStr09
     *                              property GrSpalte10 = SPStr10
     *                              property GrSpalte11 = SPStr11
     *                              property GrSpalte12 = SPStr12
     *                              property GrSpalte13 = SPStr13
     *                              property GrSpalte14 = SPStr14  
     *                              property GrSpalte15 = SPStr15
     *                              property GrSpalte16 = SPStr16
     *                              property GrSpalte17 = SPStr17
     *                             )
                   set GZ to new WPFGridZeilen
                   set GZ::GrSpalte01 to spstr01::TrimEnd
                   set GZ::GrSpalte02 to spstr02::TrimEnd
                   set GZ::GrSpalte03 to spstr03::TrimEnd            
                   set GZ::GrSpalte04 to spstr04::TrimEnd
                   set GZ::GrSpalte05 to spstr05::TrimEnd
                   set GZ::GrSpalte06 to spstr06::TrimEnd
                   set GZ::GrSpalte07 to spstr07::TrimEnd
                   set GZ::GrSpalte08 to spstr08::TrimEnd
                   set GZ::GrSpalte09 to spstr09::TrimEnd
                   set GZ::GrSpalte10 to spstr10::TrimEnd
                   set GZ::GrSpalte11 to spstr11::TrimEnd
                   set GZ::GrSpalte12 to spstr12::TrimEnd
                   set GZ::GrSpalte13 to spstr13::TrimEnd
                   set GZ::GrSpalte14 to spstr14::TrimEnd
                   set GZ::GrSpalte15 to spstr15::TrimEnd
                   set GZ::GrSpalte16 to spstr16::TrimEnd
                   set GZ::GrSpalte17 to spstr17::TrimEnd
                   invoke GridList::Insert(z0, GZ)
                   add 1 to z0
          end-perform.


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>