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
 Empty cell and import single ascii file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

didodido85

Italy
Posts

Posted - 01/31/2006 :  06:00:16 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

what command control if a cell (numeric/text) is empty?
Can i import a single ascii file (from a path) directly into a set worksheet name.

Sorry for my bad english.

Best regards.
Federico.

Mike Buess

USA
3037 Posts

Posted - 01/31/2006 :  09:23:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Federico,

> This assumes that an "empty" cell contains neither number nor text...

rr = row number;
cc = column number;
%A = cell(rr,cc)$; // get cell as text
if( %A=="" ) type "Row $(rr), col $(cc) is empty";

> This will import to the worksheet wksName...

win -a wksName; // activate wks
open -w file path\name; // import file

Mike Buess
Origin WebRing Member
Go to Top of Page

didodido85

Italy
Posts

Posted - 01/31/2006 :  09:39:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:


> This will import to the worksheet wksName...

win -a wksName; // activate wks
open -w file path\name; // import file

Mike Buess
Origin WebRing Member



But if next i must work with different worksheet i must reset with the command "win -a" the current worksheet or is automaticaly reset.
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 01/31/2006 :  10:12:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The open -w command imports to the active worksheet. If you want to import to wks Data3 while Data1 is active you must first activate Data3 with win -a Data3. If Data3 is already active you can omit the win -a command.

Mike Buess
Origin WebRing Member
Go to Top of Page

didodido85

Italy
Posts

Posted - 01/31/2006 :  10:27:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:

The open -w command imports to the active worksheet. If you want to import to wks Data3 while Data1 is active you must first activate Data3 with win -a Data3. If Data3 is already active you can omit the win -a command.

Mike Buess
Origin WebRing Member



Thanks Mike, very fastly :D

Bye bye...
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