PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Adding a Day in WEBDEV (Not in WIndev)
Adding a Day in WEBDEV (Not in WIndev)
Débuté par Carlos Antunez, 27 aoû. 2017 22:44 - 1 réponse
Posté le 27 août 2017 - 22:44
Hi All and thanks in advanced.

In WEBDEV I have the following code:

MyDate is Date = "20170101" // (01/01/2017)
My Date = MyDate..day += 5


Answer should be 20170106 (01/06/2017) Right?

Instead I get a Compiling Error
Sysntax Error on +=

The Help says Not Available in WEBDEV (Browser) but it doesnt say anything about Server Code

Does anyone have an idea what could be happening

Thanks for the Help
Posté le 28 août 2017 - 13:33
Hi Carlos

You have an extra = in your code, and you should be adding to the day
property of the variable:

it should be

MyDate..day = MyDate..day + 5 (and not +=5)

OR

MyDate..day += 5

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com



Le 8/27/2017 à 2:44 PM, Carlos Antunez a écrit :
Hi All and thanks in advanced.

In WEBDEV I have the following code:

MyDate is Date = "20170101" // (01/01/2017)
My Date = MyDate..day += 5


Answer should be 20170106 (01/06/2017) Right?

Instead I get a Compiling Error Sysntax Error on +=

The Help says Not Available in WEBDEV (Browser) but it doesnt say
anything about Server Code

Does anyone have an idea what could be happening

Thanks for the Help