Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Variable value is not considered while executing a command.  RSS feed

 
sudheer raj shetty
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the below program am using the image path as input parameters for function imagecompare. In this function am trying to compare two images using compare command.

But when i try to execute this code, it is considering "sourceone" itself as parameter, actually i want its value (i,e) "c:\\autobanner\\GoldImage\\mybanner1.jpg"; to be considered. How to resolve this issue?

 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shouldn't be
 
sudheer raj shetty
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Maneesh..!!
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, because there will be problems when either path has a space in them, it should be this:
Or, alternatively, use a String array:
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops.
Forgot about white spaces.
Thanks Rob.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!