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.

Add Code

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-10-2007, 07:18 PM
giannimaione's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Naples, Italy
Posts: 244
Send a message via Skype™ to giannimaione
Awards Showcase
Beta Tester 
Total Awards: 1
Default Add Code

Hi all,
how to use Tools ----> Components ----> Add Code ?

Perhaps, i can write a piece of code (routines) in MyCode.txt and to re-use it in various plans (creations) ?


thanks all

Gianni Maione
Reply With Quote
  #2 (permalink)  
Old 05-10-2007, 07:21 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Hi

Fro what i remember, the code files are txt files and are added just like the libraries, I think that thay also have to be in the apps dir
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #3 (permalink)  
Old 05-10-2007, 09:55 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,731
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

As Cableguy wrote, you add your code saved as a text file.
The text file will be copied to the application folder.
Unlike the dll files there is no need to distribute the code with your compiled application as it will be compiled (to the same EXE file).
It is also useful for large projects, to allow you to separate the code into several files.
Reply With Quote
  #4 (permalink)  
Old 05-11-2007, 09:11 PM
giannimaione's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Naples, Italy
Posts: 244
Send a message via Skype™ to giannimaione
Awards Showcase
Beta Tester 
Total Awards: 1
Default

it (code txt) works very well!!!
Reply With Quote
  #5 (permalink)  
Old 06-01-2008, 04:56 PM
MM2forever's Avatar
Senior Member
 
Join Date: Jun 2007
Location: Germany
Posts: 103
Send a message via ICQ to MM2forever Send a message via MSN to MM2forever Send a message via Skype™ to MM2forever
Default

so, is there actually a way like Include("device.txt") ?

otherwise I wouldnt remark that feature as *that* useful
__________________
Regards, Christian

Reply With Quote
  #6 (permalink)  
Old 06-01-2008, 06:03 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

From the original post

Tools ----> Components ----> Add Code ?

The disadvantage is that the code file is copied to the app directory so effectively breaking the link to the original code so that any changes made to the original will not be reflected to the copy, and vice versa.
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
code just... stops! Offbeatmammal Questions (Windows Mobile) 4 06-02-2008 07:30 PM
reg code question scott93727 Questions (Windows Mobile) 2 05-30-2008 12:24 PM
Where is Form Code? enonod Questions (Windows Mobile) 2 10-13-2007 12:04 PM
Help with code cdeane Questions (Windows Mobile) 9 09-22-2007 04:30 PM
Code files jerryjukem Questions (Windows Mobile) 1 07-28-2007 06:57 PM


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


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