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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Official Updates
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Official Updates Updates to official libraries could be found here.
This forum is only available to licensed users.

Door library (Beta) - Special library

Reply
 
LinkBack Thread Tools Display Modes
  #31 (permalink)  
Old 04-11-2008, 11:52 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

On the desktop you can change the ReadOnly property and make the table editable:
Code:
    obj.FromControl("Table1")
obj.SetProperty(
"ReadOnly",false)
Reply With Quote
  #32 (permalink)  
Old 04-11-2008, 02:54 PM
Junior Member
 
Join Date: May 2007
Posts: 41
Default

just what I need, very impressive this library!!!
Reply With Quote
  #33 (permalink)  
Old 05-02-2008, 08:08 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 216
Default Rename now possible?

Hi,

I have read the information on the DOOR library, it looks impressive.

Although I do not completely understand it, I got the idea that it should be possible now to realize an old wish of my (and others), being the possibility to rename a file, without the need for a lengthy copy and delete or the use of MortScript.

If I am right, can somebody give me a sample or just a hint how to realize what I want.

Harry
Reply With Quote
  #34 (permalink)  
Old 05-02-2008, 08:58 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 HARRY View Post
the possibility to rename a file,
You haven't noticed this library of mine then http://www.basic4ppc.com/forum/additional-libraries/1844-filesex-library-returns-file-information.html
Reply With Quote
  #35 (permalink)  
Old 05-03-2008, 10:20 AM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 216
Default Rename

Agraham,

Thanks for your prompt reply.

The documentation on the FilesEx library reads : "As there is no real Rename function in .NET this is actually a FileMove within the same directory.". So I guess that this is not the solution I am looking for: the size of the files I am 'renaming' on a SD card is some 6-8 M Bytes, so copying takes quite some time.

I did hope that using the DOOR library a real rename was possible, but now I doubt.

What should be the code to test it:

create a FileObject??
assign a file to that object (with path)??
set the Name property ??
destroy the File Object??


Harry
Reply With Quote
  #36 (permalink)  
Old 05-03-2008, 10:51 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Ioannina, Greece
Posts: 356
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi,

Actually FileMove does not copy the files so the size shouldn't be a problem.
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #37 (permalink)  
Old 05-03-2008, 11:10 AM
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 HARRY View Post
"As there is no real Rename function in .NET this is actually a FileMove within the same directory.". So I guess that this is not the solution I am looking for
Have you tried it? A FileMove operation does not necessarily imply a copy and delete. As I said there is no true rename in .NET (or in the Win32 API that I can find!), even the VisualBasic .NET Rename ends up calling the Windows Win32 MoveFile API function.
Reply With Quote
  #38 (permalink)  
Old 05-06-2008, 06:54 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 216
Default File Move



Indeed, I didn't test the Rename function of the FileEx library. I just assumed that Move was identical to Copy. Of course, assuming is not the best way to operate; testing is the only solution. Now it works perfectly.

Yet, I am interested to know whether the same result could be reached with the DOOR library; just to understand a little bit it's possibilities.

Harry
Reply With Quote
  #39 (permalink)  
Old 05-06-2008, 07:24 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

I haven't tested it but it would look something like this. finfobj is an Object and args is an Object Array.
Code:
finfobj.New1(false)
args.new1(
1)
args.SetValue(
0"c:\temp\save\a.a""System.String")
finfobj.CreateNew2(
"System.IO.FileInfo", args.Value)
If finfobj.GetProperty("Exists") = true Then
  finfobj.RunMethod2(
"MoveTo""c:\temp\save\b.b""System.String")    
End If
Reply With Quote
  #40 (permalink)  
Old 05-12-2008, 11:43 AM
Junior Member
 
Join Date: May 2007
Posts: 41
Default

I'm iterested in build a piano program, and I guess it is possible emulate the piano keys whith the keyboard keys, if I'd had a event like KEYDOWN and KEYUP (The note is played form KeyDown event till KeyUp event or during the key is pressed). The problem is that manage the door library is too dificult for me, could you help me with an example?
Thanks very much
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
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 10:22 AM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 08:46 PM
Order a table with the library DOOR manu Beta Versions 0 09-04-2008 08:16 PM
Door Library Null Reference Exception sahoopes Bug Reports 1 07-15-2008 05:46 AM
New serial library - beta version Erel Announcements 13 08-02-2007 01:24 PM


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


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