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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by hansu

  1. hansu

    Problem with SimpleXML and htmlentities

    Hi Stretchwickster Thanks for your hint. I modified $vormTemp = htmlentities($xml->weatherdata->day->data[@temp]); into $vormTemp = htmlentities($xml->weatherdata->day->data[@temp],HTML_ENTITIES,'UTF-8'); and it works fine now. Thanks again Hans Ulrich
  2. hansu

    Problem with SimpleXML and htmlentities

    Hi I load an xml file with simplexml_load_file into the variable $xml. The element 'data' of the xml-file contains an attribute 'temp' with a temperature in degrees Celcius: <data temp="18°C" fineweather="70%" frostborder="3800"/> To transform it to xhtml I use: $vormTemp =...
  3. hansu

    Problem with $_SERVER['PHP_SELF'] in string

    To build a page dynamically I use a string like the following: <?php $header_0_en = <<<EOD <div id="langcontainer"> <?php echo setLanguage($_SERVER['PHP_SELF']); ?> </div> EOD; ?> This produces the error: unexpected T_ENCAPSED_AND_WHITESPACE So far I didn't find a...
  4. hansu

    mshflexgrid, restrict row selection

    Thanks jlitondo for your tip. I don't use the mshflexgrid for data entry. The program performs some action based on data in the row selected by the user in the parent recordset.
  5. hansu

    mshflexgrid, restrict row selection

    Hi jlitondo So far I have not been able to solve that problem.
  6. hansu

    date format in vb and access

    You could also use Format$: strDate= Format$(myDate, "\#mm\/dd\/yyyy\#") strSQL = "Select * From Table1 Where [Date] = " & strDate & ""
  7. hansu

    mshflexgrid, restrict row selection

    I have a mshflexgrid which is bound to a hierarchical recordset. I want the enable the user to select rows of the parent recordset but not the rows of the child recordset. Can anybody show me a way to prevent the selection of the rows bound to the child recordset? Thanks for your assistance.
  8. hansu

    How do I select row in a datagrid

    You can add a boomark in the SelChange event as follows. You must also prevent the user to select multiple records. dgr = your DataGrid. rst = your recordset. Private Sub dgr_SelChange(Cancel As Integer) dgr.SelBookmarks.Add dgr.Bookmark If dgr.SelBookmarks.Count > 1 Then...
  9. hansu

    mshflexgrid, highlight selected row

    I am returning to this thread because the following is in the same context: As mentionend above the mshflexgrid is bound to a hierarchical recordset. I want the user to be able to select rows of the parent recordset but not the rows of the child recordset. Does anybody know a way to prevent the...
  10. hansu

    Valid check?

    Check first whether the recordset contains any records: If Rs.RecordCount > 0 then .... Regards Hansu
  11. hansu

    mshflexgrid, highlight selected row

    Thanks vladk Works fine that way.
  12. hansu

    mshflexgrid, highlight selected row

    I'm stuck with the following problem: When the user selects a row in a hierarchical flexgrid (flgReport) I retrieve a value from the selected row which is stored in Col 1. I did it that way in the click event: Private Sub flgReport_Click() Dim strNum$ flgReport.Col = 1 strNum = flgReport.Text...
  13. hansu

    Compile error

    Found the problem now: Had an Adodc control where the connection string wasn't set correctly. Really stupid.
  14. hansu

    Compile error

    Thanks for your suggestion Dimandja. I removed the semicolons but for some reason I still get the same error. Any ideas?
  15. hansu

    Datagrid is 'Read-Only'

    Forgot to mention: When the user does not leave the current cell after editing the data before he clicks the cmdSet_Click button the editing progress is still pending and you can't close the rs.

Part and Inventory Search

Back
Top