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 Mike Lewis 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
  • Order by date
  1. Xsi

    Date and week randomizer

    as I mentioned its between 2019 and 2020 @feherke.
  2. 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...
  3. 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...
  4. Xsi

    Simple Object creation (newbeginner)

    Thank you for the help!
  5. 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...
  6. Xsi

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

    Thank you so much mikrom! I am current is writing and translate your code. may take a hour lol :) I am very sure I going to have questions to you later when I am done! Thank you so much very grateful! Best regards Xsi
  7. Xsi

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

    In my Case now I have got import java.util.ArrayList; public class Class1 { public void MyArr() { ArrayList<String> obj = new ArrayList<String>(); obj.add("MyTest1"); obj.add("MyTest2"); obj.add("MyTest3"); System.out.println("This is"+ obj); } } then another...
  8. 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...
  9. Xsi

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

    I know I didn't found java...
  10. 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...
  11. 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...
  12. Xsi

    Store data into an array

    This is my atempt: Dim UserNameArr() Dim PwdArr() ExcelDataToArr() ReadTestdata() Public sub ExcelDataToArr() TestData=Environment.value("TestPath")&"Testdata\DB.xlsx" Datatable.Importsheet (TestData),"TestDataDB",1 intRowcount=DataTable.GetSheet(1).GetRowCount For iLoop = 1 To...
  13. 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...
  14. 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...
  15. 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...
  16. Xsi

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

    Hi Southbeach@, I have never thought about if PHP have a certain structure in PHP code intresting :) I know there is example in dot.net different models you work with (MVC etc)... Could you provide me with more information if there is a certain way you work with php code? Thank you in advance.
  17. Xsi

    Copy Data table item to certain row and certain column.

    hi softhemc@, unfortunately (-1) is not constant. that is a number that can change from (-1) to example (1231323) Best regards Daniel
  18. Xsi

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

    I think I got it though.. I got this code: index.php <meta charset="UTF-8"> <?php include('pag2.php'); getpage(); ?> and pag2.php <?php function getpage(){ echo "this is info from pag2.php"; } ?>
  19. 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()...
  20. Xsi

    Copy Data table item to certain row and certain column.

    Hi again Softhemc, Thank you again I'll take a look on it!

Part and Inventory Search

Back
Top