Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Closed Thread
Basic coding issue...
Old 01-12-2010, 08:07 PM Basic coding issue...
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
I am having a hard time getting a 'save' sub-routine working correctly. Here's the code I am using:

Code:
PUBLIC SUB Save_Click()
DIM lines AS String
DIM destination AS String
DIM numFile AS Integer
lines = ListBox.Contents
Dialog.Title = "Please, select a file"
Dialog.Filter = ["Minder data (*.data)"]
IF NOT Dialog.SaveFile() THEN
IF Right(Dialog.Path, 5) <> ".data" THEN 
destination = Dialog.Path & ".data"
ELSE 
destination = Dialog.Path
END IF
File.Save(destination, lines)
ENDIF 
END
Thanks alot in advance!

Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE

Last edited by Brian07002; 01-12-2010 at 08:09 PM..
Brian07002 is offline
View Public Profile
 
 
Register now for full access!
Old 01-13-2010, 06:37 AM Re: Basic coding issue...
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
And the language is?
An educated guess says Visual Basic or VbScript but confirmation would be better
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 01-13-2010, 06:38 AM Re: Basic coding issue...
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Oh! and

What exactly is it saving?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Closed Thread     « Reply to Basic coding issue...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.92445 seconds with 12 queries