Welcome! Log In Create A New Profile

Advanced

Wx2024 class date problem

Posted by IsmirB 
Wx2024 class date problem
January 28, 2024 11:29AM
Hello.
If you define class and have member type date, you have a problem !!!!
Example:

cCustomerPaymet is a Class
m_nLineID is 8-byte int <MAPPING=LineID>
m_dPaymentDate is date <MAPPING=PaymentDate>
m_cyAmount is currency <MAPPING=Amount>
m_sCustomerName is string <MAPPING=CustomerName>
END

Then you create instance of class

clCustomerPayment is cCustomerPayment
Info(clCustomerPayment.m_dPaymentDate)

You will get today date. ex. 20240128
If you define member date as string: m_dPaymentDate is string <MAPPING=PaymentDate>
Then your class will be ok and your: m_dPaymentDate wil get empty string
This is big problem if you use DataBinding over class members becaouse , instaed empty field you will get todays date(). smiling smiley
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: