Questions tagged [oxygene]

Oxygene is a general-purpose object-oriented programming language based on Pascal. Oxygene can be compiled to the Microsoft Common Language Runtime (.NET and the Mono), Java & Android's Dalvik, as well as the Objective-C runtime.

Oxygene is a general-purpose object-oriented programming language based on Pascal. Oxygene can be compiled to the Microsoft Common Language Runtime (.NET and the Mono), Java & Android's Dalvik, as well as the Objective-C runtime.

106 questions
3
votes
3 answers

How to make Delphi Prism indexed properties visible to C# when properties are not default

I have several Delphi Prism classes with indexed properties that I use a lot on my C# web applications (we are migrating a big Delphi Win32 system to ASP.Net). My problem is that it seems that C# can't see the indexed properties if they aren't the…
Arcturus
  • 65
  • 3
3
votes
2 answers

How to programmatically press toolstripbutton down?

I want to push toolstripbutton down in my code and I can't seem to be able to do that. I know on Delphi RAD Studio or XE, you can do the following and cause the button to be pressed. ToolStripButton1.Down := true; The only ToolStripButton property…
ThN
  • 3,235
  • 3
  • 57
  • 115
3
votes
1 answer

How to create dynamic array of DateTime?

I need to create a dynamic array of DateTime, but I don't know before hand how many dates I will have to add. I did experiment with ArrayList, but it doesn't help. So, how do you create dynamic array of DateTime in Delphi Prism? Is this how you do…
ThN
  • 3,235
  • 3
  • 57
  • 115
3
votes
1 answer

How to prevent Closing and Disposing of a winform in the FormClosing event?

This question may seem like a duplicate, but I just ran in to this issue while I was testing my program and I am kind of confused as to how you solve it. I have a winform and it has a form closing event. In the event, I pop open a messagebox asking…
ThN
  • 3,235
  • 3
  • 57
  • 115
2
votes
1 answer

Delphi Prism Cirrus accessing and setting the Result of a function

Background This question relates to the new Cirrus infrastructure for Aspect Oriented Programming in Delphi Prism. I currently have an aspect which I am Auto-Injecting into a class and am attempting to modify the target code using aMethod.SetBody…
jamiei
  • 2,006
  • 3
  • 20
  • 28
2
votes
3 answers

C# to Oxygene code converter

I know CodeGear made BabelCode that uses the Code DOM to convert C# to Delphi for .NET. I am curious if there are any other similar tools to convert C# to Delphi Prism? If not, what is involved in using the Code DOM to create one (yeah, that is…
Jim McKeeth
  • 38,225
  • 23
  • 120
  • 194
2
votes
2 answers

How can I pass a Delphi array of integers to a Prism DLL?

I've read and successfully tried the answer to How can I pass a Delphi string to a Prism DLL?, but wondered if it was possible to use a similar method to pass a Delphi array of integers (static or dynamic) to a Prism DLL.
2
votes
5 answers

Lambda Expressions in Delphi Prism/Oxygene

I have been experimenting with Lambda expressions in Oxygene. Very simple recursive lambda expression to calculate a fibonacci number : var fib : Func; fib := n -> iif(n > 1, fib(n - 1) + fib(n - 2), n); fib(3); When I run this code I…
Steve
  • 6,382
  • 3
  • 41
  • 66
2
votes
1 answer

Why does Delphi Prism complain about System type mismatches?

I encountered a strange compiler error in Delphi Prism 2010 that I am unable to resolve. The error is calling a method on an object defined in a third-party assembly that manipulates a specialized image format. The assembly itself was compiled…
2
votes
1 answer

how to handle redundant classes used in web services

I've started using some web services that have a staggering amount of redundancy when added as web services in Visual Studio 2012. Here are two WSDLs that demonstrate…
jep
  • 747
  • 6
  • 25
2
votes
1 answer

What is the paramstr equivalent in Delphi Prism

Is there a simple statement that can give a result similar to paramstr() in Delphi?
Bill Seven
  • 768
  • 9
  • 27
2
votes
3 answers

How set dynamic array size in Oxygene (SetLength doesn't work)

What is the equivalent of SetLength using Oxygene? I'm trying to size an integer array. var listIndexes: array of integer; begin setLength(listIndexes,5); // doesn't work end;
Bill Seven
  • 768
  • 9
  • 27
2
votes
3 answers

Are there cross-compilable OpenGL examples made with Oxygene?

We have a working OpenGL project made for PC (works on MacOS and Linux under Wine as well) which we want to try to cross-compile to tablets. Delphi XE2/XE4 offers iOS support, but there's no Android yet and judging from iOS implementation history it…
Kromster
  • 7,181
  • 7
  • 63
  • 111
2
votes
2 answers

Stream to Byte array conversion in Oxygene

I'm trying to find a way out with this legacy Delphi Prism application. I have never worked on Delphi Prism before. How do I convert a Stream type to Byte Array type? Please detailed code will be really appreciated as I have no knowledge of Delphi…
Asker
  • 23
  • 3
2
votes
1 answer

Can I use the Oxygene free command line compiler to develop open source code?

I just downloaded the Oxygene free command line compiler, and tried to read the EULA, which I did not quite understand. While there was a section about compiled programs and redistributables, I did not really understand what it meant as it seemed by…
blwy10
  • 4,862
  • 2
  • 24
  • 23