| T O P I C R E V I E W |
| elfine |
Posted - 11/14/2008 : 07:29:46 AM dear sir, I want to compare the name of a object,for example,a worksheet with a string that comprises of a wildcard. I want to use this kind of sentence like "if(%H=="data*")" where "*" denote a wildcard .But I can't make it working. Could you please help me ? Thank you ! |
| 4 L A T E S T R E P L I E S (Newest First) |
| elfine |
Posted - 11/17/2008 : 01:05:56 AM Thanks a lot!
quote: Originally posted by cpyang
Time to get Origin 8 :)
LabTalk string variable was added in Origin 8, together with all the new functions. Origin 7.5 only has string registers %A-%Z.
CP
|
| cpyang |
Posted - 11/16/2008 : 8:01:14 PM Time to get Origin 8 :)
LabTalk string variable was added in Origin 8, together with all the new functions. Origin 7.5 only has string registers %A-%Z.
CP
|
| elfine |
Posted - 11/15/2008 : 8:24:58 PM Thank your kind help! I use the Origin 7.5 version. When I type
name=%H; name=;
It returns
NAME=--
What is the problem ?
quote: Originally posted by cpyang
Assuming you are using Origin 8, then
string name=%H; if(name.Match("Book*")) type yes; else type no;
See this link for LabTalk string variables:
http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:String_%28object%29#Match
CP
|
| cpyang |
Posted - 11/14/2008 : 7:20:36 PM Assuming you are using Origin 8, then
string name=%H; if(name.Match("Book*")) type yes; else type no;
See this link for LabTalk string variables:
http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:String_%28object%29#Match
CP
|