Subject Form custom properties
From Tom <IHaveNoEmail@ddress>
Date Sun, 13 May 2018 12:05:15 -0400
Newsgroups dbase.getting-started

On my computer using:
dBase 11.3
Windows 10 Pro 64bit version 1803

I do not seem to be able to assign dates to an array as a custom
property of my form.

A short sample of the code contained above the header of my form
includes ...

close all
clear all
*
***set procedure to NFCalendar.wfm ADDITIVE
local f
f = new NFCalendarFORM() // THIS FORM !!!
f.mdi = false
f.maximize = false
f.minimize = false
f.sizeable = false
f.moveable = false
f.sysMenu = false
*
f.autoCenter = true // only for testing ...
*
***f.oParent = form // a reference to the form that uses this Calendar
so that Calendar can speak directly to oParent.form ...
*
f.bMultiSelect = false // true // <<< IMPORTANT <<< can select multiple
dates to return ??? true/false
*
***f.aDateList = new array() // because this form may allow multiple
dates to be selected ...
***f.aDateList.add( {05/13/2018} ) // always have some date selected //
MUST BE A TRUE DATE ...
*
// try this as an alternative ...
*
f.aDateList = new array(1)
f.aDateList[1] = {05/13/2018}
*
Both alternatives return the following ...
*
// Ok ...
? f.bMultiSelect //knows that f.multiSelect = false
// Ok ...
? f.aDateList[1] // knows the value is 05/13/2018
// Fails ...
? type("f.aDateList[1]") // does NOT know what type is. Returns 'U'
instead of expected 'D'

//RETURN

f.readModal()

RETURN

// header follows ...

Any ideas why I cannot use f.aDateList[1] values as a true date ???

Thanks,

Tom