Advertisement
Guest User

Untitled

a guest
May 21st, 2013
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub poSel
  2.    
  3.     Dim x, y As Float
  4.     Dim i, i_found, i_row_id, nMid as Integer
  5.     Dim s_table as Alias
  6.     nMid = Frontwindow()
  7.     If WindowInfo(nMID, WIN_INFO_TYPE) <> WIN_MAPPER Then
  8.         Note "The map window must be open"
  9.         Exit Sub
  10.     End If
  11.    
  12.     x = CommandInfo(CMD_INFO_X)
  13.     y = CommandInfo(CMD_INFO_Y)
  14.    
  15.     i_found = SearchPoint(nMid, x, y)
  16.    
  17.     if i_found = 0 then
  18.         Close Table Selection
  19.         Exit Sub
  20.     End If
  21.  
  22. For i = 1 to i_found
  23.     s_table = SearchInfo(i, SEARCH_INFO_TABLE)
  24.     i_row_id = SearchInfo(i, SEARCH_INFO_ROW)
  25. Next
  26.    
  27. Select * from s_table where "rowid = " & i_row_id into Selection   
  28.  
  29.  
  30. Call EditGul
  31.  
  32. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement