How to adress a digital output port in the simplest way?

Hallo,

my initial problem seems be solved, now I am stepping into the next:

I want in simple way adress the digital ports.
I browsed this forum but I only found very long program code.
So can anyone tell me what the easiest way is to switch on a digital port?

Thx
John

Use WriteAllDigital function.

Example:
This outputs the digital input code to the digital outputs (in VB.NET, VB 2005, VB 2008…):

Dim i As Integer i = ReadAllDigital WriteAllDigital(i)