Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Chain from one program to another


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-26-2007, 02:54 PM
Newbie
 
Join Date: Sep 2007
Location: norwich uk
Posts: 5
Default Chain from one program to another

Is it possible to run one program to start or select a process for instance, and then link to a second program to perform a task based on the results of the first program.

I remember doing this in BBC BASIC years ago and found it useful when writing long, involved programs.
Reply With Quote
  #2 (permalink)  
Old 10-26-2007, 03:05 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,845
Default

You can use the Shell keyword to launch any application you need.
Reply With Quote
  #3 (permalink)  
Old 10-26-2007, 03:06 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,368
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

You can "Shell" another program passing arguments to it and access those arguments in B4PPC with the special predefined args() global array.

See
MainHelp->Help->Keywords->General
and
MainHelp->Help->Basics->Command line arguments
Reply With Quote
  #4 (permalink)  
Old 10-27-2007, 02:54 PM
Knows the basics
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 94
Talking

agraham:
"You can "Shell" another program passing arguments to it and access those arguments in B4PPC with the special predefined args() global array"

Can you shell to B4ppc with an Arg(Prog. Name)?
Reply With Quote
  #5 (permalink)  
Old 10-27-2007, 03:26 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,845
Default

No. You will need to compile your application first.
Reply With Quote
  #6 (permalink)  
Old 10-27-2007, 03:27 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,368
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by bdiscount View Post
Can you shell to B4ppc with an Arg(Prog. Name)?
Sorry but I don't understand. Do you want to open the Devlopment environment with a certain source file in it or do you want to run a compiled B4PPC app and pass a string to it. If the latter then yes.

Shell("Notepad","c:\temp\file.txt")
Reply With Quote
  #7 (permalink)  
Old 10-28-2007, 05:51 PM
Knows the basics
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 94
Default

b4ppc myprog.sbp
I want to be able to associate b4ppc with the sbp source.
Reply With Quote
  #8 (permalink)  
Old 10-28-2007, 06:07 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,845
Default

Maybe it will be added to the next version.
Reply With Quote
  #9 (permalink)  
Old 10-28-2007, 06:39 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,127
Default

This would enable file association in the device, wich is on wishlist for some time...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiled program won't run djmrozinski Questions & Help Needed 12 02-27-2008 12:00 PM
Is program XYZ running? HARRY Questions & Help Needed 10 01-12-2008 05:06 PM
Program load stevefan Questions & Help Needed 1 12-07-2007 06:24 AM
New affiliates program Erel Announcements 1 11-27-2007 04:44 PM
How to get a picture of the program? Stellaferox Questions & Help Needed 11 05-13-2007 08:33 PM


All times are GMT. The time now is 07:31 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0