Finally trying out Delphi Prism (WinForms) and licensing question...

So after downloading the Delphi Prism trial I finally found some time to try out basic things. I wrote a Hello Prism program.

A form, three buttons, one text field. First button ("Hello") displays a message box saying "Hello, Prism!". Second button says ("Message") is disabled unless something is typed in the text field and disabled again if the text is deleted. If pressed it displays in a message box whatever had been typed into the text field. Third button ("Quit") and the close button of the window do the same thing: call a method that displays a message box ("Are you sure?") which will then quit the program if yes and cancel
 the closing event if no. Very simply.

It compiled and runs under .NET and Mono and Mono under Mac OS. No problem.

I did run into several newbie issues.

First I created strings with "" instead of ''. That appeared to be an issue. (Are string literals in Delphi Prism Pascal strings until stored in a System.String object or are they .NET objects to begin with?)

Then I ran into the := problem.

I also fell over the fact that all methods appear to have to be listed above the implementation part of the file and be declared globally (i.e. Form.MyMethod rather than just MyMethod).

Intellisense is a bit odd in Prism, not as good as in VB. Several times I found myself wondering what the next parameter is for MessageBox.Show() because the help has disappeared and wouldn't come back. Also I found I had to press return rather than tab to auto-type somerthing listed in Intellisense and I had to select an entry manually. In VB all this is more automatic.

Took me two hours to figure all of this out. And my code looks like it was typed by vandals.

I use VB a lot and got used to the compiler running in the background watching over me. Prism doesn't do that and what's worse, after fixing something the error is still listed and now links to a different line. Weird. Reminds me of Xcode.

Somehow the template contained a dependency on some RemObjects Internet class thingy which didn't work under Mono. I had to remove the reference and a few lines of generated code that referred to it.

I think I am getting there.

Now, as for the licensing question: How do I make sure I get a "named user" rather than a "node-lock" license? I am the only Prism user in my house but I have two computers. How do I make sure that my Codegear products work for me on both my desktop and my laptop (and any other computer I might want to install them on)? I run developer tools in VMs, hence the "any other computer".

I use VMware on my Mac Pro and Parallels on my MacBook so the PC hardware will be different on the two.

Thanks.
0
Andrew
7/10/2009 9:43:00 AM
embarcadero.delphiprism 374 articles. 0 followers. Follow

3 Replies
524 Views

Similar Articles

[PageSpeed] 36

Hi!

> First I created strings with "" instead of ''. That appeared to be an issue.
What was the issue? Delphi Prism should work with both, where the double-quoted strings can be multiline, the single-quoted ones can't be.

> (Are string literals in Delphi Prism Pascal strings until stored in a System.String object or are they .NET objects to begin with?)
They're .NET strings.

> Then I ran into the := problem.
What is the problem with that?

> I also fell over the fact that all methods appear to have to be listed above the implementation part of the file and be declared globally (i.e. Form.MyMethod rather than just MyMethod).
Well, Prism is a Pascal language. But the methods are not declared globally, they're declared in their classes with an appropriate visibility modifier.

Perhaps best for you is to read some basics, for example the Prism Primer: http://prismwiki.codegear.com/en/The_Prism_Primer

> Intellisense is a bit odd in Prism, not as good as in VB. Several times I found myself wondering what the next parameter is for MessageBox.Show() because the help has disappeared and wouldn't come back.
Should come back with Ctrl+Shift+Space

> Also I found I had to press return rather than tab to auto-type somerthing listed in Intellisense and I had to select an entry manually. In VB all this is more automatic.
Can you describe the situation, when you had to select an item manually?


> I use VB a lot and got used to the compiler running in the background watching over me. Prism doesn't do that and what's worse, after fixing something the error is still listed and now links to a different line. Weird. Reminds me of Xcode.
I think there're are two types of error messages: The ones shown with blue curly lines should go away without building the project, while red lines only go away when building the project.

> Somehow the template contained a dependency on some RemObjects Internet class thingy which didn't work under Mono. I had to remove the reference and a few lines of generated code that referred to it.
Which template was that?

Bye
Christian
0
Christian
7/10/2009 9:59:29 AM
> {quote:title=Christian Stelzmann wrote:}{quote}
> Hi!
> 
> > First I created strings with "" instead of ''. That appeared to be an issue.
> What was the issue? Delphi Prism should work with both, where the double-quoted strings can be multiline, the single-quoted ones can't be.

I don't know. Lots of things went wrong so I fixed that too thinking it might have something to do with it.

> > (Are string literals in Delphi Prism Pascal strings until stored in a System.String object or are they .NET objects to begin with?)
> They're .NET strings.

Ok.

> > Then I ran into the := problem.
> What is the problem with that?

I typed = instead of := being used to C and BASIC.

> > I also fell over the fact that all methods appear to have to be listed above the implementation part of the file and be declared globally (i.e. Form.MyMethod rather than just MyMethod).
> Well, Prism is a Pascal language. But the methods are not declared globally, they're declared in their classes with an appropriate visibility modifier.

I think the error message said that methods declared just by name, without modifier would be declared globally and that wasn't OK.

> 
> Perhaps best for you is to read some basics, for example the Prism Primer: http://prismwiki.codegear.com/en/The_Prism_Primer
> 

I like experimenting. I'll read too.

> > Intellisense is a bit odd in Prism, not as good as in VB. Several times I found myself wondering what the next parameter is for MessageBox.Show() because the help has disappeared and wouldn't come back.
> Should come back with Ctrl+Shift+Space
>

Good to know.

> > Also I found I had to press return rather than tab to auto-type somerthing listed in Intellisense and I had to select an entry manually. In VB all this is more automatic.
> Can you describe the situation, when you had to select an item manually?
> 

That happened every time I used Intellisense.

> > I use VB a lot and got used to the compiler running in the background watching over me. Prism doesn't do that and what's worse, after fixing something the error is still listed and now links to a different line. Weird. Reminds me of Xcode.
> I think there're are two types of error messages: The ones shown with blue curly lines should go away without building the project, while red lines only go away when building the project.

Oh, OK.
 
> > Somehow the template contained a dependency on some RemObjects Internet class thingy which didn't work under Mono. I had to remove the reference and a few lines of generated code that referred to it.
> Which template was that?

I want to say it was the plain Windows.Forms template?
0
Andrew
7/10/2009 10:47:00 AM
> > > First I created strings with "" instead of ''. That appeared to be an issue.
> > What was the issue? Delphi Prism should work with both, where the double-quoted strings can be multiline, the single-quoted ones can't be.
> 
> I don't know. Lots of things went wrong so I fixed that too thinking it might have something to do with it.
I think if it was a bug, it would be easier to fix it, if the RemObjects guys had more information ;)

 
> > > I also fell over the fact that all methods appear to have to be listed above the implementation part of the file and be declared globally (i.e. Form.MyMethod rather than just MyMethod).
> > Well, Prism is a Pascal language. But the methods are not declared globally, they're declared in their classes with an appropriate visibility modifier.
> 
> I think the error message said that methods declared just by name, without modifier would be declared globally and that wasn't OK.
Actually, there's an compatiblity option to declare global methods, but this only to make it easier to use old Delphi Win32 code. It's highly (really really highly) recommended to not use that option in new projects, but to do it the OOP-way and only declare methods inside classes.


> > > Also I found I had to press return rather than tab to auto-type somerthing listed in Intellisense and I had to select an entry manually. In VB all this is more automatic.
> > Can you describe the situation, when you had to select an item manually?
> > 
> 
> That happened every time I used Intellisense.
Ah, perhaps it's this: When you type in one character, there's only a "soft" selection. But after typing the second character, you get a "real" selection.

btw: To insert something you selected in IntelliSense, you can just hit the space-key, or colon, or period, ...


> > > Somehow the template contained a dependency on some RemObjects Internet class thingy which didn't work under Mono. I had to remove the reference and a few lines of generated code that referred to it.
> > Which template was that?
> 
> I want to say it was the plain Windows.Forms template?
Hm, cannot reproduce that.
0
Christian
7/10/2009 6:19:37 PM
Reply:

Similar Artilces:

Delphi and Delphi Prism licensing question
When I buy Delphi and Delphi Prism, do I get a "named user licence" or a "workstation licence"? Can I install both products on two machines I use with the same licence keys? I have a Mac Pro ("Cyrus") running Vista 64 in VMware and a MacBook ("Blacky") running Vista 32 in Parallels. Can I install Delphi and Delphi Prism on both Cyrus and Blacky since I use both machines (and like to have all dev tools I use installed on both machines at all times)? Andrew Brehm wrote: > When I buy Delphi and Delphi Prism, do I get a "named user licence...

Convert a Delphi 2006 WinForms project to Delphi Prism
How can I go about doing this short of recreating the project and transfering code? Just wondering what to expect if we go to Prism. Thanks. -- Don Gollahon Don Gollahon wrote: > How can I go about doing this short of recreating the project and > transfering code? > > Just wondering what to expect if we go to Prism. > > Thanks. Hi Don, Have you checked out the migration tool Oxidizer ? http://prismwiki.codegear.com/en/Oxidizer Cheers, John -- John Moshakis wrote: >Don Gollahon wrote: > >> How can I go about doing th...

Delphi licensing question
Hello! I am using Delphi 7 (developer licence). For debugging purposes I would like to install a copy of Delphi on a production server owned by a business partner. This computer is a dedicated server used only for our system and I am the only one one who would be using Delphi installled on this server. Am I allowed to do this or is there another way (Remote debugging is out of the question for security reasons) Thank you for your answers Habo habo habo schrieb: > Hello! > > I am using Delphi 7 (developer licence). For debugging purposes I would like to install a copy o...

Any difference between Delphi Prism 2011 and Delphi Prism XE?
Looking at the features in Delphi Prism XE, they look the same as the new items in the 2011 release back in may. I there anything new in the XE release? or did they simply change the product branding? Just wondering if I need to update it or now when i download the rest. Thanks, Hi Dan, > Looking at the features in Delphi Prism XE, they look the same as the new items in the 2011 release back in may. I there anything new in the XE release? or did they simply change the product branding? Just wondering if I need to update it or now when i download the rest. See http://w...

Delphi licensing question [Edit]
I'm hoping someone can tell me where to find an answer to this question. I recently upgraded to Delphi 2010. Despite some nervousness prompted by posts I'd read here and elsewhere, I'm finding migration of Delphi 5 projects reasonably straightforward after a few key units of shared code were manually converted. I have Delphi 2010 on my desktop. I would also like it on my laptop for when I'm on the road. Does Embarcadero offer any cheaper way to achieve this than purchasing another full license? Other software I use allows me to install on both machines but only use one at...

Try/Catch/Finally Question
I am trying the Try/Catch/Finally and I am getting the "myconn" is not declared. I didn't get this error until I put in the Try/Catch/Finally, any reason why? Try Dim webnew As Boolean = TrueDim WebID As IntegerDim contactID As IntegerDim reportID As IntegerDim strConn As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _"c:\accmon\database\accmon.mdb" & ";" '********************************************'Load Website tableDim MySQL As String = "Insert into websites (agencyID, url, service, addressIP, webnew)" & _  "Values (@DOTAgency, @URL, @ServiceType, @IPAddre...

Try Catch Question about Finally
Hi folks, Inside of a function that returns an integer I do a databse call. Se code below. If I do the following and there is an exception does the finally get performed? If there is an exception and the "ParamReturn.Value" is 1 what gets returned. I'm just a little confused on the sequence of events. <CODE>Try   objConn.Open()  objCmd.ExecuteNonQuery() Catch ex As Exception   Return 2 Finally  objConn.Close() End Try Return ParamReturn.Value </CODE>John BelthoffDodge, Duck, Dip, Dive & DodgeIf a man can dodge a wrench, he can dodge a...

How to register Delphi XE2 with its final license
A few days ago I ordered a copy of Delphi XE2 Enterprise from a Greek reseller. I got my copy accompanied by a temporary license (trial?) and I registered it. After my payment got processed I got the final license and now I want to register my copy of Delphi XE2 Enterprise with it. How do I do this? There seems to be no way for doing such a thing. Do I have to uninstall Delphi and download and install it again? Or is there another easier way? Thank you in advance, Angelos Arampatzis Hi Angelos, > A few days ago I ordered a copy of Delphi XE2 Enterprise from a Greek reseller. I go...

Delphi 2009 book and licensing question
G'day guys, I was hoping I could get some help with a little dilema I have. I've toyed with Delphi on and off over the years, and haven't made anything really serious, but from what I have used of it, I actually enjoyed it. Kind of ironic for someone who is studying policing as a career. :-) I would like to teach myself Delphi, and seeing that D2009 is out, does anyone know of any reasonably good books (either specifically written for D2009 or not significantly out of date) that would give me a run down of the language and the IDE? It's been a long time since I have u...

Delphi for PHP or Delphi PRISM
Hi, I have the opportunity to develop a web-based library management system. Nothing fancy, just being able to do the usual CRUD stuff for books and provide a search facility. Borrowing is to be done via an email request to the library admin who then sends out the book(s). Since both Delphi for PHP and Delphi PRISM will enable me to develop the app, which one will allow me to deliver it in less time and also increase (even how small) my marketability as a web developer? Thanks. Phillip Flores Phillip Flores wrote: > Hi, > > I have the opportunity to develop a...

superreview requested: [Bug 346029] try-finally where try throws runs finally with exception pending : [Attachment 230825] fix
Brendan Eich <brendan@mozilla.org> has asked Mike Shaver <shaver@mozilla.org> for superreview: Bug 346029: try-finally where try throws runs finally with exception pending https://bugzilla.mozilla.org/show_bug.cgi?id=346029 Attachment 230825: fix https://bugzilla.mozilla.org/attachment.cgi?id=230825&action=edit ------- Additional Comments from Brendan Eich <brendan@mozilla.org> Shaver, it would be great if you could give this a look too. /be ...

superreview granted: [Bug 346029] try-finally where try throws runs finally with exception pending : [Attachment 230825] fix
Mike Shaver <shaver@mozilla.org> has granted Brendan Eich <brendan@mozilla.org>'s request for superreview: Bug 346029: try-finally where try throws runs finally with exception pending https://bugzilla.mozilla.org/show_bug.cgi?id=346029 Attachment 230825: fix https://bugzilla.mozilla.org/attachment.cgi?id=230825&action=edit ------- Additional Comments from Mike Shaver <shaver@mozilla.org> sr=shaver ...

Debug.Assert, try/catch/finally block strategy question
I'm sick of putting break points in try catch blocks and finding errors that way when I'm debugging I love Debug.Assert - Instead of putting break points in every catch block, I wish there was a way to do something like assert...Get ready to blast your energy levels into high gear with Sedgewick Energy Drink. High powered adaptogenic herbs mixed with potent levels of B-vitamins and...Please disregard the contents of this post. what in the world are you doing debugging like that? Use the command window, and other tools also. There is no better means of doing anything than to ste...

try catch finally / response.redirect / response.end flow control question
Hi Guys, Can any one tell me if the finally block would be executed in the following example (assuming that dbReader.read() returned false because no records were found).   Many Thanks! DanielTry dbCon = New SqlConnection(myconnectionstring) dbCon.Open() dbCom = dbCon.CreateCommand() strSQL + "SELECT * FROM bookings WHERE ID &gt; 9000" dbCom.CommandText = strSQL dbReader = dbCom.ExecuteReader() If dbReader.Read() Then 'init fields Else Response.Redirect("main.aspx") End if Finally dbReader.clo...

Web resources about - Finally trying out Delphi Prism (WinForms) and licensing question... - embarcadero.delphiprism

Copyright Licensing Agency - Wikipedia, the free encyclopedia
This article reads like a news release , or is otherwise written in an overly promotional tone. Please help by either rewriting this article ...

Supshot: photo sharing and licensing in one app
We’ve established that I’m not much of a photographer, but this seems like a good idea to me. The app is free to download on the App Store.

Licensing.biz - LinkedIn
A place for like-minded licensing industry professionals to meet and exchange ideas.

How does turntable.fm's licensing work?
3 question followers. Be the first to answer.

Hulu Licensing Twat Up - Flickr - Photo Sharing!
Seriously hulu, I know you're working out deals with distributes but remember, a link in the inter-tubes is global and some of us aren't 'fortunate' ...

Licensing Gone Wild: Armed Government Agents Raiding Barber Shops - YouTube
IJ CITY STUDIES: http://ij.org/citystudies PAUL SHERMAN: http://ij.org/staff/627 POWER OF ONE: http://ij.org/about/3425 NEWS ARTICLE: http://bit.ly/ddqEGA ...

New licensing law for UAE transport firms
Companies will be charged varying amounts for each vehicle depending on what it carries, with tough penalties for those who fail to pay

Man behind famous Windows XP wallpaper wishes he'd negotiated a better licensing deal
The default Windows XP wallpaper containing rolling green hills, blue sky and fluffy white clouds may be more recognisable than the Mona Lisa, ...

Too much occupational licensing stunts Alaska economy - Alaska Dispatch News
OPINION: Occupational licensing is out of control across the country, and even in Alaska it gets in the way of livelihoods.

Meredith Signs Licensing Deal with Sequential Brands
... and Sequential Brands Group—which finalized its purchase of Martha Stewart Living Omnimedia earlier this month —have reached a 10-year licensing ...

Resources last updated: 1/22/2016 4:17:04 PM