Just Released: Synergy/DE Data Provider for .NET
Quick Links  

10/20/2009

Announcing Synergy/DE for .NET Beta Release

Giving Synergy developers a fully integrated .NET language


“Data Model” Not the Same as “Date a model”…But Still Pretty Cool

By Tod Phillips, PSG Consultant, Synergy/DE


Synergy/DE Tech Tip

Using %NUMARGS and trailing null arguments


Quiz

Synergy/DE pros, see if you can answer this question!


Platform News

Read a selection of recent articles


Synergex Events and Education

Find out what’s available online


Announcing the Developer Support Survey Winner

Find out if you're the lucky recipient

Synergy/DE 9
Synergy/DE blog
Synergy/DE and OS versions
Subscribe to Synergy-e-News
 
 

Announcing Synergy/DE for .NET Beta Release

Gives Synergy developers a fully integrated .NET language

We are very pleased to announce the release of Synergy/DE for .NET beta 1!
Synergy/DE for .NET gives Synergy developers a fully integrated .NET language, which provides:

      • The ability to call Synergy routines from other .NET languages and call other language
         routines from Synergy Language

      • Native IL code generation

      • Support for inherent multi-threading in the .NET Framework

      • Support for calls to virtually all .NET Framework features

      • Support for Visual Studio features:
            o Native debugger step-through from one language to another
            o Hover over to see a variable’s value
            o Full IntelliSense and colorization
            o Code snippets
            o Code regions

Synergy/DE for .NET beta 1 supports WPF, Windows Forms, console, and class library projects, as well as the most common Synergy Language system subroutines and functions. Future releases will support xfNetLink projects, additional system subroutines and functions, and other features. Beta 1 was shipped to testers last week as a VMware virtual image on USB flash drives. Beta testers will run existing code through the new Synergy/DE for .NET environment and also develop new Synergy code in Visual Studio .NET. If you would like more information about the Synergy/DE for .NET beta program, please let us know.

top


“Data Model” Not the Same as “Date a model”…But Still Pretty Cool

By Tod Phillips, PSG Consultant, Synergy/DE

When I was first approached about testing the Synergy/DE Data Provider for .NET, which enables ADO.NET Entity Framework (EF) access to Synergy databases, I remember thinking that I had too much on my plate already and that testing would have to wait. But when I heard that using the data provider and the EF would allow me to date a model, I suddenly got interested and agreed to dive into it immediately.

It didn’t take long to figure out that I would not, in fact, be heading out for a night on the town with a cover girl. By then, I’d read enough to know that Entity Data Models are at the heart of the Entity Framework, and not a bunch of gorgeous blondes and brunettes. My wife was ecstatic.

I rather sullenly got to work and began my research. I quickly learned that the Synergy/DE Data Provider for .NET wraps the native ODBC data provider, and that it provides Entity Framework access to Synergy data. The EF, in turn, provides a new method for accessing and dealing with data by the use of constructs known as Entity Data Models.

> continue

top


Synergy/DE Tech Tip

Using %NUMARGS and trailing null arguments

In a previous tech tip, we saw how using mySub() resulted in %NUMARGS returning a value of 1. As a Synergy programmer, you can determine the number of parameters you’re passing to a subroutine/function by counting the number of commas between the parentheses and adding one, bearing in mind that no parentheses = no parameters.

You can change the  behavior of %NUMARGS  by using the “trim” compiler option (–T on Windows/Unix or /TRIM on OpenVMS). This option will remove all trailing null (i.e., not passed) arguments. This will also have the effect of %NUMARGS returning 0 for mySub() .

The program below demonstrates the behavior of %NUMARGS.

.main
proc
                                open(1,o, 'TT:')
                                xcall argcount
                                xcall argcount()
                                xcall argcount(1)
                                xcall argcount(2,1)
                                xcall argcount(3,,)
                                xcall argcount(4,,1,)
                                xcall argcount(,,,,)
                                stop
endmain
subroutine argcount, varargs
proc
                                writes(1, %string(%numargs))
                                return
endsubroutine

When compiled without using –T, the program output is

0
1
2
3
4
5

When compiled with –T, the program output is

0
0
1
2
1
3
0

If you are using the default compiler options in Workbench, you have the –T option already set, as it’s required when using the ActiveX API. However, you should check the use of /TRIM on OpenVMS, especially with any source that uses system service routines.

So, if you’re using %NUMARGS, you really should use it in conjunction with ^PASSED,  so that you don’t try to process null arguments. Note that XCALLing a non-^VAL function can also affect the routine parameters and change the value that is reported by %NUMARGS.

top


Quiz

Synergy/DE pros, see if you can answer this question!

Given the following class:

class sample
  public method sample
  in req other, @sample
  proc
  ;;do something with other
  end
  public method sample
  proc
  end
endclass

If we change the type of the constructor parameter “other” to “@*” (object), what do we need to recompile?

a.  Nothing, because @* is an ancestor class to @sample
b.  Just this source file
c.  Any source file containing code that uses that form of the constructor
d.  Any source file that makes any reference to the class sample
e.  Oh heck, just rebuild everything!

Click here for the answer and explanation.

top


Platform News

Read a selection of recent articles

Windows
128-Bit Support in Windows 8, 9?
October 7, 2009

Admin's Guide to Deploying Windows 7
October 5, 2009

Ballmer: Licensing Problematic, But Don't Expect Any Changes
October 5, 2009

Windows 7 OEM Prices Revealed
September 30, 2009

Linux
Red Hat Addresses Supreme Court on Software Patents
October 2, 2009

OpenVMS
OpenVMS TUD Presentations
October 7, 2009

HP OpenVMS Technical Journal “Call for Participation
September 25, 2009

top


Synergex Events and Education


Workbench


NEW! Workbench 01: Introduction to Workbench
2 minutes

NEW! Workbench 02: Getting Around Workbench
6 minutes

NEW! Workbench 03: Configuring Basic Options
6 minutes

NEW! Workbench 04: Customizing the Toolbar
4 minutes


Synergy Language

Synergy Objects Part 1
65 minutes

Synergy Objects Part 2
l25 minutes

Synergy Objects Part 3
30 minutes


.NET assembly API

NEW! Synergy .NET assembly API
12 minutes

NEW! Hosting a Windows Form in a Synergy Application
33 minutes

NEW! Selective Code Generation with GENNET
11 minutes


UI Toolkit

From UI Toolkit to .NET: Updating a Legacy Application (A Customer's Perspective)*
75 minutes
*Note that in order to view this webinar, you must have the most recent version of Windows Media Player installed. To download Windows Media Player, click here.

UI Toolkit Composite Windows
30 minutes

Synergy/DE Data Provider for .NET
NEW!
Data Provider for .NET
9 minutes


Synergy Licensing Toolkit

NEW! Synergy Licensing Toolkit
32 minutes


Synergy/DE Highlights

MDU Enhancements in Synergy/DE 9
6 minutes

Synergy/DE 9.1 Highlights
70 minutes

top


Announcing the Developer Support Survey Winner

Congratulations to Glenn Fischer of CVS Caremark Specialty Pharmacy! Glenn is the winner of the Q3 Developer Support survey drawing, and the recipient of the $100 American Express gift card.

Want a chance to win? Let us know what you think!
Customer satisfaction with our Developer Support* is monitored and enhanced through the distribution of a satisfaction survey upon the closing of each support case. Each quarter, we choose a winner by randomly selecting the name of a customer who completed a survey after working with Developer Support. So, next time you call on us for support, let us know how we did and you could win $100 just for sharing your opinion.

Thanks to everyone who completed a Developer Support survey in Q3, and we look forward to hearing from you again.

*If you do not currently have Developer Support, contact your Synergy/DE account manager for more information.

top


Trademarks: Synergex, Synergy, Synergy Development Environment, Synergy/DE, Jodah Veloper, Manny Jurr, Mark Etting, Bigbah Smann, and all other Synergy/DE product names are trademarks of Synergex. All other product and company names in this newsletter are trademarks of their respective holders.

Copyright © 2009 Synergex International Corporation. All rights reserved.

Synergy-e-News 20091020