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
 Forum for Origin C
 How do I compare numerical cell 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

Leyawin

1 Posts

Posted - 02/19/2015 :  04:43:56 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
OriginPro 8 SR4

Operating System:
Windows 8.1

After hours of difficult programming I stumbled upon this elementary issue, and I can't seem to find an answer in the documentation.

I have an if-loop where I want to compare 2 cell values in a worksheet, basically:
If(ValueOfCellA>ValueofCellB)
{
Do some commands
}

So my question to you guys is:
How do I refer to the numerical value of a cell in a worksheet?

cpyang

USA
1406 Posts

Posted - 02/20/2015 :  9:48:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Usually worksheet cells are accessed by a dataset, but you can certainly use the Cell method on a data sheet, see

http://www.originlab.com/doc/OriginC/ref/Datasheet-Cell

CP
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