Create Class Designer values

I’ve created a class in the Class Designer (VS200 beta 2) that contains four parameters.Three of them are strings and one is a date. When I click on Create Instance and go to enter the parameters I can’t find a date format that it will accept.What is the format it requires?


[591 byte] By [SchildB] at [2008-2-4]
# 1

This is a Object Test Bench functionality. Here you need to pass a reference to Object of type Date. This won't allow you to enter Date as such.

To pass Date to a function, first you need to create an instance of Date that you could do it in two ways
1. Open Immediate Window (From Menu Bar click on Debug --> Windows --> Immediate Window) and type java.util.Date d = new java.util.Date(); and press enter. This should create and place an object in Object Test Bench Window. Now execute the function which takes Date as parameter. You could find variable named "d" for Date parameter in the drop down list, select it and proceed.

2. Or Open Class View ( from Menu bar View --> Class View), enable "Show Project References" from Class View Settings tool bar. Expand nodes in ClassView and select “ConsoleApplication” --> Project References --> vjslib --> java.util --> Date. Right click on this node and invoke "Create Instance" --> Date (any constructor) and follow the steps mentioned in above point.

Let me know if you need more on this.

Thanks,
Ramakrishna Neela

RamakrishnaNeela at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...
# 2
Will this be fixed in the final release so that it will accept all data types?
SchildB at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...
# 3
No for Whidbey, even in next release this would be supported rather we will provide quick way of creating new object(s). Note that OTB is v1 product and we are expecting more feedback from our valued customers and users to enhance this feature. Please feel free to send your inputs on this.
Thanks,
Neela
RamakrishnaNeela at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...