Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: strings, labels & goto Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: July 01 2007 at 16:37 | IP Logged Quote MrGibbage

I'm trying to figure out how strings are interpreted in PH macros. I have a program here that seems like it should work, but it doesn't. I've seen posts here (like this one) that make me think I am doing it right, but it just ain't working, so, what am I doing wrong?


Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: July 01 2007 at 16:45 | IP Logged Quote MrGibbage

And to make it even more confounding, if I swap END and 0
if (1=1, 0, "END")
I get the same result. But if I make both say "END"
if (1=1, "END", "END")
The macro skips to the END label and the message box does not execute.
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 
bhlonewolf
Senior Member
Senior Member


Joined: March 29 2007
Online Status: Offline
Posts: 198
Posted: July 01 2007 at 20:25 | IP Logged Quote bhlonewolf

My guess is that the integer is throwing it off? Meaning, you're mixing argument types -- I'm assuming it's looking for a string. Just for "fun", try making the 0 a "0" instead, see what that does.
Back to Top View bhlonewolf's Profile Search for other posts by bhlonewolf
 
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: July 01 2007 at 21:03 | IP Logged Quote MrGibbage

*sigh*

/me humbly thanks you

Skip
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum