confuse with "xojo.core.Dictionary" and "dictionary"

and “xojo.core.Date” with “Date”
Is not the same things… just want to know, why?

[quote=303249:@Chai Ren]and “xojo.core.Date” with “Date”
Is not the same things… just want to know, why?[/quote]
Xojo.Core.Date is from the New Framework and the Date is from the old framework.

(new framework) Xojo.Core.Date doc: http://developer.xojo.com/xojo-core-date

(old framework) Date Doc: http://documentation.xojo.com/index.php/Date

those that have “xojo.” in front are part of the “NEW FRAMEWORK”
those that do not are part of the “ORIGINAL FRAMEWORK”

personally this “new framework” requirement makes zero sense… not sure I buy the “it was required for iOS support” rationale
but it is what it is.

[quote=303250:@Mike Cotrone]Xojo.Core.Date is from the New Framework and the Date is from the old framework.

(new framework) Xojo.Core.Date doc: http://developer.xojo.com/xojo-core-date

(old framework) Date Doc: http://documentation.xojo.com/index.php/Date[/quote]

thanks,I understand,but could we just use xojo.core.date or xojo.core.Dictionary globally and not use “using xojo.core.date”?

it’s too much code to write “xojo.core” everywhere…

[quote=303252:@Chai Ren]thanks,I understand,but could we just use xojo.core.date or xojo.core.Dictionary globally and not use “using xojo.core.date”?

it’s too much code to write “xojo.core” everywhere…[/quote]

You can also use the “using” namespace statement at the top of your method/function so you don’t have to write out xojo.core.date every time (for example).

http://developer.xojo.com/using

Example from Doc:

Using Xojo.Core
Dim d As New Dictionary // NOW YOU CAN JUST SAY DICTIONARY VS. XOJO.CORE.DICTIONARY

This should help you.

[quote=303255:@Mike Cotrone]You can also use the “using” statement at the top of your method/function so you don’t have to write out xojo.core.date every time (for example).

http://developer.xojo.com/using

Example from Doc:

Using Xojo.Core
Dim d As New Dictionary

This should help you.[/quote]

I mean, i have to code “using xojo.core” in every function? that’s also a boring things I thing…
and the property of class have to declare so?

[quote=303251:@Dave S]those that have “xojo.” in front are part of the “NEW FRAMEWORK”
those that do not are part of the “ORIGINAL FRAMEWORK”

personally this “new framework” requirement makes zero sense… not sure I buy the “it was required for iOS support” rationale
but it is what it is.[/quote]

from the doc, i see a “global” just avaiable for IOS ?

[quote=303256:@Chai Ren]I mean, i have to code “using xojo.core” in every function? that’s also a boring things I thing…
and the property of class have to declare so?[/quote]

FROM THE DOCS:
When Using is used in code, it obeys code block scoping rules.

You can also use Using with classes and modules (Insert->Using Clause). When used in this manner, the Using applies to the entire class or module and all code contained within it.

This is consistent with C# and I am sure other languages…

yes,I can insert clause to every module. but that will clause lot’s of error,as “timer” change to xojo.core.timer,their are also different
either. so I decide that I only needs the xojo.core.dicitonary somewhere and not to global.

thanks