Thanks Cameron, Ill try that.
 
Kevin

Cameron Schlehuber <[EMAIL PROTECTED]> wrote:
If I understand what you're trying to do ...
Set Cmd="$$"_ProcTable(Command)
Set [EMAIL PROTECTED]@(stuff)

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Toppenberg
Sent: Sunday, November 07, 2004 5:47 AM
To: Hardhats Sourceforge
Subject: [Hardhats-members] More M syntax questions

A quick question before I head off for my trip:

I want to have a table that contains procedure names,
like this:

new ProcTable
set ProcTable(cRemark)="DoComment"
set ProcTable(cShow)="DoShow"
set ProcTable(cM)="DoM"
set ProcTable(cMenu)="DoMenu"
set ProcTable(cUpload)="DoUpload"
set ProcTable(cJump)="DoJump"
set ProcTable(cLookup)="DoLookup"
set ProcTable(cMsgBox)="DoMsgBox"
set ProcTable(cValueLookup)="DoValueLookup"
set ProcTable(cFileUtility)="DoFileUtility"

(I think this will be neater than the sequential IF's
I am using now)

I want to call the correct procedure based on a
command, like this:

if $data(ProcTable(Command)) do
. new Cmd set Cmd=ProcTable(Command)
. set [EMAIL PROTECTED]@(.Params)
goto CMDQuit

Only its not working. I have tried this several ways,
with the following errors:

set [EMAIL PROTECTED]@(.Params)
--> compiler error

set [EMAIL PROTECTED]@(Params)
--> compiles ok, but crashes here

set [EMAIL PROTECTED](Params)
--> compiles ok, but crashes here

I'm not sure when to use @Cmd vs @Cmd@ I've seen both
patterns.

Can someone tell me what I am doing wrong?

Thanks
Kevin







__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Hardhats-members mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hardhats-members



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Hardhats-members mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hardhats-members


Do you Yahoo!?
Check out the new Yahoo! Front Page. www.yahoo.com

Reply via email to