Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Chain from one program to another

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-26-2007, 03: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, 04:05 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You can use the Shell keyword to launch any application you need.
Reply With Quote
  #3 (permalink)  
Old 10-26-2007, 04:06 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 03:54 PM
Senior Member
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 122
Awards Showcase
Beta Tester 
Total Awards: 1
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, 04:26 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

No. You will need to compile your application first.
Reply With Quote
  #6 (permalink)  
Old 10-27-2007, 04:27 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 06:51 PM
Senior Member
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 122
Awards Showcase
Beta Tester 
Total Awards: 1
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, 07:07 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

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

This would enable file association in the device, wich is on wishlist for some time...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to lock a program ? gjoisa Questions (Windows Mobile) 6 12-11-2008 09:19 PM
Program not run under CF3.5 ? Paulsche Questions (Windows Mobile) 7 10-15-2008 04:23 PM
Program Size ceaser Chit Chat 2 08-09-2008 02:20 PM
Program load stevefan Questions (Windows Mobile) 1 12-07-2007 07:24 AM
How to get a picture of the program? Stellaferox Questions (Windows Mobile) 11 05-13-2007 09:33 PM


All times are GMT. The time now is 03:04 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0