The Daily Click ::. Forums ::. Klik Coding Help ::. what is wrong with this code?
 

Post Reply  Post Oekaki 
 

Posted By Message

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
23rd January, 2009 at 09:22:38 -

I cannot for the life of me work out what is wrong here:

I have a rich edit box displaying the output from a pipe object. the output is simply

"hello$"

i want an edit box to display hello, so i used the following code

Set Edit Box to (get text("rich Edit Object"),<first character>,<second character>, the first character is obviously 1 and the second character i have done as (number of characters - 2)

I have done it this way as the string output by pipe is variable.

The Edit box then displays hello$"

why??

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
23rd January, 2009 at 09:35:16 -

throw the mfa up and ill take a look.

did you try -3 instead of -2?

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
23rd January, 2009 at 09:52:14 -

can't do either at min i'm at work

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
23rd January, 2009 at 10:08:51 -

no problem. whenever you get a chance.

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
23rd January, 2009 at 17:43:45 -

ok i have tried 3, the problem is that i am running through pipe an application called dsquery, which interrogates active directory.the reultant output of dsquery takes the form mentioned before:

"hello$"

I need to retrieve just the hello part but like i said the string itself is variable in length. at the moment as i can't test it at home because i don't have AD installed it returns (it is an app i'm making for work):

dsquery failed:The specified domain either does not exist or could not be contacted.
type dsquery /? for help.

this is ok because i can still employ the formula

GetText$( "Rich Edit Object", 1, (GetNChars( "Rich Edit Object" )-2))


the problem is that the result of the formula is

SQUERY FAILED:THE SPECIFIED DOMAIN EITHER DOES NOT EXIST OR COULD NOT BE CONTACTED.
TYPE DSQUERY /? FOR HEL

Whats the problem you ask? the last 2 chracters are missing as is the first, thats what you want isn't it?

Yes it is but i have not modified the code in anyway shape or form and when i run it at work i get the result:

hello$"

so my question is this does anyone have access to AD and cmd prmpt so they can get me an output into a text file so that i can see what the hell is going on??? LONG SHOT!!!!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click