comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Problem using conditional statements when calling PV_WAVE CL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Problem using conditional statements when calling PV_WAVE CL [message #1755] Wed, 09 February 1994 12:52
acavone is currently offline  acavone
Messages: 1
Registered: February 1994
Junior Member
Hi,

I'm new to this news group and was wondering if anyone out there might be able to help
me solve a problem I am having using conditional PV-WAVE statements such as CASE
in a C program which calls PV-WAVE. I am using PV-WAVE CL Version 4.00
on a Sun SPARCstation running SunOS 4.1.2. I am using the cwavec command to allow
my C program to call PV-WAVE. This is outlined in the PV-WAVE Command Language
User's Guide in chapter 18 on Interapplication Communication.

My problem is that when I try to have PV-WAVE execute a sequence of CASE
statements contained in my C program I get errors. My code sequence looks
kind of like this for example:

.
.
.
cmd[0] = "a = 2";
cmd[1] = "b = 3";
cmd[2] =" i = TVMENU(['add', 'subtract',' multiply',' divide'], 'Select Desired $
Operation:', 100, 100]";
cmd[3] = "CASE i OF";
cmd[4] = "0:PRINT, 'a + b = ', a+b";
cmd[5] = "1:PRINT, 'a - b = ', a-b";
cmd[6] = "2:PRINT, 'a * b = ', a*b";
cmd[7] = "3:PRINT, 'a / b = ', a/b";
cmd[8] = "ENDCASE";
action = 2;
num = 9;
istat = cwavec( action, num, cmd);
.
.
etc.

When I execute this code PV-WAVE responds:

%Case statement found no matches.
% Execution halted at $MAIN$ .

then:
0:PRINT, ' a+ b = ', a+b
^

% Syntax error.

since the program has crashed.

Has anyone else out there seen a problem such as this or can anyone make any
suggestions around this? Please e-mail me if you can help.

Thank You,
Angelo Cavone

a.a.cavone@larc.nasa.gov
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Device driver for framemaker interchange format
Next Topic: Some questions

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:11:42 PDT 2025

Total time taken to generate the page: 0.00701 seconds