Definately in attachemate forumn
I am using Attachmate Extra 6.3 to monitor several thousand computer terminals over a TANDM session. My macro essentially tells the terminals to close then checks to ensure they are closed before telling the attached routers to terminate comms. It will also...
I have written the a macro and it works well but it frequently crashes ebmngr.exe. Now i can run the macro multiple times without issues then all of a sudden ebmngr.exe crash just after macro finishes or sometimes while macro is running. It is frustrating the hell out of me because i can not...
Hehe I managed to Get it working if i Declare a() as a Global Variable tho and treat The SplitIt function as one that does not return a Variable.
Although i really hate using global variables.. I think i will have to take what Works.
Well the work around i got is just repeating the code. once in the loop then again outside of the loop.. Messy i know. but it compiles OK
Function SplitIt(s as String, delim As String)
Dim i As Integer, i1 As Integer, b as String, a() As String, idx As Integer
i1 = 1
For i = 1 to...
Hmm unfortunately the SplitIt function above does not compile. :( it complaines about improper use of reserved word GoSub... :(
I will have to think of a work around.
Geez Extra Basic is soo Primitive.
Thanks Skip, Not a very easy way of doing it but i will give it a whirl.
So i would call this like
stringArray() = SplitIt "abcd,gfskfs,asdfwe,llooll,foasld" , ","
Naturally i would not be able to Dim stringArray() or it would only have a max size of 8 elements. or i would have to dim it to...
I am looking for a piece of code to help me seperate a comma delimited string into a dynamic array.
For example:
inputting a string of comma delimeted characters into a edit box on a form then seperate the string into the sepperated characters.
text entered equals...
Thanks Skip, I will give that a try. If it works it will save me having to use Global variables.
I will Have to rewrite some lines of code to accomodate the changes. At the moment the macro has over 500 Lines of Code and is growing as i add features. but at least for the most part it does...
I Seem to be having a hell of a lot of troubles passing Variables into a Function or Sub Program Call.
For Example: (Extremely simplified).
Declare Sub MySub(Param1 as String, Param2 as String, Param3 as String)
Sub main()
Dim MyVar1 as String
Dim MyVar2 as String
Dim MyVar3 as String...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.