Hi I Need a public Method like this in C#:
public class WPFGridZeilen { public string GrSp01 { get; set; } public string GrSp02 { get; set; } }
It's a public Class in a C# EXE File
And with this i can get/set Data in a WPF DataGrid...
#PublicClassforaWPFDataGridThis C# code is better ...
public class WPFGridZeilen
{
public string GrSp01 { get; set; }
public string GrSp02 { get; set; }
}
Hi I Need a public Method like this in C#:
public class WPFGridZeilen { public string GrSp01 { get; set; } public string GrSp02 { get; set; } }
It's a public Class in a C# EXE File
And with this i can get/set Data in a WPF DataGrid...
#PublicClassforaWPFDataGridThere is an entire section in the documentation that shows comparisons of various OO programming features between different languages like COBOL and C#.
Please see http://documentation.microfocus.com/help/index.jsp?topic=/com.microfocus.eclipse.infocenter.visualcobol.vs/GUID-3C495CA9-2B7A-4890-AC64-005545AED543.html
Look under Properties as this is what you are describing here.
Thanks.
Hi I Need a public Method like this in C#:
public class WPFGridZeilen { public string GrSp01 { get; set; } public string GrSp02 { get; set; } }
It's a public Class in a C# EXE File
And with this i can get/set Data in a WPF DataGrid...
#PublicClassforaWPFDataGridHere is one example of a get / set in Visual COBOL. There are a couple of other ways to do this.
class-id WPFGridZeilen.
working-storage section.
01 _grso01 string.
property-id GrSp01 string.
getter.
set property-value to _grso01
setter.
set _grso01 to property-value
end property.
end class.
Hi I Need a public Method like this in C#:
public class WPFGridZeilen { public string GrSp01 { get; set; } public string GrSp02 { get; set; } }
It's a public Class in a C# EXE File
And with this i can get/set Data in a WPF DataGrid...
#PublicClassforaWPFDataGridHere is one example of a get / set in Visual COBOL. There are a couple of other ways to do this.
class-id WPFGridZeilen.
working-storage section.
01 _grso01 string.
property-id GrSp01 string.
getter.
set property-value to _grso01
setter.
set _grso01 to property-value
end property.
end class.
Hi I Need a public Method like this in C#:
public class WPFGridZeilen { public string GrSp01 { get; set; } public string GrSp02 { get; set; } }
It's a public Class in a C# EXE File
And with this i can get/set Data in a WPF DataGrid...
#PublicClassforaWPFDataGridSomething is not 100% right...See this: (c#)
I found no Way for this in Cobol:
GridList.Add(new WPFGridZeilen()
{
GrSpalte01 = "Hello 01!,
GrSpalte02 = "Hello 02!,
}
Here is the WPFGridZeilen Code:
class-id WPFGridZeilen.
working-storage section.
01 _grso01 string.
01 _grso02 string.
property-id GrSpalte01 string.
getter.
set property-value to _grso01
setter.
set _grso01 to property-value.
end property.
property-id GrSpalte02 string.
getter.
set property-value to _grso02
setter.
set _grso02 to property-value.
end property.
end class.
Hi I Need a public Method like this in C#:
public class WPFGridZeilen { public string GrSp01 { get; set; } public string GrSp02 { get; set; } }
It's a public Class in a C# EXE File
And with this i can get/set Data in a WPF DataGrid...
#PublicClassforaWPFDataGridThe 2.2 version of Visual COBOL does have support for property initialization as part of a 'new' expression.
Try something like:
01 o type WPFGridZeilen.
set o to new WPFGridZeilen(property GrSpalte01 = "Hello 01"
property GrSpalte02 = "Hello 02")
display o::GrSpalte01
display o::GrSpalte02