| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 38283 | 2003-10-02 10:53:00 | Help with vbscript | Mike (15) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 179870 | 2003-10-06 23:50:00 | Could also try . . . If Ucase(Mid(pTextElement . Text, 1, 5)) = " INFO: " Then Dim InfoString Dim NameString Dim DateString Dim FileString NameString = " Name: " & UserName DateString = " Date: " & Date FileString = " File: " & GetMXDName InfoString = NameString & DateString & FileString pTextElement = InfoString End If or . . . If Ucase(Mid(pTextElement . Text, 1, 5)) = " INFO: " Then Dim InfoString Dim NameString Dim DateString Dim FileString NameString = " Name: " & UserName DateString = " Date: " & Date FileString = " File: " & GetMXDName InfoString = NameString InfoString = InfoString & DateString InfoString = InfoString & FileString pTextElement . text = InfoString End If Now it's just getting ridiculous, if it's failing then it's possibly because we can't speak VB, make it C/C++ any day and I'd be able to help . |
Kame (312) | ||
| 179871 | 2003-10-07 02:14:00 | Has anyone considered that the text element may be restricted to displaying only one of text?? | antmannz (28) | ||
| 179872 | 2003-10-07 02:41:00 | The variable that we tried was of type variant, not string so it shouldnt matter but thanks for the idea . Anyway sorry Mike, that is all that I can think of . You could try posting to a more programming focused group to see if they can come up with the answer . B . |
Barnabas (4562) | ||
| 179873 | 2003-10-09 07:13:00 | Thanks for the help guys :) It didn't work, and I'm guessing its a limitation of the program rather than the vb, as I think most of what we tried should work, but the software didn't seem to let it. I'll just have to live with what I've got for a while I guess :) Mike. |
Mike (15) | ||
| 179874 | 2003-10-09 23:59:00 | Have you ever thought of asking ArcMap or the people who create the scripts for ArcMap whether it's possible? I have no idea what ArcMap is... any chance of finding a place to download a trial version of it, to give it a go? |
Kame (312) | ||
| 179875 | 2003-10-10 04:17:00 | > Have you ever thought of asking ArcMap or the people > who create the scripts for ArcMap whether it's > possible? Could give that a try :) > I have no idea what ArcMap is... any chance of > finding a place to download a trial version of it, to > give it a go? I have no idea whether there's a trial version available, but have a look around at ESRI to see if you can find one. Mike. |
Mike (15) | ||
| 1 2 3 4 | |||||