Page 1 of 2 12>
Topic Options
#61450 - 2001-12-18 07:48 PM attach file to post
d.adams Offline
Fresh Scripter

Registered: 2000-12-07
Posts: 41
Loc: Eagle Rock, VA, USA
How can I attach a file to my post for others to download? I don't see anything on the Add New Topic page. I don't have any ftp site or other public location to distribute from.

Thanks in advance.

Top
#61451 - 2001-12-18 08:01 PM Re: attach file to post
Anonymous
Unregistered


Use the commandline mailer postie.exe.
You can give many parameters so it always fit to your wishes.
If you can't find the file please let me know so I can mail it to you.

Top
#61452 - 2001-12-18 08:05 PM Re: attach file to post
d.adams Offline
Fresh Scripter

Registered: 2000-12-07
Posts: 41
Loc: Eagle Rock, VA, USA
Where do I find it? How do I use it?

Thanks for the quick response.

Top
#61453 - 2001-12-18 08:49 PM Re: attach file to post
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Mr. Adams

I think you mean that you want to post a script or something to the forum here ?

If yes, copy your text into the post and "wrap" it in code tags, like this:

[code]

your stuff ...

[/code]

and it will look real purdy, like this:

code:

hi, hows it going ?


else, if you really want to post a file, try the new kixscripts.org site, which if i'm not mistaken, has the ability to actually attach scripts to a post. Then maybe provide a link from here - to there ?

kixscripts.org

-Shawn

[ 18 December 2001: Message edited by: Shawn ]

Top
#61454 - 2001-12-18 09:08 PM Re: attach file to post
d.adams Offline
Fresh Scripter

Registered: 2000-12-07
Posts: 41
Loc: Eagle Rock, VA, USA
Shawn,

I tried uploading an Excel file but it told me that file type was not allowed.

I'm trying to post a InputSelect function that accepts an array and displays the contents of the array in a InputBox() like interface and the .xls file contains the form definition for the interface. Is there any way this file can be put in my posting?

Thanks

[ 18 December 2001: Message edited by: d.adams ]

Top
#61455 - 2001-12-18 09:25 PM Re: attach file to post
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
You can save plain-old xls files in the DIF format (data interchange format) and post that to the board (ascii)

You can export the form definitions and code via the VBA editor and save as .frm extention and post that too !

Then the user will have to reassemble (import) the two pieces back together ... never tried it but it might work ?

Maybe you just want to post the VBA code ?

-Shawn

Top
#61456 - 2001-12-18 09:33 PM Re: attach file to post
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
I think I know what your up to ! Very nice if you can get it to work (Rad, we might want to watch this space very closely ?)

-Shawn

Top
#61457 - 2001-12-18 09:55 PM Re: attach file to post
d.adams Offline
Fresh Scripter

Registered: 2000-12-07
Posts: 41
Loc: Eagle Rock, VA, USA
Shawn,

Thanks for the idea to recreate the .xls file. It's kind of a hassle, but it shouldn't be much trouble to reconstruct.

InputSelect() UDF

Top
#61458 - 2001-12-18 10:13 PM Re: attach file to post
Anonymous
Unregistered


I have send you a mail with the file postie.exe
Top
#61459 - 2001-12-18 10:32 PM Re: attach file to post
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I see it... it looks like it has major possibilities
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#61460 - 2001-12-18 10:46 PM Re: attach file to post
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Mr. Adams (may I call you d ?)

This does look very promising ... and it might get even better because something tells me we might be able to get rid of the external xls file altogether (frm and bas) and programatically program (for lack of a better term) the form and function using VBA automation itself ... in other words, the VBA code can be embedded in the KiXtart UDF itself (as strings - kinda like the way we encode and write HTML for IE Automation).

I don't recall ever seeing any examples of this anywhere (web or otherwise) might want to do a search ... but it sounds plausible (possible) if your up for a challenge

-Shawn

Top
#61461 - 2001-12-18 10:55 PM Re: attach file to post
d.adams Offline
Fresh Scripter

Registered: 2000-12-07
Posts: 41
Loc: Eagle Rock, VA, USA
I had a similar thought of getting rid of Excel and using the VBA object model directly. I have started looking into it, but have not made much headway. It would be great to get rid of the XL overhead.

btw, was it much trouble to recreate the .xls file?

Don

Top
#61462 - 2001-12-18 10:58 PM Re: attach file to post
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Speaking for myself, i've got one foot out the office door - was planning on trying it out first thing when i got home ... this i will do and report my experience tonight ...

-Shawn

Top
#61463 - 2001-12-18 11:14 PM Re: attach file to post
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Hi, if you want do do a post with a file attachement you can do it on www.kixscripts.org/forum

It sounds like COM to me, so you can put it on Shawns forum

[ 18 December 2001: Message edited by: DrillSergeant ]

_________________________
The Code is out there

Top
#61464 - 2001-12-18 11:25 PM Re: attach file to post
d.adams Offline
Fresh Scripter

Registered: 2000-12-07
Posts: 41
Loc: Eagle Rock, VA, USA
Roger,

I was going to put it there, but the file attachment would not allow .xls files. Also, there seemed to be a problem with posting code. In the preview window, any plus (+) signs would not show up and there seems to be a limit to the length of the post. It was cut off in the middle of the .frm code. I don't know if it is a preview window problem or not.

Thanks anyway,

Don

Top
#61465 - 2001-12-18 11:41 PM Re: attach file to post
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Hi Don,

Thanks for your comments.

hmm, yeah we're still playing around with the board, so we're not really sure of what it can and can't do.

1. it is only allowed to put .txt or .kix files as attachments... so if you do, file.xls.txt it will work. You're also only allowed to add files no bigger than 512K. We were thinking of letting go of the extension and the filesize.
To do this however will (i think) create an opportunity for wrongdoers to post nasty vbs stuff...
What we can do is have all posts moderated, which means that all posts must be approved of by an admin or moderator before it is shown to the public...
Are the moderators (Shawn, JPols, CJ) up for this task?

2. the plus sign is new to me... I will check that asap.

3. I'll check the post size asap too.

[ 18 December 2001: Message edited by: DrillSergeant ]

_________________________
The Code is out there

Top
#61466 - 2001-12-19 12:09 AM Re: attach file to post
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Ok, the preview isn't a good representation of the real post...

If you have a really big post, the preview will only show a part of it, but the post itself can be very large.(I don't know the top limit but it should be enough for all kinds of posts)

The + sign isn't shown in the preview, but it does appear in the real post, I think it has something to do with HTML code...

_________________________
The Code is out there

Top
#61467 - 2001-12-19 12:35 AM Re: attach file to post
d.adams Offline
Fresh Scripter

Registered: 2000-12-07
Posts: 41
Loc: Eagle Rock, VA, USA
Roger,

I have added a post to the COM forum that points to the InputSelect() function in the UDFs forum and uploaded the .xls file with the .txt extension. I agree this is a security risk that should be considered.

A couple of things to note:

- I accidentally posted my first time and went back to edit and it would not allow me to attach a file at all (i.e.:no controls displayed on screen)

- the post and download URL's would not display properly in the post until I removed the [url] [/url] tags for the post URL. I removed the tags from the post URL and it fixed both.

Just thought you'd like to know.

Don

kixscripts post

Top
#61468 - 2001-12-19 01:38 AM Re: attach file to post
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Don,

Ok - having difficulty porting this over to me. The functions ported good ... no problems there !

The form is giving me trouble:

1) Looks like there's a hard ref to a resource file:

OleObjectBlob = "InputSelect.frx":0000

VBA won't let me import this ( i tried removing the line). Plus, i think you may have posted the wrong frm anyways because I don't see the definition for your combobox anywhere - no ???

Anxiously waiting your reply, lets keep trying ...

-Shawn

[ 19 December 2001: Message edited by: Shawn ]

Top
#61469 - 2001-12-19 01:59 AM Re: attach file to post
Alex.H Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 406
Loc: France
Shawn,
InputSelect.frx is a binary file, with missing information to create components on a form (seems it's the combobox and the 2 buttons)
At this point, Mr Adams have to provide another source or the frx file

[ 19 December 2001: Message edited by: Alex.H ]

_________________________
? getobject(Kixtart.org.Signature)

Top
Page 1 of 2 12>


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.071 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org