Author Topic: Newb Question - Invalid Character  (Read 7987 times)

0 Members and 1 Guest are viewing this topic.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Newb Question - Invalid Character
« Reply #15 on: January 28, 2008, 03:27:46 PM »
Quote
... Düimá•ä$ ...

<Yosemite Sam> Dems be fightin' werds ya VB bit 'n' variant! </Yosemite Sam>
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Bob Wahr

  • Guest

Josh Nieman

  • Guest
Re: Newb Question - Invalid Character
« Reply #17 on: January 28, 2008, 03:34:19 PM »
hahaha

great, I have made good progress.

The routine is running as expected... any errors encountered are purely because I have neglected to include something... the lines I -do- have in there work great!  lol... now I just need to make sure I tell it ALL it needs to know before I tell it to run... or something...

If I don't figure it out I'll come crying, but I think I should be able to get it from here... nothing uttlery confusing for now.

Josh Nieman

  • Guest
Re: Newb Question - Invalid Character
« Reply #18 on: January 28, 2008, 04:34:59 PM »
After tinkering with this while drawing I'm now drawing a blank.

Code: [Select]
If CheckExistFoldersExistance(strDefaultPath & txtExistFolder.Text) = False Then
              MsgBox "The project '" & TitleCase(txtExistFolder.Text) & "' does not exist!  Please enter a different name!", vbCritical + vbOKOnly, AppTitle
             frmMain.txtExistFolder.Text = ""
             MultiPage1.Value = 0
              Exit Sub
           End If

The folder it's calling out DOES exist.  It gets the value for "txtExistFolder" which is what you enter into that second text box... well I pasted the path right from windows Explorer and it's a real folder... but for some reason it's telling me "does not ext"

CheckExistFoldersExistance is:

Code: [Select]
Public Function CheckExistFoldersExistance(strExistFolder As String) As Boolean
    Dim fso As FileSystemObject
    Set fso = New FileSystemObject
    CheckExistFoldersExistance = fso.FolderExists(strExistFolder)
    Set fso = Nothing
End Function

I don't know what I'm doing, I think.

After I get this thing working right, and roll it out, I'm going to start with the basic tutorial stuff to try and get the basics down better, before attempting to tool around with this stuff.

Guest

  • Guest
Re: Newb Question - Invalid Character
« Reply #19 on: January 28, 2008, 04:36:50 PM »
Is there a slash between these two bad boys??!?  Do you need to add one somewhere?!?

strDefaultPath & "\" & txtExistFolder.Text

Josh Nieman

  • Guest
Re: Newb Question - Invalid Character
« Reply #20 on: January 28, 2008, 04:47:13 PM »
I tried adding my own slash to the end of it as well, but I put your addition in, and still get it... see pic.


Maverick®

  • Seagull
  • Posts: 14778
Re: Newb Question - Invalid Character
« Reply #21 on: January 28, 2008, 05:36:33 PM »
Try calling it George.

Josh Nieman

  • Guest
Re: Newb Question - Invalid Character
« Reply #22 on: January 28, 2008, 05:44:15 PM »
Or maybe there's a better way to accomplish what I want?  I'm open to suggestions.

Try calling it George.


It didn't respond. :(

Jeff_M

  • King Gator
  • Posts: 4087
  • C3D user & customizer
Re: Newb Question - Invalid Character
« Reply #23 on: January 28, 2008, 05:53:33 PM »
What is strDefaultPath set to? When entering an existing job, which appears to have a full path, adding the default path to it would give an error....

Josh Nieman

  • Guest
Re: Newb Question - Invalid Character
« Reply #24 on: January 28, 2008, 06:11:27 PM »
What is strDefaultPath set to? When entering an existing job, which appears to have a full path, adding the default path to it would give an error....

DING DING DING DING DING!!!

Code: [Select]
Private Const strDefaultPath = "S:\Jobs\2008\"

GAH!  *slaps forehead*

Now let me try it out...

SCORE!!

WOOOHOOOOOOOOO!!!!

Now I am gonna go look up how to get it to accept wild cards or something.

All our job folders are labeled with the job number first, then the job description... such as /08125 - (Job Description)/

We generally just refer to job numbers... 08125... 08383 etc... so if I have it set that we can just enter job number... the user won't have to look up how the job desc was entered... thus if I can make the routine recognize

strDefaultPath/txtExistFolder (and) */

that it will somehow when 08125 is entered for 'txtExistFolder' return:

S:/Jobs/2008/08125 - (Job Description)

But that seems a bit chancy... have to look into that though...

...OH, and also to go back and add TABORDER
« Last Edit: January 28, 2008, 06:15:24 PM by Josh Nieman »