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 strongm 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: *

  1. kidmar

    Get mac address

    How can I get the mac address of the local machine? I found it can be done using some iphlpapi.dll calls but can't figure out how. Can someone please give me the code to do that? Thank you!
  2. kidmar

    sqlca.get_save_identity() and sqlca.select_identity() help

    Hi. I'm using PB9 with asa db ver 7.0 I need to use these 2 function of the transaction object, but can't find em in the help file. does the select_identity() retrieve the last identity inserted by the transaction object or the global asa db variable @@identity? how does the get_save_identity()...
  3. kidmar

    datastore create() function help

    I needed to create a dw dynamically, so I can't use a "dw_test". Anyway, I just found an error: // create datastore syntax ls_syntax = sqlca.syntaxfromsql( as_select, 'style(type=grid)', ls_error_syntax) here i used sqlca.syntaxfromsql() that's why the ds always used sqlca to make the syntax...
  4. kidmar

    datastore create() function help

    Oh i forgot.. I'm using PB v 9.01 build 7119
  5. kidmar

    datastore create() function help

    Hi. I would like to create a datastore from an SQL SELECT. This is the code i wrote: /*******************************************/ // here is my SELECT ls_select = "select * from dba.b04_doc" // create datastore syntax ls_syntax = sqlca.syntaxfromsql( as_select, 'style(type=grid)'...
  6. kidmar

    How to empty an array

    Hi. I need to empty a variable-size array, just as if it has just been declared. for example: 1) integer li[] 2) li[] = {1,5,9} 3) .... After this I want li[] array as it was after point 1, with upperbound(li[]) = 0. Is it possible? Thank you! Powerbuilder 9.0.1 build 7119
  7. kidmar

    Window size issue

    Matbe you change the size of the window after the constructor event. open the source code of the window ad look for any unwanted width/height/state change.or try modifying window's width and height properties (or state) in the open event or with a button. What's the window type property set to?
  8. kidmar

    USB Device not properly named - Can I change it?

    That's probably because you didn't install correct drivers (or the same drivers you installed the first time). You should download and install official updated drivers. There is a key in the registry that holds the name of that peripheral, but it's not easy to edit because it looks locked. If...
  9. kidmar

    Window size issue

    Did you try setting the WindowState property to Maximized! ?
  10. kidmar

    Message Box Text Color

    I would really like to know how to make a non-rectangular window! Could you please tell me where to find the source code of that (or tell me how to make it)? Thank you!
  11. kidmar

    Opening a non-existent object

    I can't use the handle function because I don't have an "objectname" but a string as argument. The Try/Catch block doesen't help me preventing the error (and I don't think it was made for that). Anyway I tried to use it: w_data_sheet w_sheet1 try OpenSheetWithParm(w_sheet1, '', 'w_prova'...
  12. kidmar

    Opening a non-existent object

    Hi, In my program i can open a window typing its name in a box. My problem is that if I write the name of a non-existent window the program crushes with the following error: " Application terminated. Unknown object type...." - Is there a way to know if the object exists in the pbl list? - Is...
  13. kidmar

    datawindows computed column

    I finally did it. I tried with the hidden Datawindow but it had a really slow retrieve ( about 1 min ) because it had to execute the function (and the select) a lot of times. Then I made a Datawindow with the SQL SELECT of the function. I used filters and GetItem to get the value I needed and...
  14. kidmar

    datawindows computed column

    The function gets a value from the database with an SQL SELECT (a bit heavy) and returns that value (modified). I couldn't find another way to do that I have that problem in every datawindow that has a computed column valued with a function, but this one is so heavy that the pc is slowed down...
  15. kidmar

    datawindows computed column

    hi. I have a datawindow with a computed column.the value of the computed column is the result of a global function (written by me.located in a pbl). I tried to put a brakepoint in the global function. debugging, if the computed field is shown, the program calls the function withot stopping (100%...
  16. kidmar

    hide xml elements

    hello is it possible to hide an xml element (if it is null, as an example) in the export/import template? can I hide an element's attribute too? my xml schema doesn't validate an xml file with an empty string element but does validate if the element doest appear at all. thank you
  17. kidmar

    XML Schema structure problem

    Hello I have starded my first job a month ago and i had to study powerbuilder 9.0 on my own(i used fastrack to powerbuilder 6.5 manual). I need to export rows in a DataWindows and generate the xml and xsd files. My problem is that the xsd file has to show restrictions on elements, like this...

Part and Inventory Search

Back
Top