Some warnings and error

This forum is meant for questions and discussions about the X# language and tools
User avatar
Chris
Posts: 4936
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Some warnings and error

Post by Chris »

Hi Horst,

Yes, it's the same with Empty(), or to be more precise a test against an empty string, so

IF c == ""

(because Empty(c) would return TRUE also with a string consisting of only a few spaces)
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
wriedmann
Posts: 3765
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Some warnings and error

Post by wriedmann »

Hi Horst,
I'm pretty sure there will be functions around that can to that UnEscape() in plain .NET code.
In .NET there is no problem at all to convert a string in an array of bytes or an array of characters (attention: this is not the same in a Unicode world!).
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Horst
Posts: 337
Joined: Tue Oct 13, 2015 3:27 pm

Some warnings and error

Post by Horst »

Hallo Chris and Wolfgang
I will use c=="" because its a function from CAVO and i dont know what its realy doing. i was looking for 'unescape c#' and i dont know witch one of the found result is the one i need :-(

And lines like -> IF pb = 0x25 is not my world ;-)

Thanks
Horst
User avatar
Horst
Posts: 337
Joined: Tue Oct 13, 2015 3:27 pm

Some warnings and error

Post by Horst »

And already the next question.
i have a class and this class is using the FUNCTION _fmtReal() and now i have 81 warnings XS9066 when i compile that.
i dont like warnings ;-) 0 warnig's is perfect nothing else. i understand that warning but i wanna not see that , because is nothing wrong with the code. its only a hint/tipp
How turn this off ?
BTW i tryed VS and Xide and the winner is Xide ;-) What i am missing is the parameter list when the mouse is on a function. it only comes Strtran (..)
Horst
User avatar
Chris
Posts: 4936
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Some warnings and error

Post by Chris »

Horst, can you please show us the lines of code in which you get the warnings?
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
Horst
Posts: 337
Joined: Tue Oct 13, 2015 3:27 pm

Some warnings and error

Post by Horst »

Hallo Chris
While i was looking for the code to send . i found that this function is two times in the program. Once as static in the PDF Class Prg and once in the PDF Function Prg. I removed now the static and it works. :-)

About the Xporter. he doesnt make a viaef ? First i was moving the libary and now i wanna add the program. but i cant import it. shoud i have to make a new project first and then moving it to my first project ?
Horst
User avatar
wriedmann
Posts: 3765
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Some warnings and error

Post by wriedmann »

Hi Horst,
the XPorter makes the source (prg) files.
With the newest version (that was not yet delivered) you can even move single modules (from MEF, PRG or even from the clipboard). So you will be able to overwrite single prg files of your X# project.
I like that possibility because it makes migrations much, much easier.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Horst
Posts: 337
Joined: Tue Oct 13, 2015 3:27 pm

Some warnings and error

Post by Horst »

Hi
I had to go to Project->Add existing and then Add Application. This works like a AEF Import in Cavo.
User avatar
wriedmann
Posts: 3765
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Some warnings and error

Post by wriedmann »

Hi Horst,
if you are doing a continuos migration, you can use your XIDE application folder as target for XPorter.
Please llok at the XIDE folder structure, and you will see that every aplication/library has its own folder where all the prg files are located.
If your project folder is c:XIDEProjectsMyProject, your application "MyApp" is located in c:XIDEProjectsMyProjectAplicationsMyApp. Then you can use the folder c:XIDEProjectsMyProjectAplications as target folder for your migration and then add your application from the correct location and keep all your code in the correct folder structure.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Post Reply