App created with Revolution on Mac does not work on Windows

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
terjery
Posts: 3
Joined: Wed May 06, 2009 11:14 am

App created with Revolution on Mac does not work on Windows

Post by terjery » Wed May 06, 2009 11:43 am

I have been moving a (very basic) SuperCard project to revolution. Everything works fine on the Mac, but nothing happens in the Windows version og the app. Handlers located in a cards script called from controls just do not respond.
What is the reason for this? Handlers defined in the card should be executed when called from a controrl (menu, button etc...) on the card?

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Wed May 06, 2009 12:33 pm

I don't know (I've never "properly" used a Mac) but I've heard of issues when using the special => and =< type keys. These single tokens are not part of the character set cross-platform and will cause scripts to fail.
If you use the individual = and > keys (etc etc) then this fixes the scripts - not that that is any guarantee of being the problem, of course, but it's a thing to check, at least.

terjery
Posts: 3
Joined: Wed May 06, 2009 11:14 am

Post by terjery » Wed May 06, 2009 1:55 pm

I don't use any of those.
It is all very simple. The control contains a menuPick handler that calls a switch statement in the card script. The switch-statement is very basic, just picking which handler to call based on the itemname that is reported in the menuPick handler in the control.

On the Mac it works as expected. On Windows, nothing happens.

Garrett
Posts: 386
Joined: Sat Apr 08, 2006 8:15 am
Contact:

Post by Garrett » Wed May 06, 2009 5:28 pm

I've been using Rev to make apps for Mac and Windows for a few years now and never had such a problem unless I used platform specific code.

If you'd like, I can try your app on Windows Vista here. Just zip up the .exe file and either upload it, or email it to me @ garretthylltunATgmailDOTcom (replace AT with @ and DOT with .)

~Garrett
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)

terjery
Posts: 3
Joined: Wed May 06, 2009 11:14 am

Post by terjery » Wed May 06, 2009 5:40 pm

Thank you for the offer, but I have already tried it on 2 different PCs (XP and Vista) and the same happens on both of them.

The code I'm using is:

In the control (a menu):

Code: Select all

on menuPick pItemName
   put the ID of me into cd fld "IDnummer"
   -- put pItemName
   velgIMeny pItemName
   put pItemName into line 1 of cd fld "StegListe"
end menuPick
in the card script:

Code: Select all

on velgIMeny navn
   switch navn 
      case "Forpigmentering"
         visForpigmentering
         set the disabled of cd btn ID cd fld "IDnummer" to true
         exit switch
         
      case "Bland farge etter bruksanvisning"
         set the visible of cd btn ID (1086 + cd fld "Steg") to true
         set the disabled of cd btn ID cd fld "IDnummer" to true
         add 1 to cd fld "Steg"
         exit switch
         
  ...

   end switch 
end velgIMeny
(the ... signifies "more of the same").

The handler "visForpigmentering" is in the card script.

Any ideas? Anybody?
I am a long time SuperCard user who bought Revolution just because deploying on Windows would be easy, but so far I just don't see it.

Post Reply