Basic4ppc - Windows Mobile Development  

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

Basic4ppc Wishlist Missing any feature?


CLI arguments to run source file


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-05-2007, 10:31 PM
LineCutter's Avatar
Knows the basics
 
Join Date: May 2007
Location: Daarsit
Posts: 98
Awards Showcase
Beta Tester 
Total Awards: 1
Default CLI arguments to run source file

It would be nice to be able to start Dbasic.exe with CLI arguments that not only loaded the source file, but ran it in debug mode.

This would allow the use of alternative editors for the coding (I'm really missing sub folding as the code gets bigger).
Reply With Quote
  #2 (permalink)  
Old 06-06-2007, 05:01 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,956
Default

You could use an alternative editor if you like.
Using the Components dialog you can add text files to your code.
Open your project (which can be with no code at all) with Basic4ppc, and work on the text file (the code file) with your editor.
Reply With Quote
  #3 (permalink)  
Old 06-06-2007, 09:16 PM
LineCutter's Avatar
Knows the basics
 
Join Date: May 2007
Location: Daarsit
Posts: 98
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I'm doing that. However, to run/test the file I have to be inside B4P. I know I can pass the filename as an argument, but it's almost as much hassle to save, swap programs & click on run as it is to work direct in B4P.
(Actually I keep both open & leave a stub in B4P to run the included text file, but that's not really the point here)
Reply With Quote
  #4 (permalink)  
Old 06-07-2007, 05:43 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,956
Default

Actually I meant that you could leave Basic4ppc open and just run your application from there. Basic4ppc loads the file each time you run your application.
Reply With Quote
  #5 (permalink)  
Old 06-07-2007, 08:40 PM
LineCutter's Avatar
Knows the basics
 
Join Date: May 2007
Location: Daarsit
Posts: 98
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Same thing essentially.

What I was thinking of was one of these text editors that allow you to pass the filename to an executable file from a keyboard shortcut in the text editor.

e.g. in Notepad++ you'd use F5 to run "DBasic.exe -run myfile.sbp" which would pass the newly saved file to the DBasic in debug mode. I suppose that "DBasic.exe -compilePPC myfile.sbp" would be a handy addition.

The extra effort in creating the greatest text editor in the world could then be delegated to someone else, allowing you to work on the Form designer & compiler.
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
zip & unzip library (with source) dzt Additional Libraries 13 09-16-2008 09:55 AM
Add file association to Basic4ppc source code files (on the device) Erel Code Samples & Tips 8 01-16-2008 07:01 AM
New Listview Library (with source) Filippo Additional Libraries 14 09-20-2007 07:29 AM
Source Files package? Rod Questions & Help Needed 10 08-15-2007 05:12 PM
Include source code from an external file Zemog Questions & Help Needed 2 06-29-2007 08:38 AM


All times are GMT. The time now is 08:38 AM.


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