Transform List To Code...
Version 1.1 Limited
(IE 5.5+ only)
If Then
Else
If Then ElseIf Then Else
Select Case
Select Option List
Multiple
Size:
Radio Buttons
Checkbox
Boolean
Variable name:
String
How to use Transform List To Code... ------------------------------------ You can click the labels instead of clicking the radio buttons and checkbox. Transformation Options are maintained after submitting the form so you dont have to reconfigure it everytime you want to repeat an action. Type some text here or use the Paste From Clipboard button to copy text or code from your editor to this box... Then select an action and some options and click the TRANSFORM button. Use the Copy To Clipboard button to transfer the transformed text or code back to your editor. If you use the Auto-Copy Result To Clipboard option you will not need to click the Copy To Clipboard button after TRANSFORMation. The Clipboard buttons and the Auto-Copy option might not work on some browsers. Transform List To Code... was devised and tested with Microsoft Internet Explorer US-English 128 bits Version 6.0.2800.1106 Version 1.1 fixes a bug that prevented some of the javascript code to work on computers running Windows XP. Possible Actions are: --------------------- If Then Will transform the list into Asp If Then Statements. If Then ElseIf Then Else Will transform the list into Asp If Then ElseIf Statements. Select Case Will transform the list into Asp Select Case Statements. Select Option List Will transform the list into an Html Form Select Droplist. It will be converted into Response.Write Statements with "It Then" statements that sets the selected status of the option elements in the select droplist. Radio Buttons Will transform the list into an Html Form Radio button series. It will be converted into Response.Write Statements with "It Then" statements that sets the checked status of the each element in the radio buttons series. Checkbox Will transform the list into an Html Form Checkbox series. It will be converted into Response.Write Statements with "It Then" statements that sets the checked status of the each element in the checkbox series. Transformation Options are applied BEFORE transformation is executed. Transformation Options are applied one after the other. This means that a line containing only one or more Tabs that are converted to spaces and then Trimmed will be removed. Click the Reload The Form link at the bottom of this page to come back to this text. For those of you who are wondering why the JavaScript code for auto-pasting on window focus is in the page but not available in the option list... Its because it was pasting back the un-transformed code after transformation since a window focus event is fired when the result page is displayed. Questions, comments and suggestions are welcome... This Asp Script contains 950 lines of code including the 69 lines of this text and the Javascript and Html code used to display the page. TRANSFORMation is accomplished by 150 lines of Asp code. This Limited version will only process 3000 characters.
Transformation Options:
Remove Tabs
Replace Multiple Spaces with
space(s)
Replace Tabs with
space(s)
Do Not Trim Lines
Left Trim
Right Trim
Trim Both
Auto-Copy Result to Clipboard
Reload The From...
Also available: Transform To...
Copyright©2003-2004 Christian Ernst
Questions, comments, suggestions...
Your personal
Transform List To Code
usage counter: 0 TRANSFORMation ()