The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 ^ operator problem with negative values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

peter.cook

UK
356 Posts

Posted - 08/26/2009 :  07:32:55 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 7.5 SR6

Hi,

When I open a project file with variuos attached files (.ogs, .cnf, .cpp) the following code does not work :

tempv = 3;
tempv^=-1;
'tempv =' returns a missing value

tempv^=2 returns 9 correctly.

If I open a new project tghen the functionality returns so tempv^=-1 returns the correct value.

I'd appreciate any ideas??

Thanks,

Cheers,

pete

greg

USA
1379 Posts

Posted - 08/31/2009 :  1:41:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I would guess that some errant code that runs when you open that particular project creates a dataset named tempv or that the project already has a dataset named tempv.

Do a LIST S in that project to see if TEMPV turns up.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000