Page 1 of 1 1
Topic Options
#20144 - 2002-04-18 07:22 PM Another beginner's question
arshepp Offline
Fresh Scripter

Registered: 2002-03-18
Posts: 41
Loc: California
Assuming I have a simple script as follows:

code:
SELECT
CASE InGroup("Test")
Use t: "\\server\share"
Addprinterconnection ("\\server\printer")
; At this point, could I add another portion of script applying to this group to perform a file copy function based on the day of the week?
ENDIF

Does my request make sense? Thanks.

Top
#20145 - 2002-04-18 07:27 PM Re: Another beginner's question
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
You have an endif statement where you should have an endselect. Is that the question?
Top
#20146 - 2002-04-18 08:06 PM Re: Another beginner's question
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Yes, you can. the General syntax for the SELECT CASE is:
code:
SELECT
CASE $a
; do stuff
CASE $b
; do other stuff
CASE 1
; default do unnecessary stuff
ENDSELECT

The 'do stuff' areas can be whatever you want them to be, e.g. multiline Kixtart code.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 696 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.05 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org