Search found 15436 matches

by jvierra
Wed Aug 10, 2011 1:27 am
Forum: PowerShell
Topic: Displaying table w/ complex methods for vars
Replies: 5
Views: 2873

Displaying table w/ complex methods for vars

Are you trying to re-invent teh wheel?
Get-Member produces a table.

Is this what you are trying to do?

Code: Select all

	
[datetime].GetMethods()|select name,callingconvention,returntype|ft -auto
	
[int].GetMethods()|select name,callingconvention,returntype|ft -auto
	

jvierra2011-08-10 08:28:33
by jvierra
Wed Aug 10, 2011 1:06 am
Forum: PowerShell
Topic: Import-Module
Replies: 25
Views: 8817

Import-Module


I just tested ShareUtils from inside of PrimalForms and it loads correctly.

Place this code in a button event to see if it loads.

Code: Select all

	
Import-Module ShareUtils
$x=Get-Module|Out-String
[System.Windows.Forms.MessageBox]::Show($x)
by jvierra
Mon Aug 08, 2011 9:14 am
Forum: PowerShell
Topic: How to display formatted XML in Description
Replies: 12
Views: 4741

How to display formatted XML in Description

Great - I don't know what is wrong withthat web site but every time I copy and paste anything I get a different set of lines. My clipboard is completely trashed. Here is a version that fixes (gets rid of unprintable characters) your code. http://www.designedsystemsonline.com/upload/testhelp.txt
by jvierra
Mon Aug 08, 2011 8:50 am
Forum: PowerShell
Topic: How to display formatted XML in Description
Replies: 12
Views: 4741

How to display formatted XML in Description

Win7 Enterprise 64bit. I am copying the code from pastebin via "copy to clip board".... Are you pasting it directly into PowerShell (the command line version not the ISE? I just noticed that the 'copy to clipboard' doen't work as it attempt to inject crap into the clipboard. Copy teh RAW ...
by jvierra
Mon Aug 08, 2011 7:27 am
Forum: PowerShell
Topic: How to display formatted XML in Description
Replies: 12
Views: 4741

How to display formatted XML in Description

You need to copy the code correctly from the web site and directly paste it inot POwerShell or you wil just keep getting the wrong items.

I yuo haev a copy of the original Notepad then you migh be able to ccopy it in there.
Again - What OS? 64bit?
by jvierra
Mon Aug 08, 2011 6:52 am
Forum: PowerShell
Topic: How to display formatted XML in Description
Replies: 12
Views: 4741

How to display formatted XML in Description

I bet you didn't copy and paste it directly into POwerShell. Did you paste it somewhere else first? Did you paste it into you editor?

Paste it direct.

What OS? Win7? 64bit?

I know what the issue is but I need to find out how you got it into that state so I can show you how to fix it.
by jvierra
Mon Aug 08, 2011 6:34 am
Forum: PowerShell
Topic: How to display formatted XML in Description
Replies: 12
Views: 4741

How to display formatted XML in Description

Sorry that should have read "from teh clipboard website"
http://pastebin.com/4TTQsjpC

When you copy that I bet it works correctly.
by jvierra
Mon Aug 08, 2011 3:31 am
Forum: PowerShell
Topic: How to display formatted XML in Description
Replies: 12
Views: 4741

How to display formatted XML in Description

That is just embedded help. Just put it in your advanced function? This is not XML and has nothing to do with XML. This is a comment in POwerSHell <# some text more text even more text #> Everything between <# and #> is a comment. The help is tagged with .TAGNAME for each section. Example .DESCRIPIO...
by jvierra
Mon Aug 08, 2011 3:08 am
Forum: PowerShell
Topic: How to display formatted XML in Description
Replies: 12
Views: 4741

How to display formatted XML in Description

YOu are still not being very clear. The help in an advanced function is set when you create the function. It is NOT XML help in most cases. It is a comment within the function body. Just a comment not XML. Are you are thinking that of the XML help files for CmdLets? These are created using a custom ...
by jvierra
Mon Aug 08, 2011 2:28 am
Forum: PowerShell
Topic: How to display formatted XML in Description
Replies: 12
Views: 4741

How to display formatted XML in Description

Can you explain that more clearly?
What function descriptoin are you talking about and what do you mean by 'formatted cml'?

Are you asking about Advanced Function help display?