POST
|
Check Check Check No Check - The label does not appear as unplaced. I�??ve been playing with the settings and writing down the settings I try so that I don�??t try them again. Regardless the setting, the same placed ones stay placed and the same unplaced ones stay unplaced. I even tried Street and Unambiguous The attachment might add some in site and also make sure that what you are asking me to check is what I checked. (I'm a visual thinker)
... View more
03-16-2011
06:42 AM
|
0
|
0
|
498
|
POST
|
I doing a storm water map and need to label pipe diameters. At least 1/3 of the labels don't show up. Look's basically like this: |-----2'-------|--------------|--------1'--------| The person looking at the map doesn't know if the one between is 2' or 1'. |-----2'-------|--------------|--------------|--------------|--------1'--------| The change can be at any of the unlabeled segments. There are no missing diameters. When you click on an unlabeled one, you get all its attributes. Each line is a polyline. The ArcMap version is 9.3.1 and Maplex version is 9.3
... View more
03-16-2011
04:09 AM
|
0
|
5
|
1032
|
POST
|
Ok, I think I get the Private and Public thing. Still some questions on Sub and Functions. Understand the functions. There is some confusion on the Sub because I've searched and read forums on the subject. Summary of what I found: There are people using subs when it should be a function. Some say it's ok to do that, but others don't. If a sub doesn't return a value like a function, then how can they be using a sub instead to do what a function does? God, I must sound like an idiot. They said that the VBA for Access and ArcMap is the same. It's not and I have to reprogram my brain to do things differently. Below is a list with my guesses. Can you tell me if I'm correct? Before I start the list - is this correct: If it is a Sub or Function that will be called on many times either in a single module or multiple modules, it should be stored in a public module. (or stored in ThisDocument at Project level?) How do you know when to use a module or ThisDocument (which is a module)? 1) Conditional text that will be called on to change a property(s) or variable number: Sub? 2) Complex math calculation the using VBA Functions and will be called on by an Event: Function? 3) Code used to sort data for a report in an unusual way (selected from option button): Sub? 4) If..Then Else and Case. Sub? (Something I did in Access) For a report, If I need to get a variable value (1stValue) of a field on frmOne and use it to, conditionally, calculate a variable value (2ndValue) on frmTwo - and update update every time 1stValue changes. 1) 1stValue would be declared public in General Declarations 2) 1stValue would be referenced frmOne.1stvalue. 3) The whole this, 2 procedures? Both sub or function or mix of sub and function. (Or is my brain to stuck on how Access works and not GIS? (In Access this was used on a Form and subform situation where data stored in table and attached to a Print Report CmdButton) What if you have a set of procedures that all run on an Event? Would you put it in a Public Module and call on the Module instead of the (subs & functions) Ex. a specialized Buffering method that a company want's all employees to use and you would put it on the Toolbar (IUEditBoxControl). Would be saved in ThisDocument under Normal (Global) I've just been asked today if I could do this: On an ArcMap template, use an inputbox to get the Title (a Project name) and then put it in the Title text box followed by also putting the Title into the disclaimer text box, i.e., strDisclaimer = "1st part of disclaimer text " & strTitle & "rest of disclaimer text." (One procedure? Sub or Function? And then make the Title Editable (and update in the disclaimer). The edit wouldn't be a new procedure - just run the 1st one again. I'm assuming that this would be on the click event of the Title text box (that's how it was done in Access). Then attach a msgBox to the disclaimer box that says, "The disclaimer text can only be changed by the Administrator" and have the OK button. Is there a module for the templates display? Haven't even finished the course an I'm already being asked to program. Thanks for your patience.
... View more
01-31-2011
07:11 AM
|
0
|
0
|
2484
|
POST
|
Ok, It think I got it. Unless I need to use my 'programmable calculator' then use a Sub. But if I need to use a Sub with a lot of code when ever something happens (On Click change all these properties) then I can call on the Sub to do it instead of typing all that code again. Back on Public and Private: Found the example given to me that really got me confused. This is ArcMap. [INDENT] ---------------------------------------------------------------------------- ' General Declaration Section Private m_strUser As String ---------------------------------------------------------------------------- Public Sub Login() [INDENT]m_strUser = InputBox("What's your name?")[/INDENT] End Sub ---------------------------------------------------------------------------- Public Sub GoodByeUser() [INDENT]MsgBox "GoodBye " & m_strUser & ", see you next time."[/INDENT] End Sub[/INDENT]
... View more
01-28-2011
05:53 AM
|
0
|
0
|
2484
|
POST
|
I think my major problem is that I'm having to change from MS Access VBA to ArcMap VBA. All the code I did in Access was linked to an Event. A lot of If..then..Else, msgbox, controlling where the user could go, making them fill in info before continuing, opening/printing reports, etc. You had the option of using 'Macros' but they were too simple and never did what I wanted, so I went to code. I was also able to reference a value on FormB (Form Name . Variable Name) and if it said "no", the Report Button on FormA would be inactivated. Now I'm lost. Everything that I did in Access, was that a 'Sub'? This is next thing is really stupid, but ... is a 'Sub' essentially 'Red Rove, Red Rover, I Call .... Over" and a 'Function' essentially my programmable calculator I used for Physics because I was tired of typing in the same sets of steps to calculate a value.
... View more
01-27-2011
09:57 AM
|
0
|
0
|
2484
|
POST
|
In one of the courses I'm taking, it talks about Private and Public subs, functions and variables. I understand the definition of Private of Public, but it does not clearly specify to me when and where to use them. Can Private and Public (variable, sub, and/or function) be used in the same Module? Does it matter what kind of Module it is? (Form, Standard, ThisDocument, Class Module) Or where the variable is declared. Can you have a Variable declared as Public in General Declaration, but then use it in a Private Sub or Function - and viceversa? Also, examples have procedures that start with Sub or Functions, but no Private or Public. Are they automatically Private? I'm also confused as to when you use a Sub instead of a Function. The examples do not make it clear to me at all.
... View more
01-27-2011
06:06 AM
|
0
|
7
|
114813
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|