Author Topic: CapsLOCK on ?  (Read 4772 times)

0 Members and 1 Guest are viewing this topic.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
CapsLOCK on ?
« Reply #30 on: August 12, 2005, 01:22:18 PM »
Quote from: Bob Wahr
Code: [Select]
Dim intP As Peeps
Dim strMe As Member
Set intP = TheSwamp.InterestedParties
strMe = TheSwamp.CurrentPost.MemberName
intP.Add(strMe)

Eek, too many errors.

If strMe is an object variable it needs to be set (data type Member is not an intrinsic type thus must be a UDC*; if it were a UDT the call would reference an element via dot delineation), so ...

Set strMe = TheSwamp.CurrentPost.MemberName

(even though it appears by inference to be a string type variable).

Also, you cannot invoke code like this:

intP.Add (strMe)

Either

intP.Add strMe

or

Call intP.Add (strMe)

However, since we want the addition of names to be persistant perhaps this would suffice --

With TheSwamp
    Call .Tutorials.Item("Tortoise/Subversion").InterestedParties.Add (.CurrentPost.MemberName)
End With


Forgive me, I'm such a geek I couldn't stop myself (ya I know, I'm a bstrd).

:oops: :oops: :oops:

* UDC = User Defined Class; UDT = User Defined Type
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

JohnK

  • Administrator
  • Seagull
  • Posts: 10653
CapsLOCK on ?
« Reply #31 on: August 12, 2005, 02:20:09 PM »
^
...Stig, you do realize that you have competition for passing out headaches right?
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
CapsLOCK on ?
« Reply #32 on: August 12, 2005, 03:09:38 PM »
TheSwamp.org  (serving the CAD community since 2003)

Bob Wahr

  • Guest
CapsLOCK on ?
« Reply #33 on: August 12, 2005, 03:44:59 PM »
Oh crap!

I've been geek served.