Error Compiling My App with Xojo 2014 R3

I got the following error when I try to compile my app with R3 under Mac OS X 10.10.1:

“There is more than one item with this name and it’s not clear to which it refers.”

File: RBXML

Location: RegisterControls.Encode

Code:

What can I do???

Is that a plugin method?

Please contact me by email Dagmar

“RegisterControls” is a module that is used in all my CustomControls.

Hi Jeremie anything new on this? Running into same error message with Chartview Control…

I’m getting the same error trying to create a Date object in a Paint event:

dim theDateToday as Date
theDateToday = new Date

I also tried “theDateToday = new xojo.core.Date” and “theDateToday = new Date()” although really I’m just thrashing around trying to figure out what’s going on.

Xojo 2014 R3 (downloaded fresh this afternoon)
Target: iOS

http://xojo.helpdocsonline.com/date
You cannot use Dim d As New Date to get the current date. Instead, use Dim d As Date = Date.Now or more simply, just Date.Now.

http://documentation.xojo.com/index.php/Date

Dim d As Date
d = New Date

Conflicting documentation? Is documentation.xojo.com deprecated?

PS Thanks Norman.

This should be in its own thread rather than taking over this thread, but there are two frameworks now. The old Date class in the old Xojo framework works in desktop/web/console projects. The new Date class, Xojo.Core.Date, is required for iOS but also works in desktop/web/console.

http://xojo.helpdocsonline.com/the-new-xojo-framework

Thanks for the pointer, Paul. (It looked like it belonged in this thread (same error msg) when I started; I didn’t realize it was a different cause.)

I have just uploaded an updated RegisterControls module.

It is available here: Download RegisterControls - Software Design & Development by Jeremie Leroy

[quote=150153:@JrmieLeroy]I have just uploaded an updated RegisterControls module.

It is available here: http://www.jeremieleroy.com/download.php?item=RegisterControls[/quote]

I go to the link (also having compile issues, and since I have no other addons and my caches are all clear, this is probably the issue) and it displays a file with a bunch of jumbled stuff in it as ‘binary code’; do I just save the file? Custom UI here.

What is the reason for disallowing “= new date”? Is date no longer a class? Doesn’t make any sense to me.

I have the same error with the previous version I had not. On the line 5 and 6.

dim sort1(-1),sort2(-1),sql,a as string
dim rs as RecordSet
dim indx as Integer
indx=lista.ListIndex
sort1=lista.RowTag(indx).split(",")
sort2=lista.RowTag(indx-1).split(",")

Just to give a short feedback:

The updated RegisterControl works fine here. I’ve just tested it with Calendar and Chartview Controls,. I do not use CustomUI in my current project so couldn’t check this.

[quote=150249:@Luigi Gargano]I have the same error with the previous version I had not. On the line 5 and 6.

dim sort1(-1),sort2(-1),sql,a as string
dim rs as RecordSet
dim indx as Integer
indx=lista.ListIndex
sort1=lista.RowTag(indx).split(",")
sort2=lista.RowTag(indx-1).split(",")[/quote]

You should use Rowtag(indx).StringValue.split(",")

Thx.

Jeremie, may I ask you to prefix/postfix your stuff.
Like RegisterModuleJL?

Will do Christian for 2015.01 update.

Jeremie: I’ve emailed you regarding my issue.

Never mind about 2nd issue in email, new RegisterControls seemed to have fixed the issue in R3. Now compiles and runs fine.