Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Xsi
  • Content: Threads
  • Order by date
  1. Xsi

    Date and week randomizer

    Hello everyone, I need to create a a simple java function where I can put start and end datum in the format 201901 up to 202052 that means every year have got 52 week. so the randomizer put a value between year 2019 and 2020. also a week between 01 to 52. and the format need to look like...
  2. Xsi

    Credentials used within multi classes

    Hello everyone, Since I am new to java I am not sure if this is the right way of do this. Anyway I have created following methods: public static String UserCredentials(String Username,String Password) { //Credentials for Terminal Username="Root"; Password="Test1234"; return...
  3. Xsi

    Simple Object creation (newbeginner)

    Hello everyone, I am very new to java, I am trying to create a public class Person see below: public class Person { public Person(String name,String LastName) { System.out.println("Name:"+name); System.out.println("LastName:"+LastName); } public static void...
  4. Xsi

    How to use arraylist from one class into another class + add data in Java

    Hello everyone, I am very new to Java what I need to do is like below: Public Class1 that is an arrayclass that holds multi arrays + lists is my thought. Public Class2 here is where I fill the arrayclass from Class1 with arraydata. Public Class3 here is where I use the array class1 that...
  5. Xsi

    How to use arraylist from one class into another class + add data in Java

    Hello everyone, I am very new to Java what I need to do is like below: Public Class1 that is an arrayclass that holds multi arrays + lists is my thought. Public Class2 here is where I fill the arrayclass from Class1 with arraydata. Public Class3 here is where I use the array class1 that...
  6. Xsi

    Get FolderPath

    Hello everyone, I have got following folder structure: FuncLib ObjReb Temp TestData TestSuite I am using QTP/UFT Test-automation its (vb.net) with following command I get current folderpath: TestPath =Environment("TestDir")] result: C:\XXX_xxxxx_xxxx-xx-xx\TestSuite\Maincase now I need...
  7. Xsi

    Store data into an array

    Hello everyone, I have made following code, Dim UserNameArr() Dim PwdArr() Public sub ExcelDataToArr() TestData=Environment.value("TestPath")&"Testdata\DB.xlsx" Datatable.Importsheet (TestData),"TestDataDB",1 intRowcount=DataTable.GetSheet(1).GetRowCount For iLoop = 1 To intRowcount...
  8. Xsi

    Create object visible (Terminal)

    I am very new to UFT, I am currently is doing automation for MainFrame also Terminal emulation. Path to exe file "C:\Program Files (x86)\IBM\Personal Communications\" this is my atempt below: Public Sub CreateTerminal() Function Terminal() Dim qtApp 'As QuickTest.Application ' Declare...
  9. Xsi

    Add value to cell instead of replace

    Hello people, The code does following: Loop through all Cells for every row in the Master file. for each cell open a Separate file Loop through all used cells in column in "H", If the cells are equal take the Cell same row Column "i"; paste it in the Master file to the same row as the first...
  10. Xsi

    Could someone explain following stuff for me (eval and functions)

    Hello people, I am pretty new to PHP, I have made following pages Index.php contains following code: <?php session_start(); $_SESSION['foo']=' <?php function foo() { echo "asdasdd"; } ?>'; ?> <a href="pag2.php">link </a> Below is my code for pag2.php <?php session_start()...
  11. Xsi

    Copy Data table item to certain row and certain column.

    Hello People, below is a picture of how my result looks in the datagridview I have made a simple SQL Query that put the results in a data-table where I already prepared certain columns I have created. there are 20 different columns. The picture below includes a column headed ”order number”...
  12. Xsi

    datatable row loop problem.

    Hello people I have made a datatable with certain column names, I put the result from a SQL Query into the data table. now is my problem when I loop all items in a certain column I recieve this message: [highlight #CC0000]There is no row at position 10.[/highlight] this is my code: If...
  13. Xsi

    How to search and replace with my regex.

    Hello people, I have got following string dim mystring as string ="(1)10002 – Language: ENG-DEU;Reuse: 25;Context Match: 10;Total: 35;Include CM in Reuse: Yes;" I have made my regex in ultraedit also the regex type is unix. I want to search for regex below: Language(.*)\p(.*)\pContext...
  14. Xsi

    How to remove dublicate records from a datatable

    Hello people, I have got a datatable. How do I delete dublicate records? Thank you in advance
  15. Xsi

    how to combine two columns to one but with a &quot;----&quot; between objects.

    Hello everyone, I have made a SQL Query string that gather data from two different columns in a database (column "ordernr" and column "CM") actually I would like to combine the columns to one column but the objects is seperated by a use "----" between from the query but I didn't succeed I tried...
  16. Xsi

    take the output from the audio card and broadcast it over a network

    Hello people, I have started to create a program where the goal is to use the primary soundcard as a radio station. I have done much research but it seems like no one have made this kind of solution before. Now is my issue how to make my app play the sounds from the soundcard that is in use...
  17. Xsi

    how to find an XML somewhere in a zipfile or subzips

    Hello all I have made a code that looks for a zip-file then take all the digits from the zipfile name and creates a folder with the name also unzip the content to the created folder. now is my issue. I need a loop/ a function that zip all the zipfiles inside a zip. I have read some on google...
  18. Xsi

    How to make a userfriendly sql query structure

    Hello people, I have got a very long Query. my goal is to make a very user-friendly interface where the user can select from lots different query criteria. I did try to create an arraylist where each item presents a SQL column/SELECT/WHERE from the db example: Dim QueryList As...
  19. Xsi

    how to display the result from a query in a combobox immediately

    Hello people, I have made following code, I wonder how do I change the Handles to display the result from my query immediately? see code below: Private Sub Cbx_Year_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cbx_Year.SelectedIndexChanged...
  20. Xsi

    compare two lists

    Hello people, I have got a program that compares two text files. Dim fileA = File.ReadAllLines("C:\Paths.txt") Dim fileB = File.ReadAllLines("C:\OrderNames.txt") Dim noAdress = String.Join(Environment.NewLine, fileB.Where(Function(b) Not fileA.Contains(b)))...

Part and Inventory Search

Back
Top