Normal Topic FormRunProgram (Read 454 times)
debmckee
Full Member
***
Offline



Posts: 123
Joined: Oct 5th, 2011
FormRunProgram
Sep 14th, 2012 at 8:48pm
Print Post Print Post  
Will that work in a mass update?  I want to update a file with lots of records and lots of math formula's.  Fortunately all the formula's are in the same field.  I tried to put FormRunProgram command in my mass update with my changes but it didn't seem to work.

  
Back to top
 
IP Logged
 
debmckee
Full Member
***
Offline



Posts: 123
Joined: Oct 5th, 2011
Re: FormRunProgram
Reply #1 - Sep 14th, 2012 at 8:51pm
Print Post Print Post  
This is the code I used.

#include "sbasic_include.sbas"


exchange rate = "1.03"


FormRunProgram("inventory cost sheet","exchange rate",program_event_le_change)

  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: FormRunProgram
Reply #2 - Sep 15th, 2012 at 4:50am
Print Post Print Post  
Are you trying to call an event that is on the same form? In other words, are you mass updating the "inventory cost sheet" form?

FormRunProgram() will not work on its own form. It has to be calling an event from a different form, that is also open at the same time.

The simplest solution is probably to just copy and paste the code from your "Exchange Rate :: On Element Change" event, into the mass update.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged