We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please include the following with each issue:
1. Describe the bug
When using the new .Date() and .Time() functions of a DateTime variable, the AL compiler throws a warning that the DateTime variable is not used.
The variable 'NewDateTime' is initialized but not used. AL(AA0206)
2. To Reproduce Steps to reproduce the behavior:
local procedure TestNewDateTime_WithWarning() var NewDateTime: DateTime; NewDate: Date; NewTime: Time; begin NewDateTime := CurrentDateTime(); NewDate := NewDateTime.Date(); NewTime := NewDateTime.Time(); end; local procedure TestNewDateTime_WithoutWarning() var NewDateTime: DateTime; NewDate: Date; NewTime: Time; begin NewDateTime := CurrentDateTime(); NewDate := DT2Date(NewDateTime); NewTime := DT2Time(NewDateTime); end;
Note: Because the developers need to copy and paste the code snippet, including a code snippet as a media file (i.e. .gif) is not sufficient.
3. Expected behavior Should not throw a warning as the DateTime variable has been used.
4. Actual behavior
5. Versions:
Please remember to do the following:
Search the issue repository to ensure you are reporting a new issue
Reproduce the issue after disabling all extensions except the AL Language extension
Simplify your code around the issue to better isolate the problem
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Please include the following with each issue:
1. Describe the bug
When using the new .Date() and .Time() functions of a DateTime variable, the AL compiler throws a warning that the DateTime variable is not used.
The variable 'NewDateTime' is initialized but not used. AL(AA0206)
2. To Reproduce
Steps to reproduce the behavior:
Note: Because the developers need to copy and paste the code snippet, including a code snippet as a media file (i.e. .gif) is not sufficient.
3. Expected behavior
Should not throw a warning as the DateTime variable has been used.
4. Actual behavior
The variable 'NewDateTime' is initialized but not used. AL(AA0206)
5. Versions:
Final Checklist
Please remember to do the following:
Search the issue repository to ensure you are reporting a new issue
Reproduce the issue after disabling all extensions except the AL Language extension
Simplify your code around the issue to better isolate the problem
The text was updated successfully, but these errors were encountered: