1
General / Live forum update
« on: August 05, 2011, 02:36:30 PM »
Wierd watching the forum update as i go from page to page. I like SMF, i must of installed and relooked/themed over 50 SMF forums to date. Keep up the good work.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
.I'm sorry about the documentation it does really need improving.
There are two stages to creating your user requested file.
1) The user is asked the location and name of the file - this returns a file handle you can actually use to create and write to the file.Code: [Select]Local fname,fhandle,fdetails,ctypes,cpaths,cnames,fextens
FileNew(fname,fhandle,fdetails,ctypes,cpaths,cnames,fextens)
Note, there are a lot of parameters in the above command but you can ignore most of them unless you need detailed information about the file, path, extension etc.
2) Create the file using the returned parameters. This is the same for both binary and text files - they both use the returned file handle. Here is a binary example.Code: [Select]Local findex,n
CreateBFile(fhandle,findex)
WriteBVariable(findex,'hello')
For n=1 to 10
WriteBByte(findex,n)
EndFor
CloseBFile(findex)
secondly how do i remove tybite software at the heading of the software template i click before the full program run in already build software
The top of the window can be changed by editing the name of the card - use the "Creator Properties" on the right-hand side of the Creator.
These show how to write and read to/from binary files. No checking for the files existence or type is made using fdets.
Note if the file variable fvar is zero then the file does not exist.
@ Write to a named file
Local fname,fvar,fdets,ftypes,fpaths,fnames,fextens
Local findex,n
FileGet(fname,fvar,fdets,ftypes,fpaths,fnames,fextens)
CreateBFile(fvar,findex,n)
WriteBVariable(findex,'hello')
For n=1 to 10
WriteBByte(findex,n)
EndFor
CloseBFile(findex)
@ Read from a named file, assumes format known
Local fname,fvar,fdets,ftypes,fpaths,fnames,fextens
Local findex,n
FileGet(fname,fvar,fdets,ftypes,fpaths,fnames,fextens)
OpenAsBFile(fvar,findex)
ReadBVariable(findex,mess)
For n=1 to 10
ReadBByte(findex,num)
Put num After mess
EndFor
CloseBFile(findex)
The read part i have tried placing it on the home card and on card 2 which is the main working environment. And the 'write' part i have tried placing on an independant button and directly on the Book HNs update button. I remember last night that on one try i got a conflict on 'nVar' as been already used!!?? I could see being used twice but couldn't work out if i should or how to get them to work together.
local fname
CanvasLoadAsk(1,fname,0)the save button withlocal fname
ImageCanvasToBank(1,2,0)Is this right?Clears the image from the specifed image bank so freeing up memory. This also sets the image bank status to invalid.obviously i only want to remove the particular image for that page, but still have the option of replacing it. what happens will a new image bank be created?
ImageBankClear(bid)