20.01.2015 Views

Teach Yourself e.net - Syspro

Teach Yourself e.net - Syspro

Teach Yourself e.net - Syspro

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Getting Started with e.<strong>net</strong> solutions<br />

3.2. Your First e.<strong>net</strong> solutions program<br />

It's now time to put the knowledge that you have just gained into use. Using the Basic<br />

Program Structure mentioned earlier in this chapter we will now create our first e.<strong>net</strong><br />

program together. We will be creating a simple logon script using Visual Basic Scripting...<br />

1. Open the Programming Editor that you are most comfortable with (or just open the<br />

Windows Notepad)<br />

2. Declare the variables that will be used for the Logon:<br />

• UserID<br />

• Encore<br />

To do this we type in the following code:<br />

Dim UserID, Encore<br />

3. We next set the Encore variable to the Encore.Utilities class<br />

Type in the following code:<br />

Set Encore = createobject("Encore.Utilities")<br />

4. We will now perform the e.<strong>net</strong> solutions logon function, using the Utillities.Logon<br />

method<br />

Type in the following code:<br />

UserID = Encore.Logon("ADMIN", "password", "0", " ", 5, \<br />

0, 0, " ")<br />

Where you see \ at the end of a line of code and the next line indented,<br />

this means that the text was too long for the page size of this book but<br />

the indented text belongs of the code line above.<br />

(for your logon string change ADMIN to your SYSPRO operator code, change<br />

password to your SYSPRO operator password, the first 0 to your SYSPRO company<br />

3–7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!