Convert vbs code into a standard template
Appreciate if anyone can guide/show me on how to convert or copy the original vbs code into a standard template. I have tried copy and paste all the code into Sub Main but been getting errors. FYI, i have taken out all the function section and placed it
outside Sub Main but still getting error. Appreciate some help here. Thanks in advance.
Sorry, but you can't just copy and paste code between scripts and expect things to just somehow work.
You have to understand what the code is doing and how to write in that language.
What you are asking still doesn't make sense. We don't know what your "agreed format" is, and even if we did, it is not the purpose of this forum to merge your scripts for you.
If this is critical work you need to complete, you need to study how to write scripts or hire a consultant.
Bill
Similar Messages
-
hello,
anybody knows a software convert java code into UML? Classes Diagram.
for example JBuilder do that.
// i use Netbeans.its not a speed issue although sometimes it can be painfully slow (but now slower that sun one). I constantly found myself getting into infinite error message loops (e.g. "incorrect input"... click ok... "incorrect input"... errr click ok.... "incorrec..." etc etc), and also it (relatively) regularly falls over. I tried to export diagrams as GIFs, and when I imported them into Word they looked ok, but when I printed them they printed negative!! I used about 100g of toner before I realised, and had to go thru all diagrams changing them to JPGs. Plus, I think the interface for 6 is a lot less intuitive than 4.2, and it's trying to be too feature rich. Personally I would never use it as a code editor as it's too big and lumbering. For me, it's a diagramming tool, but it doesn't even put pretty pictures as nodes on deployment diagrams!! I want pictures of workstations, PDAs and databases!! Only kidding...
-
Dummy Guide needed for converting AS2 code into AS3
I have to convert my existing AS2 code into AS3, but I might as well be reading chinese. I never even began to learn AS3, it was still fairly new at the time and the class ended before we had an opportunity to even touch on it. My major was not web design, it was the print side of design. I took an additional class, after I graduated, to learn web design and our teacher told us, basically, that we were designers, not coders so we won't be getting much into actionscripting, beyond the basics. At the time I was relieved, but looking back, I really wish we would have gotten more into it. Bottom line, I need to learn now.
Is there ANYONE that can help me out? I will list my code below, buy I am way beyond lost any help that can be provided, I would be so grateful!!!!
On the main timeline I have the basic..
stop(); -- I found the AS3 version, but I don't know what I'm looking at. I get "not_yet_set.stop()" and there are are 8 options I can choose from. I just want the timeline to stop until I tell it where to go next. And what is "not_yet_set"
Then I have my buttons, which are, basically...
on (release) {
gotoAndStop("Home");
Or "gotoAndPlay("Whatever");"
I also have buttons for scrolling...
on (press) {
play();
on (release) {
stop();
AND
on (press) {
_root.AboutMe_Controller.gotoAndPlay(…
on (release) {
_root.AboutMe_Controller.gotoAndStop(…
For the on(release) command, this is what I found as the AS3 version: not_set_yet.dispatchEvent()because that's really as1 code, you have steeper learning curve than going from as2 to as3.
first, remove all code from objects, assign instance names to your buttons and you can then start on as3:
// so, if you name your home button, home_btn:
home_btn.addEventListener(MouseEvent.CLICK,homeF);
function homeF(e:MouseEvent):void{
gotoAndStop("Home");
p.s. the not_yet_set stuff is there because you tried to use script assist or some other actionscript shortcut. -
How to convert ascii codes into Strings
Is it possible to convert integers (ascii codes) into Strings. It cannot be done by casting like:
int temp = (String)(111)
Please help me out. I think there is a method for this.Something as simple as String.valueOf((char) 111) comes to mind...
-
How to convert Vb code into java?
Hi,
I want to know how to make conversion a visual basic source code into java. The conversion could be (1:1) scale.
Is there any compilers making the live easier (solving this problem) ?
Thank you all.
Abu_ramlaUse the JNI. VB doesent actually do anything on its own. Its just a series of calls on COM objects to performs all its work. You can call these same COM objects using the Java Native Interface or JNI. You wont have access to things designed in VB though like forms, you will have to redesign those.
This will take extensive knowledge of COM, VB, Java, and JNI. It will take you about 1 year to get up to speed. I would say to not do this. -
Help : To convert Following Code into oracle Stored Procedure
Hi All
I m Ajay Patel
N i m new in Oracle i don't know much abt oracle
I want to convert following code in to oracle10g ( Procedure )
This is PHP code n this function abt compound interest.
$pa,$ri,$sy,$ey :- all are in parameters
all variable declare with $
$pa - is principle amount
$ri - Rate
$sy - start year - 2009
$ey - end year - 2060
function CCI($pa,$ri,$sy,$ey)
$CCI = array();
$totalyear = $ey - $sy;
$ri = $ri/100;
$ri= 1 + $ri;
$amt=1;
for($i=1;$i<=($totalyear+1);$i++)
if($i==1)
$CCI[$i][0] = $sy;
$CCI[$i][1] = $pa;
else
$powvalue = 1;
for($k=1;$k<$i;$k++)
$powvalue = $ri * $powvalue;
$FinalValue = $pa * $powvalue;
$CCI[$i][0] = $sy;
$pos = strpos($FinalValue, '.');
if ($pos !== false)
$FinalValue = substr($FinalValue, 0, $pos+3 );
$CCI[$i][1] = $FinalValue ;
$sy++;
return $CCI;
Pls Help Me to convert above code in to oracle stored procedure
Thanks All
Regards,
AjayIts time to start reading the Document .
-
Convert XML Code into Transformation
Hi,
I am currently trying to convert this xml string back to my structure but i have been unsuccessful so far using tcode STRANS. Initially i keep getting illegal operation but now i manage to retrieve only part of my xml data.
my XML string:
<?xml version="1.0" ?>
- <Root>
- <Transaction_Status>
<Status>Success</Status>
<Description>No. of records found = 6</Description>
</Transaction_Status>
- <Processing_Exceptions>
- <Report>
- <Record>
<Reason>Validation failed for pan field</Reason>
<Field_Name>ID_PAN_CARD</Field_Name>
<Field_Value />
</Record>
- <Record>
<Reason>Validation failed for passport field</Reason>
<Field_Name>ID_PASSPORT</Field_Name>
<Field_Value />
</Record>
- <Record>
<Reason>Father name field is null</Reason>
<Field_Name>NULL</Field_Name>
<Field_Value />
</Record>
- <Record>
<Reason>Pin field is null</Reason>
<Field_Name>NULL</Field_Name>
<Field_Value />
</Record>
- <Record>
<Reason>Invalid Mobile Number</Reason>
<Field_Name>MOBILE_NUM</Field_Name>
<Field_Value />
</Record>
- <Record>
<Reason>CITYISNULL</Reason>
<Field_Name>DC_CITY</Field_Name>
<Field_Value />
</Record>
</Report>
<Reject />
</Processing_Exceptions>
- <Output>
- <Record>
<search_id>2861</search_id>
<MATCHED_CUSTOMER_ID>100268</MATCHED_CUSTOMER_ID>
<defined_match_criteria>[INDV_NAME:70]</defined_match_criteria>
<actual_matched_criteria>(INDV_NAME : 96.15 )</actual_matched_criteria>
<CUSTOMER_ID>100268</CUSTOMER_ID>
<INDV_NAME>BIJENDER SINGH</INDV_NAME>
<FATHER_NAME />
<CUR_CITY>DELHI</CUR_CITY>
<CUR_STATE>DELHI</CUR_STATE>
<CUR_PIN>110041</CUR_PIN>
<MOBILE_NUM />
<ID_PAN_CARD />
<CUR_PHONE />
<BIRTH_DATE />
</Record>
- <Record>
<search_id>2861</search_id>
<MATCHED_CUSTOMER_ID>115993</MATCHED_CUSTOMER_ID>
<defined_match_criteria>[INDV_NAME:70]</defined_match_criteria>
<actual_matched_criteria>(INDV_NAME : 100.0 )</actual_matched_criteria>
<CUSTOMER_ID>115993</CUSTOMER_ID>
<INDV_NAME>BIRENDER SINGH</INDV_NAME>
<FATHER_NAME />
<CUR_CITY>GURGAON</CUR_CITY>
<CUR_STATE>HARYANA</CUR_STATE>
<CUR_PIN>122001</CUR_PIN>
<MOBILE_NUM>9813736856</MOBILE_NUM>
<ID_PAN_CARD />
<CUR_PHONE />
<BIRTH_DATE>1979-08-26 00:00:00.0</BIRTH_DATE>
</Record>
</Output>
</Root>
Please help . Thanks in Advance.
Regards,
NileshHi Sandra,
Thanks for Reply.
I have create XSLT code like
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
<xsl:strip-space elements="*"/>
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<xsl:for-each select="//Root/Output/Record">
<item>
<CUSTOMER_ID>
<xsl:value-of select="CUSTOMER_ID"/>
</CUSTOMER_ID>
<INDV_NAME>
<xsl:value-of select="INDV_NAME"/>
</INDV_NAME>
<FATHER_NAME>
<xsl:value-of select="FATHER_NAME"/>
</FATHER_NAME>
<CUR_CITY>
<xsl:value-of select="CUR_CITY"/>
</CUR_CITY>
<CUR_STATE>
<xsl:value-of select="CUR_STATE"/>
</CUR_STATE>
<CUR_PIN>
<xsl:value-of select="CUR_PIN"/>
</CUR_PIN>
<MOBILE_NUM>
<xsl:value-of select="MOBILE_NUM"/>
</MOBILE_NUM>
<ID_PAN_CARD>
<xsl:value-of select="ID_PAN_CARD"/>
</ID_PAN_CARD>
<CUR_PHONE>
<xsl:value-of select="CUR_PHONE"/>
</CUR_PHONE>
<BIRTH_DATE>
<xsl:value-of select="BIRTH_DATE"/>
</BIRTH_DATE>
</ITEM>
</ABAP>
</xsl:transform>
and calling program like
TYPES: BEGIN OF i_det,
CUSTOMER_ID(10),
INDV_NAME(20),
FATHER_NAME(20),
CUR_CITY(15),
CUR_STATE(15),
CUR_PIN(06),
MOBILE_NUM(10),
ID_PAN_CARD(18),
CUR_PHONE(10),
BIRTH_DATE(10),
END OF i_det.
DATA: i_data TYPE TABLE OF i_det,
w_data type i_det.
DATA: xml_string TYPE string." type ref to cl_fx_reader .
DATA: xslt_error TYPE REF TO cx_xslt_exception,
xslt_message TYPE string .
try .
call transformation ('ZXSLT_CODE')
source xml xml_string
result i_data = i_data.
catch cx_xslt_exception into xslt_error.
xslt_message = xslt_error->get_text( ).
endtry.
Waiting for Response.
Regards,
Nilesh -
How to convert date format into sap standard format?
Hi All,
In SAPUI5 screen i have one simple form in form i have date field which is format (MM/DD/YYYY). but i am getting POST error while inserting the data in to sap table.
I want convert date format in sap format (YYYY/MM/DD).
One more issue, when i am fetching the data from sap table,but the date display with time and time zone.
eg. Sat Aug 02 2014 05:30:00 GMT+0530 (India Standard Time)
I want to display only date.
Thanks,
Prashant.Now i am using <DatePicker id="Emp_fsdate" displayFormat="yyyy-MM-dd"/>
I checked in console, but date is display like mm/dd/yy
In my controller.js file i have written code
OData.request
requestUri: "http:sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata",
method: "GET",
headers:
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0",
"X-CSRF-Token":"Fetch"
function (data, response){
var header_xcsrf_token = response.headers['x-csrf-token'];
OData.request
requestUri:
"http://sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata",
method: "POST",
headers:
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0",
"Accept": "application/atom+xml,application/atomsvc+xml,application/xml",
"X-CSRF-Token": header_xcsrf_token
data:
Empid:Emp_id,
Empname:Emp_name,
Start_Date:Emp_sdate,
// End_Date:Emp_edate,
Status:Emp_status,
City:Emp_city,
Location:Emp_location,
and in my CREATE_ENTITY method
method ES_SODATA_CREATE_ENTITY.
DATA: ls_request_input_data TYPE zcl_zservice_final_mpc=>ts_et_sodata,
ls_userinfo TYPE zsodata.
DATA ls_temp TYPE sy-datum.
* Read Request Data
io_data_provider->read_entry_data( IMPORTING es_data = ls_request_input_data ).
* Fill workarea to be inserted
ls_userinfo-Empid = ls_request_input_data-Empid.
ls_userinfo-Empname = ls_request_input_data-Empname.
ls_userinfo-Start_Date = ls_request_input_data-Start_Date.
ls_userinfo-End_Date = ls_request_input_data-End_Date.
ls_userinfo-Status = ls_request_input_data-Status.
ls_userinfo-City = ls_request_input_data-City.
ls_userinfo-Location = ls_request_input_data-Location.
* Insert Data in table ZUSERINFO
INSERT zsodata FROM ls_userinfo.
IF sy-subrc = 0.
er_entity = ls_request_input_data. "Fill Exporting parameter ER_ENTITY
ENDIF.
endmethod.
But still i am getting an error
POST http://sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata 500 (Internal Server Error)
I am able to insert all field except date field. How to insert date field in sap table. -
How to convert JPanel code into JApplet?
i made a graph in JPanel.now i want to call that graph in my jsp page.
for this purpose i need to convert that JPanel graph into JApplet.
does anyone knows about this...
regardsgenerate an image from your graphic then embed it into your html code <img src="...">
example:
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.GradientPaint;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class WriteImageType {
static public void main(String args[]) throws Exception {
try {
int width = 200, height = 200;
// TYPE_INT_ARGB specifies the image format: 8-bit RGBA packed
// into integer pixels
BufferedImage bi = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
Graphics2D ig2 = bi.createGraphics();
Font font = new Font("TimesRoman", Font.BOLD, 20);
ig2.setFont(font);
String message = "www.java2s.com!";
FontMetrics fontMetrics = ig2.getFontMetrics();
int stringWidth = fontMetrics.stringWidth(message);
int stringHeight = fontMetrics.getAscent();
ig2.setPaint(Color.black);
ig2.drawString(message, (width - stringWidth) / 2, height / 2 + stringHeight / 4);
ImageIO.write(bi, "PNG", new File("c:\\yourImageName.PNG"));
ImageIO.write(bi, "JPEG", new File("c:\\yourImageName.JPG"));
ImageIO.write(bi, "gif", new File("c:\\yourImageName.GIF"));
ImageIO.write(bi, "BMP", new File("c:\\yourImageName.BMP"));
} catch (IOException ie) {
ie.printStackTrace();
} -
Converting CPP code into JAVA Code
i have made a cpp file that is running fine... is ther a tool which can convert that cpp file into java file easily?
No
-
Paste Google code into template?
Hi all – I am trying to get my company site recognized by Google's tracking software. I am using templates, and trying to paste the code into the master template. The code as viewed in my Dreamweaver file is multi-colored and I cannot paste into the place where it is needed. Can you tell me why this is, and more importantly, how to remedy the situation?
Here it is to the </head> tag. I think I've included all the important code (since Google wants their code put in before </head>.).
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<meta name="alexaVerifyID" content="95U4t0_M0WeCXeUdZ-WPwQzaUAc" /><html>
<link href="../black text.css" rel="stylesheet" type="text/css"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #006600;
body {
background-color: #CCCCCC;
background-image: url();
margin-left: .5in;
margin-top: .5in;
margin-right: .5in;
margin-bottom: .5in;
font-family: Arial, Helvetica, sans-serif;
font-size: 9px;
font-style: normal;
a {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #0000CC;
font-weight: bold;
a:visited {
color: #FFFFFF;
text-decoration: none;
a:link {
color: #006600;
text-decoration: none;
a:hover {
text-decoration: none;
a:active {
text-decoration: none;
.phone {
font-size: 16px;
.phone {
text-align: center;
-->
</style></head>
<body>
I copied it directly from the code. I don't know if this matters or not, but the code is multi-colored, which didn't come through in the pasting. I appreciate your help... -
Hi,
In a Java Servlet, I need to convert HTML codes into an RTF/word document.
Any help for some related Java API ?
Regards,
Priya Ranjan Sahay
Message was edited by:
Priya Ranjan SahayCheckout iText:
http://www.lowagie.com/iText/
Example code:
http://www.java-tips.org/other-api-tips/itext/manipulating-pdf,-rtf,-or-html-documents-with-java.html -
How to convert the code from 8.2 to 7.1
Hello friends
I have to convert the one vi from 8.2 to 7.1 Version.How to convert this code.
JayavelHello Friends
i attached the code in 8.2 version.Convert this code into 7.1
Jayavel
Attachments:
FreenrunTest.vi 1456 KB -
Convert motion project into title template
I started working on a motion project, not sure what template to use, so I created a standard motion project. After working on the project for about 20 hours, I am now realizing that the title template would probably be the best option for this project even though I am not doing any actual titles. I was able to convert the project to a video effect template, but this is not really what I want. Is there some way to convert this project to a title template? Even if I have to copy/paste everything over to a new project, that would be a lot better than redoing the 20 hours that I've already spent on this thing. Since I can only have one project open at a time, I don't think copy/paste is even possible.
I think this will work for you.
-Select all the groups in your Motion project (or nest them in a single group.
-Drag the group(s) to the Library>Favorites.
-Create a new Final Cut title project with the same settings.
-Drag and Drop the group(s) from the Library>Favorites into the new Final Cut Title project.
Save and enjoy. -
Can we convert a T-Code into WebService.
Dear SOA Gurus,
Can you please tell me if there is a way to convert a SAP T-Code into a Web-Service. Also, can you please share your thoughts on how I can convert an ABAP report into a WebService and call it from Java stack.
Thanks!
Surya.It depends on your requirement. Olivier is right though - there's no direct realtionship or conversion tool. However, if you are just trying to obtain the data that a particular custom transaction or report provides without rewriting the logic, you can wrap the report or transaction call in a function module and hand-off the data through ABAP memory to the function module interface. Then, convert the function module or group to a web service. I do this most often with monster reports that generate PDF's. Instead of actually rendering the PDF on the desktop as the report would do from SAP, I push the binary data to an external application which opens the PDF in a browser window.
Maybe you are looking for
-
Open a save dialog with a name of a not existing file as tip name
Hello, I`m using JFileChooser to save a file, but the file does not exist in the File System, it is only a Java File object. Then I want to open the dialog with a name for this new file already in the field, then I can change the folders and the prop
-
Force iphoto to store all photos in library
I have iPhoto 9 running on a brand new MacBook Air, and my problem is twofold. Firstly, when I initially created the library, I imported the photos from a variety of folders copied onto an external HDD (which is the location of the iPhoto library too
-
What is the advantage or business requirement,If Customer Is the Vendor?
what is the advantage or what is the business requirement,If Customer Is the Vendor? why we use customer number in vendor master and vendor number in customer.what is the consequesnces if we do so? Regards Sap Guru
-
Passing arrays from matlab to vi-controls by activex
Dear specialists, I am trying to set an array of doubles that is defined as a control in my VI by using: invoke(VIhandle, 'SetControlValue', mlarray) where mlarray is defined in Matlab as an 1xn array of doubles. error: ??? Dispatch : Exception occur
-
I am a graphic designer and I need to buy customized iMac with Retina 5K display with the below specifications: 4.0GHz Quad-core Intel Core i7, Turbo Boost up to 4.4GHz 32GB 1600MHz DDR3 SDRAM - 4x8GB 1TB Fusion Drive AMD Radeon R9 M295X 4GB GDDR5 Ap