TD7.NET Logical Operators

Discussion forum about all things Team Developer 7.x
jkienast
Germany
Posts: 6
Joined: 12 Jul 2017, 13:02
Location: Mainz

TD7.NET Logical Operators

Post by jkienast » 07 May 2019, 08:14

After conversion of our applications from Win32 to .NET I have to recognize that logical operators does not work as before.
This problem exists since TD6.3 and I ask me if there is nobody on this planet who has to port a bigger Gupta-Win32 to Gupta-NET.
Maybe I am wrong, but from my view that's an absolutely No-Go. :evil:

Code: Select all

Function: testA
	Static Variables
	Local variables
		Boolean: a
		Boolean: b
		Boolean: c
	Actions
		Set a = FALSE 
		Set b = FALSE 
		Set c = TRUE 
		If a and b or c
			Call SalMessageBox ( "WIN32", "WIN32", MB_Ok )
		Else
			Call SalMessageBox ( ".NET", ".NET", MB_Ok )
In .NET it's compiled to

Code: Select all

public static SalDecimal testA(ISalWindow SAL$WinCtx)
{
	SalDecimal result = 0m;
	bool flag = false;
	bool flag2 = false;
	bool flag3 = false;
	flag = false;
	flag2 = false;
	flag3 = true;
	if (flag && (flag2 || flag3))
	{
		SalMessageBox.Show("WIN32", "WIN32", 0L);
	}
	else
	{
		SalMessageBox.Show(".NET", ".NET", 0L);
	}
	return result;
}
You do not have the required permissions to view the files attached to this post.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests