Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...This site is truly a marvel. Without a doubt the most comprehensive, friendly and just plain useful resource of its kind..."

Geography

Where in the world do Tek-Tips members come from?

How do I pass a group when starting a new thread

ChrisH2 (Programmer)
3 Aug 07 13:46
I am trying to pass a group of parameters when starting a new thread. eg: -

Calling Procedure: -

!Start thread, passing 1 parm
SaveThread2 = START(NewProc2,35000,Loc:GroupName)

Procedure Being Called: (NewProc2) -

Prototype: (Group)
Parameter: (MyGroup)


How do I specify the group in NewProc2?

It does not seem to like a Prototype of (Group)

I get the compile error "invalid data type for value parameter"

(*Group) doesnt seem to work either.  I get the compile error "No matching prototype available" for the START command.

Has anyone managed to do this?

ShankarJ (Programmer)
15 Aug 07 3:29
Hi,

START() can handle only string parameters. Look in the help on the TYPE attribute of groups.

In Global Data :

MyGroupType     GROUP,TYPE
B1                byte
S2                string(20)
D3                decimal(10,2)
                END

In calling procedure or frame :

PassedGroup     GROUP(MyGroupType)
                END

Called procedure :

START(MyProcedure, 25000, PassedGroup)

MyProcedure     PROCEDURE(STRING PassedGroup)

MyGroup         GROUP(MyGroupType)
                END

  CODE

  MyGroup = PassedGroup

  ...

Regards

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close